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: "" <> buildModelFMU(ModelicaTest.Blocks.OnDelay,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_OnDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.OnDelay,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_OnDelay",fmuType="me",version="2.0",platforms={"static"}) [: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.001367/0.001367, allocations: 182.6 kB / 7.798 MB, free: 2.18 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.555/1.555, allocations: 205.2 MB / 213.4 MB, free: 13.85 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.0009051/0.0009052, allocations: 94.55 kB / 261.4 MB, free: 13.53 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.2078/0.2078, allocations: 43.49 MB / 352.9 MB, free: 1.941 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2379/0.4457, allocations: 64.95 MB / 417.8 MB, free: 40.47 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3685/0.8142, allocations: 58.84 MB / 476.6 MB, free: 5.164 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1352/0.9495, allocations: 88.26 MB / 0.5517 GB, free: 10.63 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002397/0.9498, allocations: 67.97 kB / 0.5517 GB, free: 10.57 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.01813/0.9679, allocations: 6.197 MB / 0.5578 GB, free: 4.297 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.53e-05/0.968, allocations: 8 kB / 0.5578 GB, free: 4.289 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.232e-05/0.9681, allocations: 35.62 kB / 0.5578 GB, free: 4.254 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004505/0.9685, allocations: 281.7 kB / 0.5581 GB, free: 3.941 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001081/0.9686, allocations: 89.09 kB / 0.5582 GB, free: 3.836 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.564e-05/0.9687, allocations: 12 kB / 0.5582 GB, free: 3.824 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002484/0.969, allocations: 68.08 kB / 0.5583 GB, free: 3.754 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000279/0.9693, allocations: 145.5 kB / 0.5584 GB, free: 3.594 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.456e-06/0.9693, allocations: 0 / 0.5584 GB, free: 3.594 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.332e-05/0.9693, allocations: 4 kB / 0.5584 GB, free: 3.59 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.146e-06/0.9693, allocations: 8 kB / 0.5584 GB, free: 3.582 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008504/0.9702, allocations: 0.5796 MB / 0.559 GB, free: 2.957 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000233/0.9704, allocations: 152 kB / 0.5591 GB, free: 2.781 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001238/0.9706, allocations: 86.42 kB / 0.5592 GB, free: 2.688 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.329e-05/0.9706, allocations: 112 / 0.5592 GB, free: 2.688 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005022/0.9711, allocations: 414.9 kB / 0.5596 GB, free: 2.207 MB / 394.7 MB Notification: Performance of pre-optimization done (n=23): time 1.623e-06/0.9711, allocations: 0 / 0.5596 GB, free: 2.207 MB / 394.7 MB Notification: Performance of matching and sorting (n=23): time 0.0005203/0.9716, allocations: 201.2 kB / 0.5598 GB, free: 2.004 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001628/0.9718, allocations: 217.6 kB / 0.56 GB, free: 1.742 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003953/0.9722, allocations: 280.2 kB / 0.5603 GB, free: 1.461 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.485e-05/0.9723, allocations: 29.7 kB / 0.5603 GB, free: 1.426 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001079/0.9724, allocations: 108.5 kB / 0.5604 GB, free: 1.312 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.755e-05/0.9725, allocations: 51.36 kB / 0.5604 GB, free: 1.262 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.021e-05/0.9725, allocations: 3.938 kB / 0.5604 GB, free: 1.258 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001642/0.9727, allocations: 338.8 kB / 0.5608 GB, free: 0.918 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.971e-05/0.9728, allocations: 44.12 kB / 0.5608 GB, free: 0.875 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001664/0.9729, allocations: 134.5 kB / 0.5609 GB, free: 0.707 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001078/0.973, allocations: 55.95 kB / 0.561 GB, free: 0.6523 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.272e-06/0.9731, allocations: 3.984 kB / 0.561 GB, free: 0.6484 MB / 394.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003293/0.9734, allocations: 197.2 kB / 0.5612 GB, free: 460 kB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.803e-05/0.9734, allocations: 7.906 kB / 0.5612 GB, free: 452 kB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.678e-06/0.9734, allocations: 4 kB / 0.5612 GB, free: 448 kB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.05e-05/0.9735, allocations: 4 kB / 0.5612 GB, free: 444 kB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001303/0.9736, allocations: 24.14 kB / 0.5612 GB, free: 420 kB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.424e-06/0.9736, allocations: 8 kB / 0.5612 GB, free: 412 kB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001449/0.9738, allocations: 15.98 kB / 0.5612 GB, free: 396 kB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.902e-05/0.9738, allocations: 8 kB / 0.5612 GB, free: 388 kB / 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.000222/0.974, allocations: 233.3 kB / 0.5615 GB, free: 132 kB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.614e-05/0.9741, allocations: 31.72 kB / 0.5615 GB, free: 100 kB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003044/0.9744, allocations: 143.2 kB / 0.5616 GB, free: 15.96 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.9744, allocations: 0 / 0.5616 GB, free: 15.96 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.865e-06/0.9744, allocations: 4 kB / 0.5616 GB, free: 15.95 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.969e-06/0.9745, allocations: 0 / 0.5616 GB, free: 15.95 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003087/0.9748, allocations: 273.9 kB / 0.5619 GB, free: 15.65 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.9748, allocations: 0 / 0.5619 GB, free: 15.65 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.808e-05/0.9748, allocations: 4 kB / 0.5619 GB, free: 15.64 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.37e-06/0.9748, allocations: 4 kB / 0.5619 GB, free: 15.64 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.467e-05/0.9749, allocations: 4 kB / 0.5619 GB, free: 15.64 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.486e-06/0.9749, allocations: 12 kB / 0.5619 GB, free: 15.62 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.856e-06/0.9749, allocations: 0 / 0.5619 GB, free: 15.62 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003843/0.9753, allocations: 281.6 kB / 0.5622 GB, free: 15.31 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0005278/0.9758, allocations: 0.6467 MB / 0.5628 GB, free: 14.62 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001028/0.9759, allocations: 108.8 kB / 0.5629 GB, free: 14.5 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.997e-05/0.976, allocations: 15.94 kB / 0.5629 GB, free: 14.48 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001419/0.9762, allocations: 27.89 kB / 0.563 GB, free: 14.46 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001003/0.9763, allocations: 16.17 kB / 0.563 GB, free: 14.44 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.608e-05/0.9763, allocations: 15.92 kB / 0.563 GB, free: 14.43 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0002395/0.9765, allocations: 220.5 kB / 0.5632 GB, free: 14.21 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.000902/0.9775, allocations: 71.92 kB / 0.5633 GB, free: 14.14 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.0007703/0.9782, allocations: 336.2 kB / 0.5636 GB, free: 13.85 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0004568/0.9787, allocations: 252.8 kB / 0.5638 GB, free: 13.58 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.9787, allocations: 0 / 0.5638 GB, free: 13.58 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003041/0.979, allocations: 245 kB / 0.5641 GB, free: 13.32 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003069/0.9793, allocations: 43.25 kB / 0.5641 GB, free: 13.29 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007717/0.9801, allocations: 358.5 kB / 0.5645 GB, free: 12.9 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004525/0.9806, allocations: 0.7825 MB / 0.5652 GB, free: 12.09 MB / 410.7 MB Notification: Performance of SimCode: time 3.11e-07/0.9806, allocations: 0 / 0.5652 GB, free: 12.09 MB / 410.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Blocks_OnDelay_fmu --startTime=0 --stopTime=11 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Blocks_OnDelay.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.pipe 2>&1)