Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.OnDelay.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002611/0.00261, allocations: 178 kB / 8.152 MB, free: 2.188 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.873/1.873, allocations: 205.2 MB / 213.8 MB, free: 13.94 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001279/0.001279, allocations: 94.19 kB / 261.8 MB, free: 13.64 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2663/0.2663, allocations: 43.49 MB / 353.2 MB, free: 2.043 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 7.845e-06/7.925e-06, allocations: 0 / 417.7 MB, free: 40.97 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2737/0.2737, allocations: 58.85 MB / 476.5 MB, free: 5.098 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1646/0.4384, allocations: 88.26 MB / 0.5516 GB, free: 10.84 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002608/0.4387, allocations: 63.97 kB / 0.5516 GB, free: 10.78 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.0277/0.4664, allocations: 5.601 MB / 0.5571 GB, free: 5.18 MB / 394.7 MB Notification: Performance of Transformations before backend: time 3.318e-05/0.4665, allocations: 7.938 kB / 0.5571 GB, free: 5.172 MB / 394.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.001061/0.4676, allocations: 0.5904 MB / 0.5577 GB, free: 4.512 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.686e-05/0.4676, allocations: 8.031 kB / 0.5577 GB, free: 4.504 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001284/0.4678, allocations: 35.61 kB / 0.5577 GB, free: 4.469 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007144/0.4685, allocations: 277.7 kB / 0.558 GB, free: 4.16 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001256/0.4686, allocations: 89.09 kB / 0.5581 GB, free: 4.055 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.421e-05/0.4687, allocations: 15.94 kB / 0.5581 GB, free: 4.039 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000399/0.4691, allocations: 68.08 kB / 0.5581 GB, free: 3.969 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000473/0.4696, allocations: 137.6 kB / 0.5583 GB, free: 3.816 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.302e-05/0.4696, allocations: 0 / 0.5583 GB, free: 3.816 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.352e-05/0.4697, allocations: 7.984 kB / 0.5583 GB, free: 3.809 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.065e-06/0.4697, allocations: 0 / 0.5583 GB, free: 3.809 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001462/0.4712, allocations: 0.5874 MB / 0.5589 GB, free: 3.176 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004873/0.4717, allocations: 152.1 kB / 0.559 GB, free: 3 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002726/0.472, allocations: 90.41 kB / 0.5591 GB, free: 2.902 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.726e-05/0.472, allocations: 0 / 0.5591 GB, free: 2.902 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006528/0.4727, allocations: 415.2 kB / 0.5595 GB, free: 2.422 MB / 394.7 MB Notification: Performance of pre-optimization done (n=23): time 2.706e-06/0.4727, allocations: 0 / 0.5595 GB, free: 2.422 MB / 394.7 MB Notification: Performance of matching and sorting (n=23): time 0.0009046/0.4737, allocations: 201.4 kB / 0.5597 GB, free: 2.219 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001506/0.4738, allocations: 217.6 kB / 0.5599 GB, free: 1.957 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007304/0.4746, allocations: 280.2 kB / 0.5601 GB, free: 1.676 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 6.025e-05/0.4747, allocations: 29.7 kB / 0.5602 GB, free: 1.641 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.793e-05/0.4748, allocations: 163 kB / 0.5603 GB, free: 1.477 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001073/0.4749, allocations: 51.36 kB / 0.5604 GB, free: 1.426 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.106e-05/0.4749, allocations: 0 / 0.5604 GB, free: 1.426 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001583/0.4751, allocations: 318.8 kB / 0.5607 GB, free: 1.105 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002125/0.4753, allocations: 48.17 kB / 0.5607 GB, free: 1.059 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003251/0.4757, allocations: 130.4 kB / 0.5609 GB, free: 0.8945 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002508/0.4759, allocations: 59.94 kB / 0.5609 GB, free: 0.8359 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.075e-06/0.476, allocations: 4 kB / 0.5609 GB, free: 0.832 MB / 394.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007062/0.4767, allocations: 177.4 kB / 0.5611 GB, free: 0.6523 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.424e-05/0.4767, allocations: 12.22 kB / 0.5611 GB, free: 0.6406 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.005e-05/0.4767, allocations: 0 / 0.5611 GB, free: 0.6406 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.536e-05/0.4768, allocations: 4 kB / 0.5611 GB, free: 0.6367 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002787/0.4771, allocations: 27.83 kB / 0.5611 GB, free: 0.6094 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.136e-05/0.4771, allocations: 4 kB / 0.5611 GB, free: 0.6055 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002916/0.4774, allocations: 15.98 kB / 0.5611 GB, free: 0.5898 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.942e-05/0.4775, allocations: 8 kB / 0.5612 GB, free: 0.582 MB / 394.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.0003395/0.4778, allocations: 170.5 kB / 0.5613 GB, free: 400 kB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001677/0.478, allocations: 31.62 kB / 0.5613 GB, free: 368 kB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005615/0.4786, allocations: 131.4 kB / 0.5615 GB, free: 236 kB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.008e-05/0.4786, allocations: 4 kB / 0.5615 GB, free: 232 kB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.304e-06/0.4786, allocations: 0 / 0.5615 GB, free: 232 kB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.045e-05/0.4787, allocations: 3.984 kB / 0.5615 GB, free: 228 kB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005592/0.4792, allocations: 265.9 kB / 0.5617 GB, free: 15.93 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.579e-06/0.4793, allocations: 4 kB / 0.5617 GB, free: 15.92 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.846e-05/0.4794, allocations: 11.94 kB / 0.5617 GB, free: 15.91 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.338e-05/0.4794, allocations: 4.188 kB / 0.5618 GB, free: 15.91 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.244e-05/0.4795, allocations: 11.98 kB / 0.5618 GB, free: 15.89 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.911e-06/0.4795, allocations: 4 kB / 0.5618 GB, free: 15.89 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.938e-06/0.4795, allocations: 0 / 0.5618 GB, free: 15.89 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009277/0.4804, allocations: 281.7 kB / 0.562 GB, free: 15.58 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001815/0.4806, allocations: 112.8 kB / 0.5621 GB, free: 15.45 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001459/0.4808, allocations: 15.98 kB / 0.5622 GB, free: 15.43 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003779/0.4812, allocations: 16 kB / 0.5622 GB, free: 15.42 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001426/0.4814, allocations: 31.81 kB / 0.5622 GB, free: 15.39 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.628e-05/0.4814, allocations: 8 kB / 0.5622 GB, free: 15.38 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0005659/0.482, allocations: 224.5 kB / 0.5624 GB, free: 15.16 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0007785/0.4828, allocations: 63.94 kB / 0.5625 GB, free: 15.1 MB / 410.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.001432/0.4843, allocations: 323.7 kB / 0.5628 GB, free: 14.81 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004977/0.4893, allocations: 252.9 kB / 0.563 GB, free: 14.55 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.764e-06/0.4893, allocations: 0 / 0.563 GB, free: 14.55 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006514/0.49, allocations: 245 kB / 0.5633 GB, free: 14.29 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007011/0.4907, allocations: 47.94 kB / 0.5633 GB, free: 14.25 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00158/0.4923, allocations: 375.9 kB / 0.5637 GB, free: 13.84 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009407/0.4933, allocations: 0.7907 MB / 0.5644 GB, free: 13.02 MB / 410.7 MB Notification: Performance of SimCode: time 1.212e-06/0.4933, allocations: 0 / 0.5644 GB, free: 13.02 MB / 410.7 MB Notification: Performance of Templates: time 0.03306/0.5264, allocations: 3.487 MB / 0.5679 GB, free: 9.523 MB / 410.7 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/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_cpp_ModelicaTest.Blocks.OnDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches