Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_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_cpp_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_cpp_ModelicaTest.Blocks.OnDelay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001957/0.001957, allocations: 177.8 kB / 8.36 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.073/2.073, allocations: 205.3 MB / 214.1 MB, free: 14.12 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001078/0.001078, allocations: 95.23 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2878/0.2878, allocations: 43.48 MB / 353.6 MB, free: 2.266 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.103e-05/2.1e-05, allocations: 4.219 kB / 418.2 MB, free: 41.03 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3885/0.3886, allocations: 58.86 MB / 477.1 MB, free: 5.254 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1625/0.5511, allocations: 88.33 MB / 0.5522 GB, free: 10.96 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002482/0.5514, allocations: 67.97 kB / 0.5522 GB, free: 10.9 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.02743/0.5789, allocations: 5.95 MB / 0.558 GB, free: 4.949 MB / 395.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.5789, allocations: 4 kB / 0.558 GB, free: 4.945 MB / 395.1 MB Notification: Performance of Transformations before backend: time 2.71e-05/0.579, allocations: 0 / 0.558 GB, free: 4.945 MB / 395.1 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.001028/0.58, allocations: 0.5904 MB / 0.5586 GB, free: 4.285 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.685e-05/0.5801, allocations: 8.031 kB / 0.5586 GB, free: 4.277 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001111/0.5802, allocations: 27.72 kB / 0.5586 GB, free: 4.25 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006278/0.5808, allocations: 289.6 kB / 0.5589 GB, free: 3.93 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001155/0.581, allocations: 85.11 kB / 0.559 GB, free: 3.828 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.704e-05/0.581, allocations: 15.98 kB / 0.559 GB, free: 3.812 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002623/0.5813, allocations: 68.16 kB / 0.5591 GB, free: 3.742 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003474/0.5817, allocations: 137.6 kB / 0.5592 GB, free: 3.59 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.241e-05/0.5817, allocations: 0 / 0.5592 GB, free: 3.59 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.007e-05/0.5817, allocations: 4 kB / 0.5592 GB, free: 3.586 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.332e-06/0.5818, allocations: 4 kB / 0.5592 GB, free: 3.582 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001219/0.583, allocations: 0.5951 MB / 0.5598 GB, free: 2.941 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000352/0.5834, allocations: 156 kB / 0.56 GB, free: 2.762 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001844/0.5836, allocations: 82.56 kB / 0.56 GB, free: 2.672 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.844e-05/0.5836, allocations: 4.109 kB / 0.56 GB, free: 2.668 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005402/0.5842, allocations: 425.1 kB / 0.5604 GB, free: 2.176 MB / 395.1 MB Notification: Performance of pre-optimization done (n=23): time 2.745e-06/0.5842, allocations: 0 / 0.5604 GB, free: 2.176 MB / 395.1 MB Notification: Performance of matching and sorting (n=23): time 0.0007577/0.5849, allocations: 241.2 kB / 0.5607 GB, free: 1.934 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001346/0.5851, allocations: 221.6 kB / 0.5609 GB, free: 1.668 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005357/0.5856, allocations: 280.4 kB / 0.5612 GB, free: 1.383 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 4.733e-05/0.5857, allocations: 29.7 kB / 0.5612 GB, free: 1.348 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001289/0.5858, allocations: 183 kB / 0.5614 GB, free: 1.168 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.086e-05/0.5859, allocations: 51.34 kB / 0.5614 GB, free: 1.117 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.704e-05/0.586, allocations: 4 kB / 0.5614 GB, free: 1.113 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001386/0.5861, allocations: 318.8 kB / 0.5617 GB, free: 0.793 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001393/0.5863, allocations: 44.19 kB / 0.5618 GB, free: 0.75 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000221/0.5865, allocations: 134.5 kB / 0.5619 GB, free: 0.582 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001753/0.5867, allocations: 63.88 kB / 0.5619 GB, free: 0.5195 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.529e-06/0.5867, allocations: 0 / 0.5619 GB, free: 0.5195 MB / 395.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005442/0.5873, allocations: 205.4 kB / 0.5621 GB, free: 320 kB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.848e-05/0.5874, allocations: 89.09 kB / 0.5622 GB, free: 212 kB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.625e-06/0.5874, allocations: 4 kB / 0.5622 GB, free: 208 kB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.021e-05/0.5874, allocations: 4.219 kB / 0.5622 GB, free: 204 kB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001877/0.5876, allocations: 31.98 kB / 0.5623 GB, free: 172 kB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.06e-05/0.5876, allocations: 7.938 kB / 0.5623 GB, free: 164 kB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002616/0.5879, allocations: 15.98 kB / 0.5623 GB, free: 148 kB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.382e-05/0.588, allocations: 15.95 kB / 0.5623 GB, free: 132 kB / 395.1 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.0002579/0.5882, allocations: 225.1 kB / 0.5625 GB, free: 15.88 MB / 411.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.554e-05/0.5883, allocations: 35.66 kB / 0.5625 GB, free: 15.85 MB / 411.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004578/0.5888, allocations: 171.3 kB / 0.5627 GB, free: 15.68 MB / 411.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.729e-06/0.5888, allocations: 0 / 0.5627 GB, free: 15.68 MB / 411.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.5888, allocations: 0 / 0.5627 GB, free: 15.68 MB / 411.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.035e-06/0.5889, allocations: 4 kB / 0.5627 GB, free: 15.67 MB / 411.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003849/0.5893, allocations: 262 kB / 0.563 GB, free: 15.38 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.975e-06/0.5893, allocations: 0 / 0.563 GB, free: 15.38 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.956e-05/0.5893, allocations: 15.98 kB / 0.563 GB, free: 15.36 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.34e-06/0.5894, allocations: 0 / 0.563 GB, free: 15.36 MB / 411.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.643e-05/0.5894, allocations: 8 kB / 0.563 GB, free: 15.36 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.22e-06/0.5894, allocations: 11.94 kB / 0.563 GB, free: 15.34 MB / 411.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.956e-06/0.5894, allocations: 0 / 0.563 GB, free: 15.34 MB / 411.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007943/0.5902, allocations: 333.8 kB / 0.5633 GB, free: 14.98 MB / 411.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000133/0.5904, allocations: 112.9 kB / 0.5634 GB, free: 14.85 MB / 411.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.494e-05/0.5905, allocations: 8 kB / 0.5634 GB, free: 14.84 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002217/0.5907, allocations: 23.98 kB / 0.5635 GB, free: 14.82 MB / 411.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001141/0.5909, allocations: 27.92 kB / 0.5635 GB, free: 14.79 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.315e-05/0.5909, allocations: 15.98 kB / 0.5635 GB, free: 14.78 MB / 411.1 MB Notification: Performance of sorting global known variables: time 0.0003554/0.5913, allocations: 228.3 kB / 0.5637 GB, free: 14.55 MB / 411.1 MB Notification: Performance of sort global known variables: time 4.61e-07/0.5913, allocations: 0 / 0.5637 GB, free: 14.55 MB / 411.1 MB Notification: Performance of remove unused functions: time 0.0005086/0.5918, allocations: 64 kB / 0.5638 GB, free: 14.49 MB / 411.1 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.001074/0.5929, allocations: 366.8 kB / 0.5641 GB, free: 14.18 MB / 411.1 MB Notification: Performance of simCode: created initialization part: time 0.000718/0.5936, allocations: 370 kB / 0.5645 GB, free: 13.78 MB / 411.1 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.5937, allocations: 0 / 0.5645 GB, free: 13.78 MB / 411.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004519/0.5941, allocations: 322.6 kB / 0.5648 GB, free: 13.43 MB / 411.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004527/0.5946, allocations: 50.69 kB / 0.5648 GB, free: 13.38 MB / 411.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00104/0.5956, allocations: 377 kB / 0.5652 GB, free: 12.98 MB / 411.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004295/0.5961, allocations: 0.7636 MB / 0.5659 GB, free: 12.19 MB / 411.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001177/0.5962, allocations: 23.44 kB / 0.566 GB, free: 12.16 MB / 411.1 MB Notification: Performance of SimCode: time 1.172e-06/0.5962, allocations: 3.938 kB / 0.566 GB, free: 12.16 MB / 411.1 MB Notification: Performance of Templates: time 0.009537/0.6058, allocations: 3.536 MB / 0.5694 GB, free: 8.621 MB / 411.1 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.OnDelay.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.OnDelay.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.OnDelay.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.OnDelay.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.OnDelay.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.OnDelay --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.OnDelay.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.OnDelay_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/OnDelay/OnDelay.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.OnDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches