Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008899/0.0008899, allocations: 85.17 kB / 21.5 MB, free: 2.992 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008944/0.0008944, allocations: 147.1 kB / 24.9 MB, free: 8.727 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9562/0.9562, allocations: 173.4 MB / 201.5 MB, free: 8.734 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.132e-06/1.132e-06, allocations: 0 / 268.5 MB, free: 6.027 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.037e-05/1.15e-05, allocations: 2.312 kB / 268.5 MB, free: 6.023 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.001684/0.001695, allocations: 1.491 MB / 270 MB, free: 4.52 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001461/0.001842, allocations: 35.91 kB / 270 MB, free: 4.484 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.864e-05/0.00189, allocations: 7.938 kB / 270 MB, free: 4.477 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 2.013e-05/0.00191, allocations: 0 / 270 MB, free: 4.477 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 4.372e-05/0.001954, allocations: 3.938 kB / 270 MB, free: 4.473 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000171/0.002125, allocations: 23.97 kB / 270 MB, free: 4.449 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 7.071e-05/0.002196, allocations: 47.83 kB / 270.1 MB, free: 4.402 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 6.051e-05/0.002256, allocations: 4 kB / 270.1 MB, free: 4.398 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.986e-05/0.002316, allocations: 19.98 kB / 270.1 MB, free: 4.379 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.754e-05/0.002344, allocations: 27.91 kB / 270.1 MB, free: 4.352 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.036e-05/0.002364, allocations: 4 kB / 270.1 MB, free: 4.348 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.646e-06/0.002373, allocations: 0 / 270.1 MB, free: 4.348 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 1.982e-05/0.002393, allocations: 11.98 kB / 270.1 MB, free: 4.336 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 2.08e-05/0.002413, allocations: 11.94 kB / 270.2 MB, free: 4.324 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 7.26e-05/0.002486, allocations: 35.83 kB / 270.2 MB, free: 4.289 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.342e-06/0.002487, allocations: 0 / 270.2 MB, free: 4.289 MB / 250.7 MB Notification: Performance of FrontEnd: time 4.7e-07/0.002488, allocations: 0 / 270.2 MB, free: 4.289 MB / 250.7 MB Notification: Performance of Transformations before backend: time 2.585e-06/0.00249, allocations: 0 / 270.2 MB, free: 4.289 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.0003764/0.002867, allocations: 252.9 kB / 270.4 MB, free: 4.016 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.725e-05/0.002894, allocations: 12.03 kB / 270.4 MB, free: 4.004 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.294e-05/0.002917, allocations: 8.922 kB / 270.5 MB, free: 3.996 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001063/0.003023, allocations: 121.7 kB / 270.6 MB, free: 3.852 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.449e-05/0.003088, allocations: 38.25 kB / 270.6 MB, free: 3.809 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.563e-06/0.003094, allocations: 384 / 270.6 MB, free: 3.809 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001456/0.00324, allocations: 128.5 kB / 270.7 MB, free: 3.668 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.073e-06/0.003247, allocations: 192 / 270.7 MB, free: 3.668 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.392e-06/0.003253, allocations: 384 / 270.7 MB, free: 3.668 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.021e-06/0.003259, allocations: 8.125 kB / 270.7 MB, free: 3.66 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.066e-05/0.00329, allocations: 11.98 kB / 270.8 MB, free: 3.648 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.522e-05/0.003355, allocations: 61.05 kB / 270.8 MB, free: 3.574 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001061/0.003461, allocations: 50.47 kB / 270.9 MB, free: 3.516 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.734e-05/0.003479, allocations: 12.86 kB / 270.9 MB, free: 3.5 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.749e-06/0.003483, allocations: 4 kB / 270.9 MB, free: 3.496 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.709e-05/0.0035, allocations: 34.56 kB / 270.9 MB, free: 3.453 MB / 250.7 MB Notification: Performance of pre-optimization done (n=5): time 1.392e-06/0.003502, allocations: 0 / 270.9 MB, free: 3.453 MB / 250.7 MB Notification: Performance of matching and sorting (n=5): time 9.128e-05/0.003593, allocations: 61.8 kB / 271 MB, free: 3.387 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.615e-05/0.003629, allocations: 55.41 kB / 271 MB, free: 3.32 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.636e-05/0.003676, allocations: 118.7 kB / 271.1 MB, free: 3.191 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 8.456e-06/0.003684, allocations: 25.7 kB / 271.2 MB, free: 3.16 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.835e-05/0.003702, allocations: 88.08 kB / 271.3 MB, free: 3.07 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.426e-06/0.003711, allocations: 3.953 kB / 271.3 MB, free: 3.066 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.068e-05/0.003732, allocations: 25.69 kB / 271.3 MB, free: 3.035 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 6.366e-05/0.003795, allocations: 318.8 kB / 271.6 MB, free: 2.715 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.707e-06/0.003799, allocations: 0 / 271.6 MB, free: 2.715 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.075e-05/0.00381, allocations: 13.77 kB / 271.6 MB, free: 2.695 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.248e-05/0.003832, allocations: 29.62 kB / 271.6 MB, free: 2.66 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.003834, allocations: 4 kB / 271.6 MB, free: 2.656 MB / 250.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 3.418e-05/0.003868, allocations: 41.78 kB / 271.7 MB, free: 2.609 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.586e-06/0.003876, allocations: 4 kB / 271.7 MB, free: 2.605 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.119e-06/0.003882, allocations: 3.984 kB / 271.7 MB, free: 2.602 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.578e-06/0.003891, allocations: 0 / 271.7 MB, free: 2.602 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.27e-05/0.003914, allocations: 7.938 kB / 271.7 MB, free: 2.594 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.324e-06/0.003916, allocations: 0 / 271.7 MB, free: 2.594 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.809e-06/0.003926, allocations: 4 kB / 271.7 MB, free: 2.59 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.619e-06/0.003931, allocations: 7.938 kB / 271.7 MB, free: 2.582 MB / 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 5.572e-05/0.003986, allocations: 113.9 kB / 271.8 MB, free: 2.461 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.501e-05/0.004021, allocations: 53.67 kB / 271.9 MB, free: 2.402 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.484e-05/0.004036, allocations: 4.125 kB / 271.9 MB, free: 2.395 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.052e-06/0.004037, allocations: 0 / 271.9 MB, free: 2.395 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.042e-06/0.004038, allocations: 0 / 271.9 MB, free: 2.395 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.418e-06/0.004043, allocations: 4 kB / 271.9 MB, free: 2.391 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.762e-05/0.00408, allocations: 69.83 kB / 272 MB, free: 2.305 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.02e-07/0.004081, allocations: 0 / 272 MB, free: 2.305 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.034e-06/0.004083, allocations: 0 / 272 MB, free: 2.305 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.41e-07/0.004084, allocations: 0 / 272 MB, free: 2.305 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.162e-06/0.00409, allocations: 7.938 kB / 272 MB, free: 2.297 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.11e-07/0.00409, allocations: 4 kB / 272 MB, free: 2.293 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.62e-07/0.004091, allocations: 256 / 272 MB, free: 2.293 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 2.922e-05/0.00412, allocations: 57.08 kB / 272 MB, free: 2.219 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.365e-06/0.004128, allocations: 11.92 kB / 272 MB, free: 2.207 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.121e-05/0.00414, allocations: 0 / 272 MB, free: 2.207 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.441e-05/0.004164, allocations: 8 kB / 272 MB, free: 2.199 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.134e-06/0.004166, allocations: 0 / 272 MB, free: 2.199 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.677e-06/0.00417, allocations: 4 kB / 272 MB, free: 2.195 MB / 250.7 MB Notification: Performance of sorting global known variables: time 9.317e-06/0.004179, allocations: 12.84 kB / 272.1 MB, free: 2.18 MB / 250.7 MB Notification: Performance of sort global known variables: time 4e-08/0.004179, allocations: 0 / 272.1 MB, free: 2.18 MB / 250.7 MB Notification: Performance of remove unused functions: time 9.079e-05/0.00427, allocations: 4 kB / 272.1 MB, free: 2.176 MB / 250.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 6.019e-05/0.00433, allocations: 88.36 kB / 272.1 MB, free: 2.082 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 5.361e-05/0.004384, allocations: 32.77 kB / 272.2 MB, free: 2.047 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.744e-06/0.004386, allocations: 0 / 272.2 MB, free: 2.047 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 4.3e-07/0.004386, allocations: 0 / 272.2 MB, free: 2.047 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002949/0.004681, allocations: 0.7043 MB / 272.9 MB, free: 1.316 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001578/0.004839, allocations: 130.5 kB / 273 MB, free: 1.164 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.289e-05/0.004862, allocations: 55.36 kB / 273.1 MB, free: 1.09 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 1.414e-05/0.004876, allocations: 8.188 kB / 273.1 MB, free: 1.082 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.571e-05/0.004921, allocations: 55.36 kB / 273.1 MB, free: 1.027 MB / 250.7 MB Notification: Performance of SimCode: time 4.11e-07/0.004922, allocations: 0 / 273.1 MB, free: 1.027 MB / 250.7 MB Notification: Performance of Templates: time 0.001835/0.006756, allocations: 0.7959 MB / 273.9 MB, free: 252 kB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.3438667310401797]