Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge.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/IndustrialControlSystems 1.1.0-master/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) 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 IndustrialControlSystems with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/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(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_OffDelay_Fedge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_OffDelay_Fedge",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.0063/0.0063, allocations: 183.6 kB / 7.458 MB, free: 2.246 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.08653/0.08653, allocations: 10.59 MB / 18.46 MB, free: 2.148 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.151/2.151, allocations: 205.2 MB / 226.5 MB, free: 0.5078 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.001414/0.001414, allocations: 91.88 kB / 276.9 MB, free: 15.63 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1691/0.1706, allocations: 56.13 MB / 333 MB, free: 7.441 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.37/0.5407, allocations: 49.99 MB / 383 MB, free: 39.77 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1087/0.6495, allocations: 80.56 MB / 463.6 MB, free: 7.09 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002511/0.6498, allocations: 87.94 kB / 463.7 MB, free: 7.004 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 23 * Number of variables: 23 Notification: Performance of Generate backend data structure: time 0.02688/0.6767, allocations: 9.399 MB / 473.1 MB, free: 13.55 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.028e-05/0.6767, allocations: 12 kB / 473.1 MB, free: 13.54 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.153e-05/0.6768, allocations: 31.62 kB / 473.1 MB, free: 13.5 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005654/0.6774, allocations: 339.1 kB / 473.4 MB, free: 13.13 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.168e-05/0.6774, allocations: 11.91 kB / 473.4 MB, free: 13.12 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.236e-05/0.6775, allocations: 11.98 kB / 473.5 MB, free: 13.11 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000155/0.6776, allocations: 64.17 kB / 473.5 MB, free: 13.04 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002261/0.6779, allocations: 141.1 kB / 473.7 MB, free: 12.89 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.166e-06/0.6779, allocations: 0 / 473.7 MB, free: 12.89 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.37e-05/0.6779, allocations: 4 kB / 473.7 MB, free: 12.89 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.769e-06/0.6779, allocations: 0 / 473.7 MB, free: 12.89 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007063/0.6786, allocations: 485.1 kB / 474.1 MB, free: 12.38 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002659/0.6789, allocations: 118.8 kB / 474.3 MB, free: 12.25 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.694e-05/0.679, allocations: 52.86 kB / 474.3 MB, free: 12.2 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.937e-05/0.679, allocations: 7.984 kB / 474.3 MB, free: 12.19 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001855/0.6792, allocations: 120.2 kB / 474.4 MB, free: 12.06 MB / 362.7 MB Notification: Performance of pre-optimization done (n=18): time 1.412e-06/0.6792, allocations: 0 / 474.4 MB, free: 12.06 MB / 362.7 MB Notification: Performance of matching and sorting (n=18): time 0.0004387/0.6797, allocations: 181.9 kB / 474.6 MB, free: 11.88 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.221e-05/0.6798, allocations: 110.7 kB / 474.7 MB, free: 11.74 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004092/0.6802, allocations: 367.4 kB / 475.1 MB, free: 11.38 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.739e-05/0.6802, allocations: 35.58 kB / 475.1 MB, free: 11.34 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.687e-05/0.6803, allocations: 116.5 kB / 475.2 MB, free: 11.22 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.53e-05/0.6803, allocations: 39.59 kB / 475.3 MB, free: 11.18 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.614e-06/0.6804, allocations: 0 / 475.3 MB, free: 11.18 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001399/0.6805, allocations: 346.8 kB / 475.6 MB, free: 10.84 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.647e-05/0.6806, allocations: 40.23 kB / 475.6 MB, free: 10.79 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001451/0.6807, allocations: 140.5 kB / 475.8 MB, free: 10.61 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001419/0.6809, allocations: 64.97 kB / 475.8 MB, free: 10.55 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.6809, allocations: 0 / 475.8 MB, free: 10.55 MB / 362.7 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0003024/0.6812, allocations: 193.2 kB / 476 MB, free: 10.36 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.619e-05/0.6812, allocations: 6.344 kB / 476 MB, free: 10.35 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.883e-06/0.6812, allocations: 7.938 kB / 476 MB, free: 10.34 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.824e-05/0.6813, allocations: 4.25 kB / 476 MB, free: 10.34 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001213/0.6814, allocations: 31.98 kB / 476.1 MB, free: 10.31 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.694e-06/0.6814, allocations: 7.938 kB / 476.1 MB, free: 10.3 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001325/0.6816, allocations: 23.83 kB / 476.1 MB, free: 10.28 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.617e-05/0.6816, allocations: 11.98 kB / 476.1 MB, free: 10.27 MB / 362.7 MB Warning: Assuming fixed start value for the following 3 variables: timer.Sd:DISCRETE(fixed = false ) type: Boolean timer.Q:DISCRETE(fixed = false ) "status of the timer" type: Boolean timer.tr:DISCRETE(fixed = false ) "residual time" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 23 ($PRE.timer.Sd,timer.Sd,$PRE.timer.run,timer.run,$PRE.timer.startTime,timer.startTime,$PRE.timer.Q,timer.Q,$PRE.timer.tr,timer.tr,$whenCondition3,$PRE.ResetSignal.combiTimeTable.nextTimeEvent,$whenCondition2,$PRE.SetSignal.combiTimeTable.nextTimeEvent,$whenCondition1,ResetSignal.y,ResetSignal.combiTimeTable.nextTimeEvent,$PRE.ResetSignal.combiTimeTable.nextTimeEventScaled,ResetSignal.combiTimeTable.nextTimeEventScaled,SetSignal.y,SetSignal.combiTimeTable.nextTimeEvent,$PRE.SetSignal.combiTimeTable.nextTimeEventScaled,SetSignal.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * 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.0001615/0.6817, allocations: 132.6 kB / 476.3 MB, free: 10.13 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.815e-05/0.6818, allocations: 39.52 kB / 476.3 MB, free: 10.09 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004395/0.6823, allocations: 204.1 kB / 476.5 MB, free: 9.895 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.001e-06/0.6823, allocations: 4 kB / 476.5 MB, free: 9.891 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.474e-06/0.6823, allocations: 0 / 476.5 MB, free: 9.891 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.46e-06/0.6823, allocations: 3.938 kB / 476.5 MB, free: 9.887 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003192/0.6826, allocations: 285.9 kB / 476.8 MB, free: 9.57 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.6826, allocations: 0 / 476.8 MB, free: 9.57 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.43e-05/0.6827, allocations: 24.58 kB / 476.8 MB, free: 9.547 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.404e-06/0.6827, allocations: 0 / 476.8 MB, free: 9.547 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.83e-05/0.6827, allocations: 4 kB / 476.8 MB, free: 9.543 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.6827, allocations: 4 kB / 476.8 MB, free: 9.539 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.6827, allocations: 0 / 476.8 MB, free: 9.539 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004304/0.6832, allocations: 224.5 kB / 477 MB, free: 9.301 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0005177/0.6837, allocations: 0.5948 MB / 477.6 MB, free: 8.684 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001124/0.6838, allocations: 122.1 kB / 477.7 MB, free: 8.547 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.838e-05/0.6839, allocations: 3.984 kB / 477.7 MB, free: 8.543 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001117/0.684, allocations: 11.91 kB / 477.8 MB, free: 8.531 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.106e-05/0.6841, allocations: 19.91 kB / 477.8 MB, free: 8.512 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.733e-05/0.6841, allocations: 8 kB / 477.8 MB, free: 8.504 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0003383/0.6845, allocations: 287.1 kB / 478.1 MB, free: 8.219 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009852/0.6855, allocations: 76.05 kB / 478.1 MB, free: 8.145 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition3,$whenCondition2,$whenCondition1,timer.Q,timer.tr,timer.run,timer.startTime,timer.Sd,SetSignal.y,SetSignal.combiTimeTable.nextTimeEvent,SetSignal.combiTimeTable.nextTimeEventScaled,ResetSignal.y,ResetSignal.combiTimeTable.nextTimeEvent,ResetSignal.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 6 (timer.Sd,timer.run,SetSignal.combiTimeTable.nextTimeEvent,ResetSignal.combiTimeTable.nextTimeEvent,SetSignal.combiTimeTable.nextTimeEventScaled,ResetSignal.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * 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.0008169/0.6863, allocations: 358 kB / 478.5 MB, free: 7.828 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003157/0.6866, allocations: 144.9 kB / 478.6 MB, free: 7.688 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.038e-06/0.6866, allocations: 4.5 kB / 478.6 MB, free: 7.684 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001215/0.6867, allocations: 79.92 kB / 478.7 MB, free: 7.605 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004254/0.6872, allocations: 62.58 kB / 478.8 MB, free: 7.547 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008362/0.688, allocations: 386 kB / 479.1 MB, free: 7.148 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006047/0.6886, allocations: 0.8099 MB / 480 MB, free: 6.312 MB / 362.7 MB Notification: Performance of SimCode: time 2.4e-07/0.6886, allocations: 0 / 480 MB, free: 6.312 MB / 362.7 MB (rm -f IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_OffDelay_Fedge_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_OffDelay_Fedge.fmu > IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge.pipe 2>&1)