Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) 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) 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_4.0.0_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_4.0.0_ModelicaTest.Blocks.OnDelay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001118/0.001118, allocations: 178.4 kB / 17.06 MB, free: 5.094 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.216/1.216, allocations: 223.2 MB / 241 MB, free: 11.88 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008244/0.0008243, allocations: 97.09 kB / 292.2 MB, free: 10.92 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3133/0.3133, allocations: 44.22 MB / 387.5 MB, free: 38.79 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003093/0.0003094, allocations: 8 kB / 459.9 MB, free: 1.535 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3333/0.3336, allocations: 61.9 MB / 0.5095 GB, free: 38.28 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1164/0.45, allocations: 90.61 MB / 0.598 GB, free: 4.527 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000211/0.4503, allocations: 71.97 kB / 0.5981 GB, free: 4.457 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01682/0.4671, allocations: 6.173 MB / 0.6041 GB, free: 14.29 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.4672, allocations: 0 / 0.6041 GB, free: 14.29 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.842e-05/0.4672, allocations: 8 kB / 0.6041 GB, free: 14.28 MB / 426.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.000901/0.4681, allocations: 0.6454 MB / 0.6048 GB, free: 13.56 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.029e-05/0.4682, allocations: 8.031 kB / 0.6048 GB, free: 13.55 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.284e-05/0.4683, allocations: 23.81 kB / 0.6048 GB, free: 13.53 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004476/0.4687, allocations: 273.7 kB / 0.6051 GB, free: 13.22 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001078/0.4688, allocations: 93.11 kB / 0.6051 GB, free: 13.11 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.539e-05/0.4689, allocations: 23.89 kB / 0.6052 GB, free: 13.09 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003285/0.4692, allocations: 166.8 kB / 0.6053 GB, free: 12.91 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.007e-05/0.4692, allocations: 0 / 0.6053 GB, free: 12.91 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.176e-05/0.4693, allocations: 4 kB / 0.6053 GB, free: 12.9 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.287e-06/0.4693, allocations: 0 / 0.6053 GB, free: 12.9 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002195/0.4695, allocations: 99.88 kB / 0.6054 GB, free: 12.8 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008158/0.4703, allocations: 0.6309 MB / 0.606 GB, free: 12.12 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003171/0.4707, allocations: 183.9 kB / 0.6062 GB, free: 11.91 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.936e-05/0.4707, allocations: 0 / 0.6062 GB, free: 11.91 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000437/0.4711, allocations: 433.1 kB / 0.6066 GB, free: 11.41 MB / 426.7 MB Notification: Performance of pre-optimization done (n=23): time 1.413e-06/0.4711, allocations: 0 / 0.6066 GB, free: 11.41 MB / 426.7 MB Notification: Performance of matching and sorting (n=23): time 0.0008922/0.472, allocations: 0.6737 MB / 0.6073 GB, free: 10.66 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001076/0.4722, allocations: 217.6 kB / 0.6075 GB, free: 10.39 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003281/0.4725, allocations: 292 kB / 0.6078 GB, free: 10.1 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 2.719e-05/0.4725, allocations: 33.7 kB / 0.6078 GB, free: 10.06 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.633e-05/0.4726, allocations: 136.6 kB / 0.6079 GB, free: 9.922 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.837e-05/0.4727, allocations: 47.41 kB / 0.608 GB, free: 9.875 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.217e-05/0.4727, allocations: 8 kB / 0.608 GB, free: 9.867 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001191/0.4728, allocations: 338.8 kB / 0.6083 GB, free: 9.527 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001336/0.473, allocations: 64.09 kB / 0.6084 GB, free: 9.465 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001913/0.4732, allocations: 146.7 kB / 0.6085 GB, free: 9.289 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000192/0.4734, allocations: 169 kB / 0.6087 GB, free: 9.105 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.4734, allocations: 3.938 kB / 0.6087 GB, free: 9.102 MB / 426.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005039/0.4739, allocations: 346.3 kB / 0.609 GB, free: 8.738 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.507e-05/0.474, allocations: 97.09 kB / 0.6091 GB, free: 8.625 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.921e-06/0.474, allocations: 0 / 0.6091 GB, free: 8.625 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.781e-05/0.474, allocations: 4 kB / 0.6091 GB, free: 8.621 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001129/0.4741, allocations: 23.92 kB / 0.6091 GB, free: 8.598 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.739e-06/0.4741, allocations: 4 kB / 0.6091 GB, free: 8.594 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001321/0.4743, allocations: 32.14 kB / 0.6092 GB, free: 8.562 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.854e-05/0.4743, allocations: 8 kB / 0.6092 GB, free: 8.555 MB / 426.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 () * Number of clocked 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.0002109/0.4745, allocations: 265.4 kB / 0.6094 GB, free: 8.266 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.167e-05/0.4746, allocations: 39.61 kB / 0.6095 GB, free: 8.227 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003623/0.4749, allocations: 209.3 kB / 0.6097 GB, free: 8.008 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.246e-06/0.475, allocations: 4 kB / 0.6097 GB, free: 8.004 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.454e-06/0.475, allocations: 384 / 0.6097 GB, free: 8.004 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.693e-06/0.475, allocations: 4 kB / 0.6097 GB, free: 8 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000271/0.4752, allocations: 301.4 kB / 0.61 GB, free: 7.656 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.4753, allocations: 7.938 kB / 0.61 GB, free: 7.648 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.485e-05/0.4753, allocations: 7.984 kB / 0.61 GB, free: 7.641 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.438e-06/0.4753, allocations: 4 kB / 0.61 GB, free: 7.637 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.689e-05/0.4753, allocations: 12 kB / 0.61 GB, free: 7.625 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.4753, allocations: 160 / 0.61 GB, free: 7.625 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.4754, allocations: 0 / 0.61 GB, free: 7.625 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006336/0.476, allocations: 486.7 kB / 0.6105 GB, free: 7.094 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001005/0.4761, allocations: 109 kB / 0.6106 GB, free: 6.969 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.202e-05/0.4762, allocations: 12 kB / 0.6106 GB, free: 6.957 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001154/0.4763, allocations: 27.97 kB / 0.6106 GB, free: 6.93 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.367e-05/0.4764, allocations: 23.95 kB / 0.6106 GB, free: 6.906 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.622e-05/0.4764, allocations: 12 kB / 0.6106 GB, free: 6.895 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0002411/0.4767, allocations: 236.4 kB / 0.6109 GB, free: 6.664 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4767, allocations: 3.938 kB / 0.6109 GB, free: 6.66 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0003376/0.477, allocations: 71.94 kB / 0.6109 GB, free: 6.59 MB / 426.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) * Number of clocked states: 0 () * 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.001096/0.4781, allocations: 443 kB / 0.6114 GB, free: 6.312 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0006622/0.4788, allocations: 401.9 kB / 0.6117 GB, free: 5.883 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.4788, allocations: 0 / 0.6117 GB, free: 5.883 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004113/0.4792, allocations: 358.5 kB / 0.6121 GB, free: 5.496 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003279/0.4796, allocations: 44.3 kB / 0.6121 GB, free: 5.453 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009861/0.4806, allocations: 0.4888 MB / 0.6126 GB, free: 4.93 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004037/0.481, allocations: 0.7599 MB / 0.6133 GB, free: 4.145 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0001078/0.4811, allocations: 25.55 kB / 0.6134 GB, free: 4.121 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.331e-05/0.4812, allocations: 19.44 kB / 0.6134 GB, free: 4.102 MB / 426.7 MB Notification: Performance of SimCode: time 6.31e-07/0.4812, allocations: 4 kB / 0.6134 GB, free: 4.098 MB / 426.7 MB Notification: Performance of Templates: time 0.00697/0.4882, allocations: 3.27 MB / 0.6166 GB, free: 0.8477 MB / 426.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/OnDelay/OnDelay.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches