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.0008611/0.0008614, allocations: 183.3 kB / 18.09 MB, free: 3.629 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.162/1.162, allocations: 223.3 MB / 242.1 MB, free: 11.68 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.0007355/0.0007355, allocations: 100.5 kB / 293.3 MB, free: 10.75 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.2706/0.2706, allocations: 44.14 MB / 388.5 MB, free: 38.68 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000329/0.0003291, allocations: 12 kB / 461.1 MB, free: 1.312 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2452/0.2455, allocations: 61.88 MB / 0.5107 GB, free: 38.29 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09779/0.3433, allocations: 90.63 MB / 0.5992 GB, free: 4.441 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001892/0.3436, allocations: 75.95 kB / 0.5993 GB, free: 4.371 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01589/0.3595, allocations: 6.181 MB / 0.6053 GB, free: 14.19 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.386e-06/0.3595, allocations: 0 / 0.6053 GB, free: 14.19 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.733e-05/0.3595, allocations: 11.94 kB / 0.6053 GB, free: 14.18 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.0007125/0.3603, allocations: 0.63 MB / 0.606 GB, free: 13.47 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.278e-05/0.3603, allocations: 12.03 kB / 0.606 GB, free: 13.46 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.785e-05/0.3604, allocations: 24.75 kB / 0.606 GB, free: 13.43 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003834/0.3608, allocations: 286.8 kB / 0.6063 GB, free: 13.12 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.135e-05/0.3609, allocations: 93.67 kB / 0.6064 GB, free: 13.01 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.218e-05/0.3609, allocations: 16.38 kB / 0.6064 GB, free: 12.99 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003216/0.3613, allocations: 166.7 kB / 0.6065 GB, free: 12.81 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.133e-05/0.3613, allocations: 3.938 kB / 0.6065 GB, free: 12.81 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.951e-05/0.3613, allocations: 4 kB / 0.6065 GB, free: 12.8 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.359e-06/0.3613, allocations: 0 / 0.6065 GB, free: 12.8 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002262/0.3615, allocations: 95.94 kB / 0.6066 GB, free: 12.71 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007954/0.3623, allocations: 0.6347 MB / 0.6073 GB, free: 12.02 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003139/0.3627, allocations: 179.9 kB / 0.6074 GB, free: 11.82 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001595/0.3628, allocations: 94.55 kB / 0.6075 GB, free: 11.71 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.738e-05/0.3629, allocations: 0 / 0.6075 GB, free: 11.71 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003906/0.3633, allocations: 437.1 kB / 0.6079 GB, free: 11.21 MB / 426.7 MB Notification: Performance of pre-optimization done (n=23): time 2.996e-06/0.3633, allocations: 112 / 0.6079 GB, free: 11.21 MB / 426.7 MB Notification: Performance of matching and sorting (n=23): time 0.0007702/0.3641, allocations: 458.5 kB / 0.6084 GB, free: 10.74 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.726e-05/0.3642, allocations: 217.6 kB / 0.6086 GB, free: 10.48 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003415/0.3645, allocations: 312.9 kB / 0.6089 GB, free: 10.16 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 2.802e-05/0.3646, allocations: 37.7 kB / 0.6089 GB, free: 10.11 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.612e-05/0.3646, allocations: 128.6 kB / 0.609 GB, free: 9.984 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.368e-05/0.3647, allocations: 51.41 kB / 0.6091 GB, free: 9.934 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.003e-05/0.3647, allocations: 4 kB / 0.6091 GB, free: 9.93 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001153/0.3648, allocations: 342.8 kB / 0.6094 GB, free: 9.586 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001353/0.365, allocations: 59.95 kB / 0.6095 GB, free: 9.527 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002094/0.3652, allocations: 153.2 kB / 0.6096 GB, free: 9.344 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000372/0.3656, allocations: 370.9 kB / 0.61 GB, free: 8.914 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.338e-06/0.3656, allocations: 4 kB / 0.61 GB, free: 8.91 MB / 426.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005015/0.3661, allocations: 350.4 kB / 0.6103 GB, free: 8.543 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.019e-05/0.3662, allocations: 102.6 kB / 0.6104 GB, free: 8.426 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.243e-06/0.3662, allocations: 4 kB / 0.6104 GB, free: 8.422 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.107e-05/0.3662, allocations: 0 / 0.6104 GB, free: 8.422 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.515e-05/0.3663, allocations: 23.88 kB / 0.6104 GB, free: 8.398 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.628e-06/0.3663, allocations: 11.92 kB / 0.6104 GB, free: 8.387 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001267/0.3664, allocations: 27.84 kB / 0.6105 GB, free: 8.359 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.827e-05/0.3665, allocations: 11.94 kB / 0.6105 GB, free: 8.348 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.0002028/0.3667, allocations: 273.5 kB / 0.6107 GB, free: 8.055 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.475e-05/0.3667, allocations: 27.72 kB / 0.6108 GB, free: 8.027 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003253/0.3671, allocations: 205 kB / 0.611 GB, free: 7.82 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.308e-06/0.3671, allocations: 7.875 kB / 0.611 GB, free: 7.812 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.322e-06/0.3671, allocations: 4 kB / 0.611 GB, free: 7.809 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.3671, allocations: 0 / 0.611 GB, free: 7.809 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002416/0.3673, allocations: 297.5 kB / 0.6113 GB, free: 7.469 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.3674, allocations: 4 kB / 0.6113 GB, free: 7.465 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.42e-05/0.3674, allocations: 8 kB / 0.6113 GB, free: 7.457 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.757e-06/0.3674, allocations: 4 kB / 0.6113 GB, free: 7.453 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.464e-05/0.3674, allocations: 15.98 kB / 0.6113 GB, free: 7.438 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.076e-06/0.3674, allocations: 3.938 kB / 0.6113 GB, free: 7.434 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.3675, allocations: 0 / 0.6113 GB, free: 7.434 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005703/0.368, allocations: 463 kB / 0.6117 GB, free: 6.941 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.855e-05/0.3681, allocations: 112.8 kB / 0.6118 GB, free: 6.812 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.927e-05/0.3682, allocations: 8 kB / 0.6118 GB, free: 6.805 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001128/0.3683, allocations: 31.86 kB / 0.6119 GB, free: 6.773 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.609e-05/0.3684, allocations: 15.98 kB / 0.6119 GB, free: 6.758 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.247e-05/0.3684, allocations: 12 kB / 0.6119 GB, free: 6.746 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0002173/0.3686, allocations: 236.4 kB / 0.6121 GB, free: 6.516 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3686, allocations: 0 / 0.6121 GB, free: 6.516 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0003006/0.3689, allocations: 79.94 kB / 0.6122 GB, free: 6.438 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.0008306/0.3698, allocations: 437.3 kB / 0.6126 GB, free: 6.164 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0005303/0.3703, allocations: 413.8 kB / 0.613 GB, free: 5.723 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.013e-06/0.3703, allocations: 0 / 0.613 GB, free: 5.723 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003186/0.3706, allocations: 346.1 kB / 0.6133 GB, free: 5.348 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003415/0.371, allocations: 53.44 kB / 0.6134 GB, free: 5.297 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007707/0.3718, allocations: 0.4931 MB / 0.6139 GB, free: 4.773 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003065/0.3721, allocations: 0.7482 MB / 0.6146 GB, free: 3.996 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0001037/0.3722, allocations: 29.69 kB / 0.6146 GB, free: 3.969 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.639e-05/0.3723, allocations: 23.42 kB / 0.6147 GB, free: 3.945 MB / 426.7 MB Notification: Performance of SimCode: time 2.6e-07/0.3723, allocations: 3.938 kB / 0.6147 GB, free: 3.941 MB / 426.7 MB Notification: Performance of Templates: time 0.006798/0.3791, allocations: 3.29 MB / 0.6179 GB, free: 0.668 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/jenkins1/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