Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On.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_On,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_On",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Logical.Timers.Examples.testT_On,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_On",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.005443/0.005443, allocations: 185 kB / 7.462 MB, free: 2.512 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.08083/0.08083, allocations: 10.59 MB / 18.46 MB, free: 2.195 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.703/1.703, allocations: 205.2 MB / 226.5 MB, free: 0.5391 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.001068/0.001068, allocations: 84.38 kB / 276.9 MB, free: 15.68 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.164/0.1651, allocations: 56.14 MB / 333 MB, free: 7.473 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4147/0.5798, allocations: 49.98 MB / 383 MB, free: 39.79 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1334/0.7132, allocations: 80.56 MB / 463.6 MB, free: 7.105 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003301/0.7136, allocations: 87.94 kB / 463.7 MB, free: 7.02 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.03166/0.7453, allocations: 9.269 MB / 472.9 MB, free: 13.7 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001127/0.7454, allocations: 8 kB / 473 MB, free: 13.69 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002047/0.7456, allocations: 27.62 kB / 473 MB, free: 13.66 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009976/0.7467, allocations: 343.1 kB / 473.3 MB, free: 13.28 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.68e-05/0.7467, allocations: 4 kB / 473.3 MB, free: 13.28 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.423e-05/0.7468, allocations: 8 kB / 473.3 MB, free: 13.27 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002413/0.747, allocations: 68.17 kB / 473.4 MB, free: 13.2 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003482/0.7474, allocations: 133.1 kB / 473.5 MB, free: 13.06 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.339e-05/0.7474, allocations: 0 / 473.5 MB, free: 13.06 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.458e-05/0.7475, allocations: 7.984 kB / 473.5 MB, free: 13.05 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.7e-05/0.7475, allocations: 4 kB / 473.5 MB, free: 13.05 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001178/0.7487, allocations: 465.3 kB / 474 MB, free: 12.55 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003016/0.749, allocations: 126.7 kB / 474.1 MB, free: 12.42 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001225/0.7491, allocations: 48.86 kB / 474.2 MB, free: 12.37 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.336e-05/0.7492, allocations: 3.906 kB / 474.2 MB, free: 12.37 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002444/0.7494, allocations: 112.3 kB / 474.3 MB, free: 12.25 MB / 362.7 MB Notification: Performance of pre-optimization done (n=17): time 1.873e-06/0.7494, allocations: 0 / 474.3 MB, free: 12.25 MB / 362.7 MB Notification: Performance of matching and sorting (n=17): time 0.0006728/0.7501, allocations: 175.4 kB / 474.4 MB, free: 12.07 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001038/0.7502, allocations: 108.5 kB / 474.6 MB, free: 11.94 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005588/0.7508, allocations: 335.4 kB / 474.9 MB, free: 11.61 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.738e-05/0.7509, allocations: 29.7 kB / 474.9 MB, free: 11.58 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.39e-05/0.751, allocations: 112.5 kB / 475 MB, free: 11.46 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.902e-05/0.751, allocations: 43.45 kB / 475.1 MB, free: 11.42 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.674e-06/0.751, allocations: 0 / 475.1 MB, free: 11.42 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001562/0.7512, allocations: 338.8 kB / 475.4 MB, free: 11.08 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.055e-05/0.7513, allocations: 45.06 kB / 475.4 MB, free: 11.04 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001718/0.7515, allocations: 135.9 kB / 475.6 MB, free: 10.86 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001267/0.7516, allocations: 57.06 kB / 475.6 MB, free: 10.8 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.811e-06/0.7516, allocations: 4 kB / 475.6 MB, free: 10.8 MB / 362.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004395/0.7521, allocations: 201.1 kB / 475.8 MB, free: 10.6 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.393e-05/0.7521, allocations: 4 kB / 475.8 MB, free: 10.59 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.302e-05/0.7521, allocations: 4 kB / 475.8 MB, free: 10.59 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.846e-05/0.7522, allocations: 4 kB / 475.8 MB, free: 10.59 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001813/0.7523, allocations: 35.91 kB / 475.9 MB, free: 10.55 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.818e-05/0.7524, allocations: 4 kB / 475.9 MB, free: 10.55 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002067/0.7526, allocations: 15.84 kB / 475.9 MB, free: 10.53 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.086e-05/0.7526, allocations: 12.81 kB / 475.9 MB, free: 10.52 MB / 362.7 MB Warning: Assuming fixed start value for the following 3 variables: timer.Q:DISCRETE(fixed = false ) "status of the timer" type: Boolean timer.run:DISCRETE(fixed = false ) "Flag: true while the timer is counting" 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: 22 ($PRE.timer.Sd,$PRE.timer.startTime,timer.startTime,$PRE.timer.Q,timer.Q,$PRE.timer.run,timer.run,$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,timer.Sd,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 (26): * Single equations (assignments): 26 * 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.0002899/0.7529, allocations: 135.6 kB / 476 MB, free: 10.38 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.997e-05/0.753, allocations: 27.62 kB / 476.1 MB, free: 10.36 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005294/0.7536, allocations: 187.7 kB / 476.2 MB, free: 10.16 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.641e-06/0.7536, allocations: 0 / 476.2 MB, free: 10.16 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.456e-06/0.7536, allocations: 5.406 kB / 476.3 MB, free: 10.16 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.077e-06/0.7536, allocations: 7.938 kB / 476.3 MB, free: 10.15 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003095/0.7539, allocations: 277.9 kB / 476.5 MB, free: 9.84 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.973e-06/0.7539, allocations: 48 / 476.5 MB, free: 9.84 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.889e-05/0.754, allocations: 19.91 kB / 476.5 MB, free: 9.82 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.938e-06/0.754, allocations: 0 / 476.5 MB, free: 9.82 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.543e-05/0.754, allocations: 4 kB / 476.6 MB, free: 9.816 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.475e-06/0.754, allocations: 0 / 476.6 MB, free: 9.816 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.44e-06/0.7541, allocations: 3.906 kB / 476.6 MB, free: 9.812 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004613/0.7545, allocations: 211.8 kB / 476.8 MB, free: 9.59 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0005527/0.7551, allocations: 0.5791 MB / 477.3 MB, free: 8.988 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001425/0.7552, allocations: 120.7 kB / 477.5 MB, free: 8.852 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.085e-05/0.7553, allocations: 3.984 kB / 477.5 MB, free: 8.848 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000118/0.7554, allocations: 12 kB / 477.5 MB, free: 8.836 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.121e-05/0.7555, allocations: 19.88 kB / 477.5 MB, free: 8.816 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.767e-05/0.7555, allocations: 11.94 kB / 477.5 MB, free: 8.805 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0003186/0.7559, allocations: 259.1 kB / 477.8 MB, free: 8.547 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001083/0.757, allocations: 80.16 kB / 477.8 MB, free: 8.469 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: 13 ($whenCondition3,$whenCondition2,$whenCondition1,timer.Q,timer.tr,timer.run,timer.startTime,timer.Sd,SetSignal.combiTimeTable.nextTimeEvent,SetSignal.combiTimeTable.nextTimeEventScaled,ResetSignal.y,ResetSignal.combiTimeTable.nextTimeEvent,ResetSignal.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 6 (timer.Sd,timer.startTime,SetSignal.combiTimeTable.nextTimeEvent,ResetSignal.combiTimeTable.nextTimeEvent,SetSignal.combiTimeTable.nextTimeEventScaled,ResetSignal.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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.0008686/0.7578, allocations: 340.8 kB / 478.2 MB, free: 8.176 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003282/0.7582, allocations: 135.9 kB / 478.3 MB, free: 8.043 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.7582, allocations: 0 / 478.3 MB, free: 8.043 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001321/0.7583, allocations: 71.94 kB / 478.4 MB, free: 7.973 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004629/0.7588, allocations: 68.42 kB / 478.4 MB, free: 7.906 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008737/0.7597, allocations: 348.8 kB / 478.8 MB, free: 7.535 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006125/0.7603, allocations: 0.8106 MB / 479.6 MB, free: 6.699 MB / 362.7 MB Notification: Performance of SimCode: time 1.784e-06/0.7603, allocations: 4 kB / 479.6 MB, free: 6.695 MB / 362.7 MB (rm -f IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_On_fmu --startTime=0 --stopTime=50 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_On.fmu > IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On.pipe 2>&1)