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") [: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 4.0.0+maint.om/package.mo): time 0.0009633/0.0009635, allocations: 172.8 kB / 8.517 MB, free: 1.844 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.245/1.245, allocations: 221.4 MB / 230.3 MB, free: 7.695 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009789/0.0009791, allocations: 105.9 kB / 281.2 MB, free: 5.5 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.1836/0.1836, allocations: 44.15 MB / 376.1 MB, free: 3.223 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 7.835e-06/7.855e-06, allocations: 0 / 444 MB, free: 15.62 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1413/0.1413, allocations: 61.9 MB / 0.4941 GB, free: 1.645 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.312/0.4534, allocations: 89.8 MB / 0.5818 GB, free: 7.004 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000213/0.4536, allocations: 70.28 kB / 0.5818 GB, free: 6.969 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.01692/0.4706, allocations: 5.751 MB / 0.5875 GB, free: 1.223 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.369e-05/0.4706, allocations: 8 kB / 0.5875 GB, free: 1.215 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.000868/0.4715, allocations: 0.5865 MB / 0.588 GB, free: 0.5586 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.975e-05/0.4716, allocations: 11.97 kB / 0.5881 GB, free: 0.5469 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001047/0.4717, allocations: 31.7 kB / 0.5881 GB, free: 0.5156 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005011/0.4722, allocations: 293.6 kB / 0.5884 GB, free: 192 kB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001024/0.4723, allocations: 85.11 kB / 0.5884 GB, free: 88 kB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.858e-05/0.4724, allocations: 12 kB / 0.5885 GB, free: 76 kB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002315/0.4726, allocations: 72.27 kB / 0.5885 GB, free: 16 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002377/0.4728, allocations: 141.5 kB / 0.5887 GB, free: 15.84 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.177e-06/0.4729, allocations: 0 / 0.5887 GB, free: 15.84 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.182e-05/0.4729, allocations: 4 kB / 0.5887 GB, free: 15.84 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.022e-06/0.4729, allocations: 0 / 0.5887 GB, free: 15.84 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000789/0.4737, allocations: 0.5952 MB / 0.5892 GB, free: 15.2 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00022/0.4739, allocations: 149.2 kB / 0.5894 GB, free: 15.02 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000121/0.4741, allocations: 78.56 kB / 0.5895 GB, free: 14.94 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.237e-05/0.4741, allocations: 0 / 0.5895 GB, free: 14.94 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000374/0.4745, allocations: 418 kB / 0.5899 GB, free: 14.45 MB / 410.7 MB Notification: Performance of pre-optimization done (n=23): time 1.513e-06/0.4745, allocations: 0 / 0.5899 GB, free: 14.45 MB / 410.7 MB Notification: Performance of matching and sorting (n=23): time 0.0004173/0.4749, allocations: 189.3 kB / 0.59 GB, free: 14.26 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001233/0.475, allocations: 217.6 kB / 0.5902 GB, free: 14 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003554/0.4754, allocations: 284.2 kB / 0.5905 GB, free: 13.71 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.045e-05/0.4754, allocations: 29.7 kB / 0.5905 GB, free: 13.68 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.286e-05/0.4755, allocations: 104.5 kB / 0.5906 GB, free: 13.57 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.833e-05/0.4756, allocations: 51.34 kB / 0.5907 GB, free: 13.52 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.293e-05/0.4756, allocations: 4 kB / 0.5907 GB, free: 13.52 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001663/0.4758, allocations: 334.8 kB / 0.591 GB, free: 13.18 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.794e-05/0.4759, allocations: 44.28 kB / 0.5911 GB, free: 13.14 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001453/0.476, allocations: 142.4 kB / 0.5912 GB, free: 12.96 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.976e-05/0.4761, allocations: 55.94 kB / 0.5912 GB, free: 12.91 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.4761, allocations: 0 / 0.5912 GB, free: 12.91 MB / 410.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003609/0.4765, allocations: 198.9 kB / 0.5914 GB, free: 12.71 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.386e-05/0.4765, allocations: 7.938 kB / 0.5914 GB, free: 12.7 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.772e-06/0.4765, allocations: 0 / 0.5914 GB, free: 12.7 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.042e-05/0.4766, allocations: 7.906 kB / 0.5915 GB, free: 12.7 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001163/0.4767, allocations: 19.98 kB / 0.5915 GB, free: 12.68 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.016e-05/0.4767, allocations: 12.16 kB / 0.5915 GB, free: 12.66 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001392/0.4769, allocations: 15.98 kB / 0.5915 GB, free: 12.65 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.249e-05/0.4769, allocations: 16 kB / 0.5915 GB, free: 12.63 MB / 410.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.0002051/0.4771, allocations: 224.5 kB / 0.5917 GB, free: 12.39 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.197e-05/0.4772, allocations: 31.72 kB / 0.5918 GB, free: 12.36 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002608/0.4774, allocations: 131.3 kB / 0.5919 GB, free: 12.23 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.666e-06/0.4775, allocations: 8 kB / 0.5919 GB, free: 12.22 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.045e-06/0.4775, allocations: 3.984 kB / 0.5919 GB, free: 12.21 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.069e-06/0.4775, allocations: 0 / 0.5919 GB, free: 12.21 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002722/0.4778, allocations: 269.9 kB / 0.5922 GB, free: 11.91 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.4778, allocations: 0 / 0.5922 GB, free: 11.91 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.911e-05/0.4778, allocations: 8 kB / 0.5922 GB, free: 11.91 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.999e-06/0.4778, allocations: 4.172 kB / 0.5922 GB, free: 11.9 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.525e-05/0.4779, allocations: 8 kB / 0.5922 GB, free: 11.89 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.819e-06/0.4779, allocations: 7.938 kB / 0.5922 GB, free: 11.89 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.617e-06/0.4779, allocations: 0 / 0.5922 GB, free: 11.89 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004013/0.4783, allocations: 287.7 kB / 0.5925 GB, free: 11.57 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.63e-05/0.4784, allocations: 112.8 kB / 0.5926 GB, free: 11.44 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.111e-05/0.4785, allocations: 11.98 kB / 0.5926 GB, free: 11.43 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001398/0.4786, allocations: 20 kB / 0.5926 GB, free: 11.41 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.262e-05/0.4787, allocations: 23.88 kB / 0.5926 GB, free: 11.39 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.57e-05/0.4787, allocations: 12 kB / 0.5926 GB, free: 11.38 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0002395/0.479, allocations: 224.5 kB / 0.5928 GB, free: 11.16 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003515/0.4793, allocations: 63.94 kB / 0.5929 GB, free: 11.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.000697/0.48, allocations: 340.6 kB / 0.5932 GB, free: 10.84 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0003793/0.4804, allocations: 245 kB / 0.5935 GB, free: 10.58 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.4804, allocations: 0 / 0.5935 GB, free: 10.58 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002512/0.4807, allocations: 253 kB / 0.5937 GB, free: 10.31 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003071/0.481, allocations: 36.84 kB / 0.5937 GB, free: 10.28 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007407/0.4818, allocations: 350.1 kB / 0.5941 GB, free: 9.898 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004076/0.4822, allocations: 0.7789 MB / 0.5948 GB, free: 9.09 MB / 410.7 MB Notification: Performance of SimCode: time 3.1e-07/0.4822, allocations: 4 kB / 0.5948 GB, free: 9.086 MB / 410.7 MB Notification: Performance of Templates: time 0.006596/0.4888, allocations: 3.174 MB / 0.5979 GB, free: 5.926 MB / 410.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