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") [: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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.000909/0.0009092, allocations: 189.8 kB / 7.805 MB, free: 2.492 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9983/0.9983, allocations: 205.2 MB / 213.4 MB, free: 13.86 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007765/0.0007765, allocations: 96.28 kB / 261.4 MB, free: 13.62 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.1537/0.1537, allocations: 43.48 MB / 352.8 MB, free: 2.039 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 5.129e-06/5.149e-06, allocations: 0 / 417.7 MB, free: 40.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2274/0.2274, allocations: 58.84 MB / 476.6 MB, free: 5.316 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1079/0.3353, allocations: 88.26 MB / 0.5516 GB, free: 10.76 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002016/0.3356, allocations: 67.47 kB / 0.5516 GB, free: 10.7 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.01519/0.3508, allocations: 5.598 MB / 0.5571 GB, free: 5.102 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.617e-05/0.3508, allocations: 4 kB / 0.5571 GB, free: 5.098 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.0006043/0.3514, allocations: 0.5904 MB / 0.5577 GB, free: 4.438 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.071e-05/0.3515, allocations: 12.03 kB / 0.5577 GB, free: 4.426 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.013e-05/0.3516, allocations: 31.62 kB / 0.5577 GB, free: 4.395 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003916/0.352, allocations: 281.7 kB / 0.558 GB, free: 4.082 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.559e-05/0.3521, allocations: 85.11 kB / 0.5581 GB, free: 3.98 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.955e-05/0.3521, allocations: 12 kB / 0.5581 GB, free: 3.969 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001578/0.3523, allocations: 76.06 kB / 0.5582 GB, free: 3.891 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002166/0.3525, allocations: 137.6 kB / 0.5583 GB, free: 3.738 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.997e-06/0.3525, allocations: 0 / 0.5583 GB, free: 3.738 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.018e-05/0.3525, allocations: 4 kB / 0.5583 GB, free: 3.734 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.518e-06/0.3525, allocations: 11.98 kB / 0.5583 GB, free: 3.723 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006488/0.3532, allocations: 0.5796 MB / 0.5589 GB, free: 3.098 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002022/0.3534, allocations: 156 kB / 0.559 GB, free: 2.918 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001065/0.3535, allocations: 86.48 kB / 0.5591 GB, free: 2.824 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.921e-05/0.3536, allocations: 4.109 kB / 0.5591 GB, free: 2.82 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002858/0.3539, allocations: 421.1 kB / 0.5595 GB, free: 2.332 MB / 394.7 MB Notification: Performance of pre-optimization done (n=23): time 1.523e-06/0.3539, allocations: 0 / 0.5595 GB, free: 2.332 MB / 394.7 MB Notification: Performance of matching and sorting (n=23): time 0.0003602/0.3542, allocations: 185.4 kB / 0.5597 GB, free: 2.145 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.88e-05/0.3543, allocations: 221.5 kB / 0.5599 GB, free: 1.879 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002843/0.3546, allocations: 280.2 kB / 0.5602 GB, free: 1.598 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.689e-05/0.3547, allocations: 33.7 kB / 0.5602 GB, free: 1.559 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.26e-05/0.3547, allocations: 108.5 kB / 0.5603 GB, free: 1.445 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.902e-05/0.3548, allocations: 51.34 kB / 0.5603 GB, free: 1.395 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.447e-06/0.3548, allocations: 7.938 kB / 0.5604 GB, free: 1.387 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.00012/0.3549, allocations: 334.8 kB / 0.5607 GB, free: 1.051 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.36e-05/0.355, allocations: 44.19 kB / 0.5607 GB, free: 1.008 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001384/0.3552, allocations: 130.5 kB / 0.5608 GB, free: 0.8438 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001001/0.3553, allocations: 59.89 kB / 0.5609 GB, free: 0.7852 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.037e-06/0.3553, allocations: 4 kB / 0.5609 GB, free: 0.7812 MB / 394.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003076/0.3556, allocations: 185.2 kB / 0.5611 GB, free: 0.5938 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.405e-05/0.3556, allocations: 15.83 kB / 0.5611 GB, free: 0.5781 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.392e-06/0.3556, allocations: 4 kB / 0.5611 GB, free: 0.5742 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.284e-05/0.3556, allocations: 4 kB / 0.5611 GB, free: 0.5703 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001048/0.3557, allocations: 20.22 kB / 0.5611 GB, free: 0.5508 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.694e-06/0.3558, allocations: 11.92 kB / 0.5611 GB, free: 0.5391 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000133/0.3559, allocations: 16 kB / 0.5611 GB, free: 0.5234 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.623e-05/0.3559, allocations: 8 kB / 0.5612 GB, free: 0.5156 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.0001649/0.3561, allocations: 229.4 kB / 0.5614 GB, free: 276 kB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.109e-05/0.3562, allocations: 35.72 kB / 0.5614 GB, free: 240 kB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002285/0.3564, allocations: 143.2 kB / 0.5615 GB, free: 96 kB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.805e-06/0.3564, allocations: 0 / 0.5615 GB, free: 96 kB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.322e-06/0.3564, allocations: 0 / 0.5615 GB, free: 96 kB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.632e-06/0.3564, allocations: 4 kB / 0.5615 GB, free: 92 kB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002481/0.3567, allocations: 265.9 kB / 0.5618 GB, free: 15.79 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.3567, allocations: 0 / 0.5618 GB, free: 15.79 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.558e-05/0.3567, allocations: 11.98 kB / 0.5618 GB, free: 15.78 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.3567, allocations: 0 / 0.5618 GB, free: 15.78 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.591e-05/0.3568, allocations: 12 kB / 0.5618 GB, free: 15.77 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.637e-06/0.3568, allocations: 8 kB / 0.5618 GB, free: 15.76 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.3568, allocations: 3.938 kB / 0.5618 GB, free: 15.76 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003831/0.3572, allocations: 277.7 kB / 0.5621 GB, free: 15.45 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.96e-05/0.3573, allocations: 108.8 kB / 0.5622 GB, free: 15.32 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.104e-05/0.3573, allocations: 15.91 kB / 0.5622 GB, free: 15.31 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001291/0.3575, allocations: 19.98 kB / 0.5622 GB, free: 15.29 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.4e-05/0.3576, allocations: 15.98 kB / 0.5623 GB, free: 15.27 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.452e-05/0.3576, allocations: 15.98 kB / 0.5623 GB, free: 15.26 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0001937/0.3578, allocations: 220.4 kB / 0.5625 GB, free: 15.04 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002962/0.3581, allocations: 67.92 kB / 0.5625 GB, free: 14.98 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.0006412/0.3587, allocations: 332.3 kB / 0.5629 GB, free: 14.68 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0003256/0.3591, allocations: 249.1 kB / 0.5631 GB, free: 14.42 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.3591, allocations: 0 / 0.5631 GB, free: 14.42 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002342/0.3593, allocations: 249.5 kB / 0.5633 GB, free: 14.16 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000292/0.3596, allocations: 47.39 kB / 0.5634 GB, free: 14.12 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006248/0.3603, allocations: 342.2 kB / 0.5637 GB, free: 13.75 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003265/0.3606, allocations: 0.7903 MB / 0.5645 GB, free: 12.93 MB / 410.7 MB Notification: Performance of SimCode: time 1.633e-06/0.3606, allocations: 0 / 0.5645 GB, free: 12.93 MB / 410.7 MB Notification: Performance of Templates: time 0.006156/0.3668, allocations: 3.175 MB / 0.5676 GB, free: 9.746 MB / 410.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