Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001242/0.001242, allocations: 84.34 kB / 22.21 MB, free: 2.285 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009726/0.0009726, allocations: 166.8 kB / 25.61 MB, free: 8.582 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9756/0.9756, allocations: 177 MB / 205.9 MB, free: 4.469 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.102e-06/1.102e-06, allocations: 0 / 274.1 MB, free: 4.305 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.307e-05/1.417e-05, allocations: 5.781 kB / 274.1 MB, free: 4.301 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.005471/0.005485, allocations: 1.49 MB / 275.6 MB, free: 2.812 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001665/0.005652, allocations: 49.7 kB / 275.6 MB, free: 2.766 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.023e-05/0.005702, allocations: 0 / 275.6 MB, free: 2.766 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 2.316e-05/0.005725, allocations: 3.938 kB / 275.6 MB, free: 2.762 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 4.813e-05/0.005773, allocations: 3.938 kB / 275.6 MB, free: 2.758 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001927/0.005966, allocations: 31.91 kB / 275.7 MB, free: 2.727 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 7.98e-05/0.006046, allocations: 40.81 kB / 275.7 MB, free: 2.688 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.455e-05/0.00612, allocations: 4 kB / 275.7 MB, free: 2.684 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.332e-05/0.006184, allocations: 28.53 kB / 275.8 MB, free: 2.656 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.249e-05/0.006216, allocations: 15.98 kB / 275.8 MB, free: 2.641 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.702e-05/0.006233, allocations: 5.656 kB / 275.8 MB, free: 2.637 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.125e-06/0.006241, allocations: 0 / 275.8 MB, free: 2.637 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 2.195e-05/0.006263, allocations: 15.91 kB / 275.8 MB, free: 2.621 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 1.903e-05/0.006282, allocations: 8 kB / 275.8 MB, free: 2.613 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 8.019e-05/0.006362, allocations: 36.48 kB / 275.8 MB, free: 2.578 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.804e-06/0.006364, allocations: 0 / 275.8 MB, free: 2.578 MB / 250.7 MB Notification: Performance of FrontEnd: time 6.21e-07/0.006365, allocations: 0.5312 kB / 275.8 MB, free: 2.578 MB / 250.7 MB Notification: Performance of Transformations before backend: time 2.766e-06/0.006368, allocations: 0 / 275.8 MB, free: 2.578 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0003417/0.006709, allocations: 373.3 kB / 276.2 MB, free: 2.176 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.154e-05/0.006741, allocations: 14.5 kB / 276.2 MB, free: 2.164 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.703e-05/0.006778, allocations: 8.891 kB / 276.2 MB, free: 2.156 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001339/0.006912, allocations: 128.5 kB / 276.3 MB, free: 2.004 MB / 250.7 MB Error: Internal error - BackendDAEOptimize.makeEquationToResidualExp failed to transform equation: pulse.startOutput = previous(pulse.counter) >= pulse.startTick - 1 to residual form! Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.814e-05/0.00698, allocations: 34.25 kB / 276.4 MB, free: 1.965 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.031e-05/0.00699, allocations: 8.375 kB / 276.4 MB, free: 1.957 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003228/0.01022, allocations: 126.2 kB / 276.5 MB, free: 1.816 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.01e-05/0.01023, allocations: 8.109 kB / 276.5 MB, free: 1.809 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.618e-06/0.01024, allocations: 4.375 kB / 276.5 MB, free: 1.805 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.512e-06/0.01024, allocations: 4.125 kB / 276.5 MB, free: 1.801 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.209e-05/0.01028, allocations: 11.98 kB / 276.5 MB, free: 1.789 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.696e-05/0.01036, allocations: 97.25 kB / 276.6 MB, free: 1.668 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001325/0.0105, allocations: 51.17 kB / 276.7 MB, free: 1.605 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.224e-05/0.01053, allocations: 19.67 kB / 276.7 MB, free: 1.582 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.12e-06/0.01053, allocations: 7.938 kB / 276.7 MB, free: 1.574 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.115e-05/0.01055, allocations: 37.39 kB / 276.7 MB, free: 1.527 MB / 250.7 MB Notification: Performance of pre-optimization done (n=5): time 1.102e-06/0.01056, allocations: 0 / 276.7 MB, free: 1.527 MB / 250.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001426/0.0107, allocations: 65.64 kB / 276.8 MB, free: 1.457 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.549e-05/0.01074, allocations: 63.39 kB / 276.9 MB, free: 1.383 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.416e-05/0.01082, allocations: 158.1 kB / 277 MB, free: 1.211 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.337e-05/0.01083, allocations: 29.7 kB / 277.1 MB, free: 1.176 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.15e-05/0.01087, allocations: 134.8 kB / 277.2 MB, free: 1.039 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.235e-05/0.01089, allocations: 7.953 kB / 277.2 MB, free: 1.031 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.961e-05/0.01091, allocations: 19.38 kB / 277.2 MB, free: 1.004 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.000136/0.01105, allocations: 0.4961 MB / 277.7 MB, free: 0.4961 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.614e-06/0.01106, allocations: 8.234 kB / 277.7 MB, free: 500 kB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.886e-05/0.01108, allocations: 19.38 kB / 277.7 MB, free: 472 kB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.933e-05/0.01111, allocations: 27.38 kB / 277.8 MB, free: 436 kB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.01111, allocations: 0 / 277.8 MB, free: 436 kB / 250.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 6.427e-05/0.01117, allocations: 53.62 kB / 277.8 MB, free: 376 kB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.097e-05/0.01118, allocations: 4 kB / 277.8 MB, free: 372 kB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.889e-06/0.01119, allocations: 4 kB / 277.8 MB, free: 368 kB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.198e-06/0.0112, allocations: 0 / 277.8 MB, free: 368 kB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.989e-05/0.01123, allocations: 8.062 kB / 277.8 MB, free: 360 kB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.505e-06/0.01123, allocations: 0 / 277.8 MB, free: 360 kB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.76e-05/0.01125, allocations: 3.938 kB / 277.8 MB, free: 356 kB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.926e-06/0.01125, allocations: 0 / 277.8 MB, free: 356 kB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 4 ($CLKPRE.pulse.startOutput,pulse.startOutput,$CLKPRE.pulse.counter,pulse.counter) * Number of discrete states: 0 () * Number of clocked states: 2 (pulse.startOutput,pulse.counter) * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.134e-05/0.01132, allocations: 164.5 kB / 278 MB, free: 180 kB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.958e-05/0.01139, allocations: 61.58 kB / 278.1 MB, free: 112 kB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.077e-05/0.01141, allocations: 8.125 kB / 278.1 MB, free: 104 kB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.537e-06/0.01142, allocations: 3.984 kB / 278.1 MB, free: 100 kB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.403e-06/0.01142, allocations: 0 / 278.1 MB, free: 100 kB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.035e-06/0.01142, allocations: 0 / 278.1 MB, free: 100 kB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.943e-05/0.0115, allocations: 101.4 kB / 278.2 MB, free: 15.97 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.21e-07/0.0115, allocations: 0 / 278.2 MB, free: 15.97 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.949e-06/0.01151, allocations: 4 kB / 278.2 MB, free: 15.96 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.202e-06/0.01151, allocations: 0 / 278.2 MB, free: 15.96 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.734e-06/0.01151, allocations: 7.984 kB / 278.2 MB, free: 15.96 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.21e-07/0.01152, allocations: 0 / 278.2 MB, free: 15.96 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.12e-07/0.01152, allocations: 0 / 278.2 MB, free: 15.96 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.623e-05/0.01156, allocations: 68.33 kB / 278.2 MB, free: 15.87 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.095e-05/0.01157, allocations: 11.94 kB / 278.3 MB, free: 15.86 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.518e-05/0.01159, allocations: 0 / 278.3 MB, free: 15.86 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.023e-05/0.01163, allocations: 11.98 kB / 278.3 MB, free: 15.84 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.174e-06/0.01163, allocations: 4.188 kB / 278.3 MB, free: 15.84 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.528e-06/0.01164, allocations: 0 / 278.3 MB, free: 15.84 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.106e-05/0.01168, allocations: 127.2 kB / 278.4 MB, free: 15.71 MB / 266.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.01168, allocations: 0 / 278.4 MB, free: 15.71 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001932/0.01187, allocations: 8 kB / 278.4 MB, free: 15.71 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 5 (assignClock1.u,assignClock1.y,pulse.y,pulse.counter,pulse.startOutput) * Number of discrete states: 0 () * Number of clocked states: 2 (pulse.counter,pulse.startOutput) * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 1 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 8.273e-05/0.01195, allocations: 111.2 kB / 278.5 MB, free: 15.59 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 7.481e-05/0.01203, allocations: 23.62 kB / 278.5 MB, free: 15.56 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.232e-06/0.01203, allocations: 0 / 278.5 MB, free: 15.56 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 5.81e-07/0.01203, allocations: 0 / 278.5 MB, free: 15.56 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003835/0.01586, allocations: 1.065 MB / 279.6 MB, free: 14.46 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002234/0.01609, allocations: 132.2 kB / 279.7 MB, free: 14.31 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.928e-05/0.01613, allocations: 67.2 kB / 279.8 MB, free: 14.22 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 1.776e-05/0.01614, allocations: 0 / 279.8 MB, free: 14.22 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.484e-05/0.0162, allocations: 78.19 kB / 279.9 MB, free: 14.14 MB / 266.7 MB Notification: Performance of SimCode: time 5.91e-07/0.0162, allocations: 0 / 279.9 MB, free: 14.14 MB / 266.7 MB Notification: Performance of Templates: time 0.002524/0.01872, allocations: 0.8037 MB / 280.7 MB, free: 13.38 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/TickBasedPulse/TickBasedPulse.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.683585630264133]