Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge.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_Redge,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_OffDelay_Redge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_OffDelay_Redge",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.004225/0.004225, allocations: 181.1 kB / 7.459 MB, free: 2.5 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.06673/0.06673, allocations: 10.58 MB / 18.46 MB, free: 2.172 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.798/1.798, allocations: 205.2 MB / 226.5 MB, free: 0.5117 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.001116/0.001116, allocations: 88.7 kB / 276.9 MB, free: 15.64 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1732/0.1743, allocations: 56.13 MB / 333 MB, free: 7.434 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4811/0.6555, allocations: 49.99 MB / 383 MB, free: 39.75 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.162/0.8176, allocations: 80.56 MB / 463.6 MB, free: 7.066 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004012/0.8181, allocations: 83.94 kB / 463.7 MB, free: 6.984 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.03205/0.8502, allocations: 9.451 MB / 473.1 MB, free: 13.48 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.101e-05/0.8503, allocations: 8 kB / 473.1 MB, free: 13.47 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002172/0.8505, allocations: 35.53 kB / 473.2 MB, free: 13.43 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009284/0.8514, allocations: 344.8 kB / 473.5 MB, free: 13.05 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.89e-05/0.8515, allocations: 11.98 kB / 473.5 MB, free: 13.04 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.122e-05/0.8516, allocations: 8 kB / 473.5 MB, free: 13.04 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002099/0.8518, allocations: 68.11 kB / 473.6 MB, free: 12.97 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003122/0.8521, allocations: 133.1 kB / 473.7 MB, free: 12.82 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.327e-05/0.8521, allocations: 0 / 473.7 MB, free: 12.82 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.808e-05/0.8522, allocations: 7.984 kB / 473.7 MB, free: 12.82 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.057e-06/0.8522, allocations: 0 / 473.7 MB, free: 12.82 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001084/0.8533, allocations: 481.2 kB / 474.2 MB, free: 12.31 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003745/0.8537, allocations: 126.7 kB / 474.3 MB, free: 12.18 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001299/0.8538, allocations: 56.98 kB / 474.4 MB, free: 12.12 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.161e-05/0.8538, allocations: 0 / 474.4 MB, free: 12.12 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002371/0.8541, allocations: 119.3 kB / 474.5 MB, free: 11.99 MB / 362.7 MB Notification: Performance of pre-optimization done (n=18): time 1.413e-06/0.8541, allocations: 0 / 474.5 MB, free: 11.99 MB / 362.7 MB Notification: Performance of matching and sorting (n=18): time 0.0005791/0.8547, allocations: 189.8 kB / 474.7 MB, free: 11.8 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001179/0.8548, allocations: 110.8 kB / 474.8 MB, free: 11.66 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006038/0.8554, allocations: 387.6 kB / 475.2 MB, free: 11.29 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.996e-05/0.8555, allocations: 25.7 kB / 475.2 MB, free: 11.25 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.169e-05/0.8555, allocations: 118.5 kB / 475.3 MB, free: 11.13 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.137e-05/0.8556, allocations: 43.59 kB / 475.3 MB, free: 11.09 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.597e-06/0.8556, allocations: 0 / 475.3 MB, free: 11.09 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001671/0.8558, allocations: 346.8 kB / 475.7 MB, free: 10.74 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.446e-05/0.8559, allocations: 40.44 kB / 475.7 MB, free: 10.7 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001718/0.8561, allocations: 148.3 kB / 475.9 MB, free: 10.51 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001409/0.8562, allocations: 57.06 kB / 475.9 MB, free: 10.46 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.587e-06/0.8562, allocations: 0 / 475.9 MB, free: 10.46 MB / 362.7 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0004121/0.8567, allocations: 201.2 kB / 476.1 MB, free: 10.25 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.38e-05/0.8567, allocations: 12.88 kB / 476.1 MB, free: 10.24 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.102e-05/0.8567, allocations: 0 / 476.1 MB, free: 10.24 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.932e-05/0.8567, allocations: 4.125 kB / 476.1 MB, free: 10.24 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001447/0.8569, allocations: 35.97 kB / 476.2 MB, free: 10.2 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.364e-05/0.8569, allocations: 7.938 kB / 476.2 MB, free: 10.2 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001878/0.8571, allocations: 15.84 kB / 476.2 MB, free: 10.18 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.395e-05/0.8572, allocations: 12.12 kB / 476.2 MB, free: 10.17 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.0002599/0.8574, allocations: 132.5 kB / 476.3 MB, free: 10.04 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.838e-05/0.8575, allocations: 27.62 kB / 476.4 MB, free: 10.01 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005683/0.8581, allocations: 207.7 kB / 476.6 MB, free: 9.805 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.913e-06/0.8581, allocations: 4 kB / 476.6 MB, free: 9.801 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.925e-06/0.8581, allocations: 7.938 kB / 476.6 MB, free: 9.793 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.101e-06/0.8581, allocations: 0.5625 kB / 476.6 MB, free: 9.793 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003555/0.8585, allocations: 289.9 kB / 476.9 MB, free: 9.473 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.8585, allocations: 0 / 476.9 MB, free: 9.473 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.815e-05/0.8586, allocations: 15.94 kB / 476.9 MB, free: 9.457 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.047e-06/0.8586, allocations: 0 / 476.9 MB, free: 9.457 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.071e-05/0.8586, allocations: 11.98 kB / 476.9 MB, free: 9.445 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.745e-06/0.8586, allocations: 0.6562 kB / 476.9 MB, free: 9.445 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/0.8586, allocations: 0 / 476.9 MB, free: 9.445 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005237/0.8592, allocations: 224.5 kB / 477.1 MB, free: 9.207 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0005514/0.8597, allocations: 0.5948 MB / 477.7 MB, free: 8.59 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001348/0.8599, allocations: 124.7 kB / 477.8 MB, free: 8.449 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.854e-05/0.86, allocations: 7.906 kB / 477.8 MB, free: 8.441 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001331/0.8601, allocations: 15.98 kB / 477.8 MB, free: 8.426 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.659e-05/0.8602, allocations: 25.31 kB / 477.9 MB, free: 8.402 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.025e-05/0.8602, allocations: 4 kB / 477.9 MB, free: 8.398 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0003777/0.8606, allocations: 299.1 kB / 478.2 MB, free: 8.102 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001037/0.8616, allocations: 76.06 kB / 478.2 MB, free: 8.027 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.001007/0.8627, allocations: 352.2 kB / 478.6 MB, free: 7.715 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004915/0.8632, allocations: 152.9 kB / 478.7 MB, free: 7.566 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/0.8632, allocations: 0 / 478.7 MB, free: 7.566 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001595/0.8633, allocations: 79.94 kB / 478.8 MB, free: 7.488 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004993/0.8639, allocations: 62.86 kB / 478.9 MB, free: 7.43 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001121/0.865, allocations: 401.9 kB / 479.3 MB, free: 7.016 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006213/0.8656, allocations: 0.8104 MB / 480.1 MB, free: 6.18 MB / 362.7 MB Notification: Performance of SimCode: time 2.054e-06/0.8656, allocations: 4 kB / 480.1 MB, free: 6.176 MB / 362.7 MB (rm -f IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_OffDelay_Redge_fmu --startTime=0 --stopTime=50 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_OffDelay_Redge.fmu > IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge.pipe 2>&1)