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: translateModel(IndustrialControlSystems.Logical.Timers.Examples.testT_On,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On") translateModel(IndustrialControlSystems.Logical.Timers.Examples.testT_On,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On") [: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.008154/0.008154, allocations: 179.1 kB / 7.454 MB, free: 2.508 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.09656/0.09656, allocations: 10.59 MB / 18.45 MB, free: 2.332 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.942/1.942, allocations: 205.2 MB / 226.5 MB, free: 0.5352 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.00168/0.001679, allocations: 89.73 kB / 276.9 MB, free: 15.65 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 8.206e-06/8.246e-06, allocations: 0 / 332.9 MB, free: 7.555 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3646/0.3646, allocations: 49.99 MB / 382.9 MB, free: 39.8 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1236/0.4883, allocations: 80.57 MB / 463.5 MB, free: 7.105 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002914/0.4886, allocations: 83.94 kB / 463.6 MB, free: 7.023 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.02858/0.5172, allocations: 8.676 MB / 472.3 MB, free: 14.35 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.885e-05/0.5174, allocations: 11.94 kB / 472.3 MB, free: 14.34 MB / 362.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.001548/0.5189, allocations: 0.5719 MB / 472.8 MB, free: 13.7 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.704e-05/0.519, allocations: 8.031 kB / 472.9 MB, free: 13.7 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002639/0.5193, allocations: 35.62 kB / 472.9 MB, free: 13.66 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009555/0.5203, allocations: 327.2 kB / 473.2 MB, free: 13.3 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.578e-05/0.5204, allocations: 11.98 kB / 473.2 MB, free: 13.29 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.934e-05/0.5204, allocations: 9.625 kB / 473.2 MB, free: 13.28 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002459/0.5207, allocations: 68.09 kB / 473.3 MB, free: 13.21 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003203/0.521, allocations: 137.1 kB / 473.4 MB, free: 13.06 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.117e-05/0.521, allocations: 0 / 473.4 MB, free: 13.06 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.171e-05/0.5211, allocations: 0 / 473.4 MB, free: 13.06 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.572e-06/0.5211, allocations: 0 / 473.4 MB, free: 13.06 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009464/0.522, allocations: 465.3 kB / 473.9 MB, free: 12.57 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002553/0.5223, allocations: 122.7 kB / 474 MB, free: 12.44 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001038/0.5224, allocations: 52.84 kB / 474.1 MB, free: 12.39 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.818e-05/0.5225, allocations: 7.891 kB / 474.1 MB, free: 12.38 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002253/0.5227, allocations: 107.4 kB / 474.2 MB, free: 12.26 MB / 362.7 MB Notification: Performance of pre-optimization done (n=17): time 2.164e-06/0.5227, allocations: 0 / 474.2 MB, free: 12.26 MB / 362.7 MB Notification: Performance of matching and sorting (n=17): time 0.0006126/0.5233, allocations: 170.8 kB / 474.3 MB, free: 12.09 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001126/0.5235, allocations: 114.8 kB / 474.4 MB, free: 11.95 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005859/0.5241, allocations: 331.4 kB / 474.8 MB, free: 11.63 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.743e-05/0.5241, allocations: 29.7 kB / 474.8 MB, free: 11.59 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001052/0.5242, allocations: 114.5 kB / 474.9 MB, free: 11.48 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.3e-05/0.5243, allocations: 47.39 kB / 475 MB, free: 11.43 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.015e-05/0.5243, allocations: 0 / 475 MB, free: 11.43 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002623/0.5246, allocations: 342.8 kB / 475.3 MB, free: 11.09 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001086/0.5247, allocations: 41.08 kB / 475.3 MB, free: 11.05 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001985/0.5249, allocations: 140.9 kB / 475.5 MB, free: 10.87 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001476/0.5251, allocations: 57.08 kB / 475.5 MB, free: 10.81 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.537e-06/0.5251, allocations: 0 / 475.5 MB, free: 10.81 MB / 362.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003841/0.5255, allocations: 201.3 kB / 475.7 MB, free: 10.61 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.015e-05/0.5255, allocations: 4 kB / 475.7 MB, free: 10.61 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.195e-06/0.5255, allocations: 4 kB / 475.7 MB, free: 10.6 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.065e-05/0.5256, allocations: 4 kB / 475.7 MB, free: 10.6 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001591/0.5257, allocations: 31.92 kB / 475.8 MB, free: 10.57 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.205e-05/0.5258, allocations: 7.938 kB / 475.8 MB, free: 10.56 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001619/0.5259, allocations: 19.83 kB / 475.8 MB, free: 10.54 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.288e-05/0.526, allocations: 12 kB / 475.8 MB, free: 10.53 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.0002088/0.5262, allocations: 126.3 kB / 475.9 MB, free: 10.4 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.53e-05/0.5263, allocations: 31.62 kB / 476 MB, free: 10.37 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004972/0.5268, allocations: 191.1 kB / 476.1 MB, free: 10.18 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.392e-06/0.5268, allocations: 4 kB / 476.1 MB, free: 10.17 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.644e-06/0.5268, allocations: 4.5 kB / 476.2 MB, free: 10.17 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.196e-06/0.5268, allocations: 7.984 kB / 476.2 MB, free: 10.16 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003535/0.5272, allocations: 277.9 kB / 476.4 MB, free: 9.852 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.517e-06/0.5272, allocations: 0 / 476.4 MB, free: 9.852 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.74e-05/0.5272, allocations: 12 kB / 476.4 MB, free: 9.84 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.418e-06/0.5272, allocations: 48 / 476.4 MB, free: 9.84 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.641e-05/0.5273, allocations: 16.91 kB / 476.5 MB, free: 9.824 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.767e-06/0.5273, allocations: 0 / 476.5 MB, free: 9.824 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.141e-06/0.5273, allocations: 7.844 kB / 476.5 MB, free: 9.816 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004087/0.5277, allocations: 200.7 kB / 476.7 MB, free: 9.602 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001405/0.5279, allocations: 120.7 kB / 476.8 MB, free: 9.465 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.029e-05/0.5279, allocations: 3.984 kB / 476.8 MB, free: 9.461 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001084/0.5281, allocations: 8 kB / 476.8 MB, free: 9.453 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.143e-05/0.5281, allocations: 15.97 kB / 476.8 MB, free: 9.438 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.729e-05/0.5281, allocations: 8 kB / 476.8 MB, free: 9.43 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0003324/0.5285, allocations: 259.1 kB / 477.1 MB, free: 9.172 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004995/0.529, allocations: 73.31 kB / 477.1 MB, free: 9.102 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.0009192/0.5299, allocations: 355.1 kB / 477.5 MB, free: 8.793 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003295/0.5303, allocations: 139.8 kB / 477.6 MB, free: 8.656 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.5303, allocations: 0 / 477.6 MB, free: 8.656 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001478/0.5304, allocations: 72.48 kB / 477.7 MB, free: 8.586 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000458/0.5309, allocations: 64.59 kB / 477.8 MB, free: 8.523 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009368/0.5318, allocations: 352.7 kB / 478.1 MB, free: 8.148 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006222/0.5325, allocations: 0.8023 MB / 478.9 MB, free: 7.32 MB / 362.7 MB Notification: Performance of SimCode: time 5.71e-07/0.5325, allocations: 0 / 478.9 MB, free: 7.32 MB / 362.7 MB Notification: Performance of Templates: time 0.01023/0.5427, allocations: 3.715 MB / 482.6 MB, free: 3.617 MB / 362.7 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On.makefile (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 & ./IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On -abortSlowSimulation -alarm=480 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On.pipe 2>&1)