Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN.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.Counter.Examples.countUPandDOWN,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN") translateModel(IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN") [: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.004032/0.004031, allocations: 183.6 kB / 7.456 MB, free: 2.234 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.06271/0.06271, allocations: 10.6 MB / 18.46 MB, free: 2.121 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.735/1.735, allocations: 205.2 MB / 226.5 MB, free: 1.781 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.00102/0.00102, allocations: 93.2 kB / 276.9 MB, free: 15.82 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.097e-05/1.129e-05, allocations: 0 / 332.9 MB, free: 7.703 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3732/0.3733, allocations: 50 MB / 382.9 MB, free: 39.83 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1272/0.5006, allocations: 80.66 MB / 463.6 MB, free: 7.047 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003662/0.501, allocations: 83.94 kB / 463.7 MB, free: 6.965 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.04991/0.5509, allocations: 16.16 MB / 479.8 MB, free: 6.793 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.335e-05/0.5511, allocations: 15.94 kB / 479.8 MB, free: 6.777 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.002377/0.5535, allocations: 0.8424 MB / 480.7 MB, free: 5.863 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.585e-05/0.5536, allocations: 8.031 kB / 480.7 MB, free: 5.855 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004134/0.554, allocations: 71.06 kB / 480.8 MB, free: 5.785 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001639/0.5556, allocations: 0.5467 MB / 481.3 MB, free: 5.199 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.514e-05/0.5557, allocations: 12 kB / 481.3 MB, free: 5.188 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.964e-05/0.5557, allocations: 15.98 kB / 481.3 MB, free: 5.172 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003799/0.5561, allocations: 112.5 kB / 481.5 MB, free: 5.062 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004364/0.5566, allocations: 220.5 kB / 481.7 MB, free: 4.828 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.221e-05/0.5566, allocations: 7.938 kB / 481.7 MB, free: 4.82 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.357e-05/0.5567, allocations: 0 / 481.7 MB, free: 4.82 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.114e-05/0.5567, allocations: 4 kB / 481.7 MB, free: 4.816 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001821/0.5585, allocations: 0.766 MB / 482.4 MB, free: 4.012 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006118/0.5591, allocations: 214.7 kB / 482.7 MB, free: 3.793 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001718/0.5593, allocations: 81.05 kB / 482.7 MB, free: 3.711 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.236e-05/0.5594, allocations: 11.86 kB / 482.7 MB, free: 3.699 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000366/0.5597, allocations: 193.4 kB / 482.9 MB, free: 3.492 MB / 362.7 MB Notification: Performance of pre-optimization done (n=30): time 3.426e-06/0.5598, allocations: 0 / 482.9 MB, free: 3.492 MB / 362.7 MB Notification: Performance of matching and sorting (n=30): time 0.0008582/0.5606, allocations: 280.9 kB / 483.2 MB, free: 3.211 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001662/0.5608, allocations: 203.8 kB / 483.4 MB, free: 2.969 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001631/0.5624, allocations: 0.7691 MB / 484.2 MB, free: 2.195 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.945e-05/0.5625, allocations: 29.7 kB / 484.2 MB, free: 2.16 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001885/0.5627, allocations: 173.1 kB / 484.4 MB, free: 1.984 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001123/0.5628, allocations: 71.06 kB / 484.4 MB, free: 1.914 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.206e-05/0.5629, allocations: 0 / 484.4 MB, free: 1.914 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001724/0.563, allocations: 321.9 kB / 484.8 MB, free: 1.594 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001672/0.5632, allocations: 68 kB / 484.8 MB, free: 1.527 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003742/0.5636, allocations: 251.7 kB / 485.1 MB, free: 1.211 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002295/0.5638, allocations: 109 kB / 485.2 MB, free: 1.105 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.031e-06/0.5639, allocations: 0 / 485.2 MB, free: 1.105 MB / 362.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0007987/0.5647, allocations: 324.6 kB / 485.5 MB, free: 0.7812 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.319e-05/0.5647, allocations: 4.938 kB / 485.5 MB, free: 0.7773 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.352e-05/0.5647, allocations: 4.094 kB / 485.5 MB, free: 0.7734 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.517e-05/0.5648, allocations: 12.25 kB / 485.5 MB, free: 0.7617 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002543/0.565, allocations: 55.84 kB / 485.6 MB, free: 0.707 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.312e-05/0.565, allocations: 4 kB / 485.6 MB, free: 0.7031 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003961/0.5654, allocations: 35.73 kB / 485.6 MB, free: 0.668 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.876e-05/0.5655, allocations: 16 kB / 485.6 MB, free: 0.6523 MB / 362.7 MB Warning: Assuming fixed start value for the following 5 variables: counter.CUd:DISCRETE(fixed = false ) type: Boolean counter.CDd:DISCRETE(fixed = false ) type: Boolean counter.Sd:DISCRETE(fixed = false ) type: Boolean counter.Q:DISCRETE(fixed = false ) "status of the counter (1: counting, 0: not counting)" type: Boolean counter.Value:DISCRETE(start = 0 fixed = false ) type: Integer Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 35 ($PRE.counter.CUd,counter.CUd,$PRE.counter.CDd,counter.CDd,$PRE.counter.Sd,counter.Sd,$PRE.counter.Q,counter.Q,$PRE.counter.Value,counter.Value,$whenCondition5,$PRE.reset.combiTimeTable.nextTimeEvent,$whenCondition4,$PRE.set.combiTimeTable.nextTimeEvent,$whenCondition3,$PRE.countDOWN.combiTimeTable.nextTimeEvent,$whenCondition2,$PRE.countUP.combiTimeTable.nextTimeEvent,$whenCondition1,counter.R,reset.combiTimeTable.nextTimeEvent,$PRE.reset.combiTimeTable.nextTimeEventScaled,reset.combiTimeTable.nextTimeEventScaled,counter.S,set.combiTimeTable.nextTimeEvent,$PRE.set.combiTimeTable.nextTimeEventScaled,set.combiTimeTable.nextTimeEventScaled,countDOWN.y,countDOWN.combiTimeTable.nextTimeEvent,$PRE.countDOWN.combiTimeTable.nextTimeEventScaled,countDOWN.combiTimeTable.nextTimeEventScaled,countUP.y,countUP.combiTimeTable.nextTimeEvent,$PRE.countUP.combiTimeTable.nextTimeEventScaled,countUP.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (43): * Single equations (assignments): 43 * 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.000297/0.5658, allocations: 150.7 kB / 485.8 MB, free: 0.5 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001572/0.566, allocations: 63.16 kB / 485.8 MB, free: 448 kB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006672/0.5666, allocations: 323.9 kB / 486.1 MB, free: 112 kB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.821e-06/0.5667, allocations: 4 kB / 486.2 MB, free: 108 kB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.633e-06/0.5667, allocations: 4 kB / 486.2 MB, free: 104 kB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.366e-06/0.5667, allocations: 3.984 kB / 486.2 MB, free: 100 kB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006146/0.5673, allocations: 469.7 kB / 486.6 MB, free: 15.6 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.5673, allocations: 0 / 486.6 MB, free: 15.6 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.463e-05/0.5674, allocations: 31.83 kB / 486.6 MB, free: 15.57 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.268e-06/0.5674, allocations: 0 / 486.6 MB, free: 15.57 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.481e-05/0.5675, allocations: 7.984 kB / 486.7 MB, free: 15.56 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.24e-06/0.5675, allocations: 4 kB / 486.7 MB, free: 15.56 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.5675, allocations: 3.938 kB / 486.7 MB, free: 15.55 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005145/0.568, allocations: 332.4 kB / 487 MB, free: 15.21 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002731/0.5683, allocations: 188.2 kB / 487.2 MB, free: 15.01 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001032/0.5684, allocations: 8 kB / 487.2 MB, free: 15 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002112/0.5686, allocations: 23.95 kB / 487.2 MB, free: 14.98 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.984e-05/0.5687, allocations: 27.97 kB / 487.2 MB, free: 14.95 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.06e-05/0.5688, allocations: 15.98 kB / 487.2 MB, free: 14.93 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0009248/0.5697, allocations: 0.6006 MB / 487.8 MB, free: 14.34 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006365/0.5703, allocations: 131.8 kB / 488 MB, free: 14.21 MB / 378.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: 22 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,counter.S,counter.R,counter.Q,counter.Value,counter.CUd,counter.CDd,counter.Sd,countUP.y,countUP.combiTimeTable.nextTimeEvent,countUP.combiTimeTable.nextTimeEventScaled,countDOWN.y,countDOWN.combiTimeTable.nextTimeEvent,countDOWN.combiTimeTable.nextTimeEventScaled,set.combiTimeTable.nextTimeEvent,set.combiTimeTable.nextTimeEventScaled,reset.combiTimeTable.nextTimeEvent,reset.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 12 (counter.Value,counter.Sd,counter.CUd,counter.CDd,countUP.combiTimeTable.nextTimeEvent,countDOWN.combiTimeTable.nextTimeEvent,set.combiTimeTable.nextTimeEvent,reset.combiTimeTable.nextTimeEvent,countUP.combiTimeTable.nextTimeEventScaled,countDOWN.combiTimeTable.nextTimeEventScaled,set.combiTimeTable.nextTimeEventScaled,reset.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 12 * 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.0008589/0.5712, allocations: 380.7 kB / 488.3 MB, free: 13.87 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004954/0.5717, allocations: 259.8 kB / 488.6 MB, free: 13.62 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.5717, allocations: 0 / 488.6 MB, free: 13.62 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002151/0.572, allocations: 127.9 kB / 488.7 MB, free: 13.49 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007646/0.5727, allocations: 132.8 kB / 488.9 MB, free: 13.36 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00169/0.5744, allocations: 0.8115 MB / 489.7 MB, free: 12.52 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007356/0.5752, allocations: 0.9642 MB / 490.6 MB, free: 11.53 MB / 378.7 MB Notification: Performance of SimCode: time 4.71e-07/0.5752, allocations: 4 kB / 490.6 MB, free: 11.52 MB / 378.7 MB Notification: Performance of Templates: time 0.01609/0.5913, allocations: 6.985 MB / 497.6 MB, free: 4.547 MB / 378.7 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN.makefile (rm -f IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN.sim & ./IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN -abortSlowSimulation -alarm=480 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN.pipe 2>&1)