Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.OnDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|booleanTable.y|onDelay1.delaySignal|onDelay1.t_next|onDelay1.u|onDelay2.delaySignal|onDelay2.t_next|onDelay2.u|onDelay3.delaySignal|onDelay3.t_next|onDelay3.u",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay") translateModel(ModelicaTest.Blocks.OnDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|booleanTable.y|onDelay1.delaySignal|onDelay1.t_next|onDelay1.u|onDelay2.delaySignal|onDelay2.t_next|onDelay2.u|onDelay3.delaySignal|onDelay3.t_next|onDelay3.u",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001004/0.001004, allocations: 172.8 kB / 8 MB, free: 1.074 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.369/1.369, allocations: 205.3 MB / 213.7 MB, free: 1.66 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009089/0.0009089, allocations: 90.17 kB / 261.8 MB, free: 1.609 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1807/0.1807, allocations: 43.49 MB / 353.2 MB, free: 272 kB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.359e-05/1.36e-05, allocations: 0 / 418.2 MB, free: 28.55 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1046/0.1046, allocations: 58.86 MB / 477.1 MB, free: 1.645 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3411/0.4457, allocations: 88.32 MB / 0.5522 GB, free: 6.945 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002099/0.446, allocations: 68.22 kB / 0.5522 GB, free: 6.914 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01436/0.4603, allocations: 5.953 MB / 0.5581 GB, free: 2.168 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.4604, allocations: 0 / 0.5581 GB, free: 2.168 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.082e-05/0.4604, allocations: 4 kB / 0.5581 GB, free: 2.164 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 21 * Number of variables: 21 Notification: Performance of Generate backend data structure: time 0.0006109/0.461, allocations: 0.5974 MB / 0.5586 GB, free: 1.516 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.851e-05/0.4611, allocations: 8.031 kB / 0.5587 GB, free: 1.508 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.211e-05/0.4612, allocations: 31.66 kB / 0.5587 GB, free: 1.48 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003912/0.4616, allocations: 284.1 kB / 0.559 GB, free: 1.188 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.238e-05/0.4617, allocations: 85.11 kB / 0.559 GB, free: 1.086 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.801e-05/0.4617, allocations: 12 kB / 0.559 GB, free: 1.074 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001609/0.4619, allocations: 70.78 kB / 0.5591 GB, free: 1.023 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001951/0.4621, allocations: 139.7 kB / 0.5592 GB, free: 0.8906 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.156e-05/0.4621, allocations: 0 / 0.5592 GB, free: 0.8906 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.143e-05/0.4621, allocations: 4 kB / 0.5592 GB, free: 0.8867 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.071e-06/0.4621, allocations: 4 kB / 0.5593 GB, free: 0.8828 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006572/0.4628, allocations: 0.5909 MB / 0.5598 GB, free: 320 kB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001817/0.463, allocations: 158.1 kB / 0.56 GB, free: 176 kB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.98e-05/0.4631, allocations: 81.2 kB / 0.5601 GB, free: 112 kB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.645e-05/0.4631, allocations: 3.938 kB / 0.5601 GB, free: 108 kB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003826/0.4635, allocations: 415.6 kB / 0.5605 GB, free: 15.66 MB / 378.7 MB Notification: Performance of pre-optimization done (n=23): time 3.216e-06/0.4635, allocations: 7.984 kB / 0.5605 GB, free: 15.65 MB / 378.7 MB Notification: Performance of matching and sorting (n=23): time 0.0004691/0.464, allocations: 247 kB / 0.5607 GB, free: 15.46 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001185/0.4641, allocations: 213.6 kB / 0.5609 GB, free: 15.2 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003502/0.4645, allocations: 278.3 kB / 0.5612 GB, free: 14.97 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.574e-05/0.4645, allocations: 37.62 kB / 0.5612 GB, free: 14.93 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.203e-05/0.4646, allocations: 135 kB / 0.5613 GB, free: 14.83 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.213e-05/0.4647, allocations: 50.97 kB / 0.5614 GB, free: 14.79 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.033e-05/0.4647, allocations: 4 kB / 0.5614 GB, free: 14.78 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001376/0.4648, allocations: 338.2 kB / 0.5617 GB, free: 14.45 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.111e-05/0.4649, allocations: 39.38 kB / 0.5617 GB, free: 14.43 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001297/0.4651, allocations: 137 kB / 0.5619 GB, free: 14.29 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001072/0.4652, allocations: 59.56 kB / 0.5619 GB, free: 14.24 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.816e-06/0.4652, allocations: 0 / 0.5619 GB, free: 14.24 MB / 378.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003264/0.4655, allocations: 225.6 kB / 0.5622 GB, free: 14.06 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.721e-05/0.4656, allocations: 99.81 kB / 0.5622 GB, free: 13.95 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.025e-06/0.4656, allocations: 4 kB / 0.5623 GB, free: 13.95 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.527e-05/0.4656, allocations: 4 kB / 0.5623 GB, free: 13.94 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001089/0.4658, allocations: 23.92 kB / 0.5623 GB, free: 13.92 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.292e-06/0.4658, allocations: 0 / 0.5623 GB, free: 13.92 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001415/0.4659, allocations: 23.89 kB / 0.5623 GB, free: 13.89 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.118e-05/0.4659, allocations: 15.89 kB / 0.5623 GB, free: 13.88 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 29 ($PRE.onDelay1.u,$PRE.onDelay1.t_next,$PRE.onDelay3.u,$PRE.onDelay3.t_next,$PRE.onDelay2.u,$PRE.onDelay2.t_next,$whenCondition5,$PRE.booleanTable.combiTimeTable.nextTimeEvent,$whenCondition6,$whenCondition7,onDelay1.u,onDelay1.y,onDelay1.delaySignal,onDelay1.t_next,booleanTable.combiTimeTable.nextTimeEvent,$PRE.booleanTable.combiTimeTable.nextTimeEventScaled,booleanTable.combiTimeTable.nextTimeEventScaled,$whenCondition3,$whenCondition4,onDelay2.u,onDelay2.y,onDelay2.delaySignal,onDelay2.t_next,$whenCondition1,$whenCondition2,onDelay3.u,onDelay3.y,onDelay3.delaySignal,onDelay3.t_next) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001655/0.4661, allocations: 232.6 kB / 0.5625 GB, free: 13.64 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.74e-05/0.4662, allocations: 31.72 kB / 0.5626 GB, free: 13.61 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000261/0.4664, allocations: 157.6 kB / 0.5627 GB, free: 13.48 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.538e-06/0.4665, allocations: 4 kB / 0.5627 GB, free: 13.48 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.979e-06/0.4665, allocations: 96 / 0.5627 GB, free: 13.48 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.669e-06/0.4665, allocations: 3.938 kB / 0.5627 GB, free: 13.47 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002239/0.4667, allocations: 268.4 kB / 0.563 GB, free: 13.21 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.063e-06/0.4667, allocations: 3.938 kB / 0.563 GB, free: 13.21 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.828e-05/0.4668, allocations: 15.98 kB / 0.563 GB, free: 13.19 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.006e-06/0.4668, allocations: 0 / 0.563 GB, free: 13.19 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.301e-05/0.4668, allocations: 8 kB / 0.563 GB, free: 13.18 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.833e-06/0.4668, allocations: 0 / 0.563 GB, free: 13.18 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.4668, allocations: 0 / 0.563 GB, free: 13.18 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004216/0.4672, allocations: 351 kB / 0.5633 GB, free: 12.87 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.957e-05/0.4673, allocations: 112.6 kB / 0.5634 GB, free: 12.74 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.247e-05/0.4674, allocations: 8 kB / 0.5635 GB, free: 12.73 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001198/0.4675, allocations: 19.98 kB / 0.5635 GB, free: 12.71 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.811e-05/0.4676, allocations: 22.81 kB / 0.5635 GB, free: 12.7 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.416e-05/0.4676, allocations: 11.98 kB / 0.5635 GB, free: 12.69 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001886/0.4678, allocations: 217.6 kB / 0.5637 GB, free: 12.52 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.4678, allocations: 4 kB / 0.5637 GB, free: 12.52 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003222/0.4682, allocations: 67.98 kB / 0.5638 GB, free: 12.45 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 21 ($whenCondition5,$whenCondition6,$whenCondition7,onDelay1.u,onDelay1.y,onDelay1.delaySignal,onDelay1.t_next,booleanTable.combiTimeTable.nextTimeEvent,booleanTable.combiTimeTable.nextTimeEventScaled,$whenCondition3,$whenCondition4,onDelay2.u,onDelay2.y,onDelay2.delaySignal,onDelay2.t_next,$whenCondition1,$whenCondition2,onDelay3.u,onDelay3.y,onDelay3.delaySignal,onDelay3.t_next) * Number of discrete states: 14 (onDelay3.t_next,onDelay3.delaySignal,$whenCondition2,$whenCondition1,onDelay2.t_next,onDelay2.delaySignal,$whenCondition4,$whenCondition3,onDelay1.t_next,onDelay1.delaySignal,$whenCondition7,$whenCondition6,booleanTable.combiTimeTable.nextTimeEvent,booleanTable.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007742/0.469, allocations: 371.3 kB / 0.5641 GB, free: 12.14 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004156/0.4694, allocations: 368.7 kB / 0.5645 GB, free: 11.81 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.4694, allocations: 0 / 0.5645 GB, free: 11.81 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002593/0.4697, allocations: 324 kB / 0.5648 GB, free: 11.54 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002809/0.4699, allocations: 47.48 kB / 0.5648 GB, free: 11.5 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006047/0.4706, allocations: 343.5 kB / 0.5652 GB, free: 11.18 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003162/0.4709, allocations: 0.7595 MB / 0.5659 GB, free: 10.4 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 8.873e-05/0.471, allocations: 29.41 kB / 0.5659 GB, free: 10.37 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.189e-05/0.471, allocations: 19.44 kB / 0.566 GB, free: 10.35 MB / 378.7 MB Notification: Performance of SimCode: time 2.1e-07/0.4711, allocations: 0 / 0.566 GB, free: 10.35 MB / 378.7 MB Notification: Performance of Templates: time 0.006155/0.4772, allocations: 3.085 MB / 0.569 GB, free: 7.277 MB / 378.7 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/OnDelay/OnDelay.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches