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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001134/0.001134, allocations: 174.7 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05891/0.05891, allocations: 10.66 MB / 23.92 MB, free: 1.379 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.68/1.68, allocations: 205.2 MB / 232.1 MB, free: 12.82 MB / 202.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001057/0.001057, allocations: 93.2 kB / 282.6 MB, free: 13.59 MB / 234.8 MB Notification: Performance of FrontEnd - loaded program: time 3.222e-05/3.231e-05, allocations: 0 / 340.5 MB, free: 3.621 MB / 282.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3122/0.3122, allocations: 49.99 MB / 390.5 MB, free: 35.75 MB / 298.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1063/0.4186, allocations: 81.4 MB / 471.9 MB, free: 2.238 MB / 346.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002184/0.4189, allocations: 87.94 kB / 472 MB, free: 2.152 MB / 346.8 MB Notification: Performance of FrontEnd - DAE generated: time 0.04575/0.4646, allocations: 16.77 MB / 488.7 MB, free: 1.363 MB / 362.8 MB Notification: Performance of FrontEnd: time 3.497e-06/0.4647, allocations: 4 kB / 488.7 MB, free: 1.359 MB / 362.8 MB Notification: Performance of Transformations before backend: time 4.465e-05/0.4647, allocations: 15.92 kB / 488.7 MB, free: 1.344 MB / 362.8 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.001194/0.4659, allocations: 0.8426 MB / 489.6 MB, free: 440 kB / 362.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.878e-05/0.466, allocations: 8.031 kB / 489.6 MB, free: 432 kB / 362.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001316/0.4661, allocations: 75.11 kB / 489.7 MB, free: 356 kB / 362.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009898/0.4671, allocations: 0.5389 MB / 490.2 MB, free: 15.77 MB / 378.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.06e-05/0.4672, allocations: 16.33 kB / 490.2 MB, free: 15.75 MB / 378.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.102e-05/0.4672, allocations: 24 kB / 490.2 MB, free: 15.73 MB / 378.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004105/0.4676, allocations: 248.7 kB / 490.5 MB, free: 15.46 MB / 378.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.296e-06/0.4676, allocations: 3.938 kB / 490.5 MB, free: 15.46 MB / 378.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.701e-05/0.4677, allocations: 4 kB / 490.5 MB, free: 15.46 MB / 378.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.147e-06/0.4677, allocations: 4 kB / 490.5 MB, free: 15.45 MB / 378.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002169/0.4679, allocations: 119.9 kB / 490.6 MB, free: 15.34 MB / 378.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001181/0.4691, allocations: 0.7967 MB / 491.4 MB, free: 14.49 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000583/0.4697, allocations: 287 kB / 491.7 MB, free: 14.2 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001791/0.4699, allocations: 88.83 kB / 491.8 MB, free: 14.11 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 2.469e-05/0.4699, allocations: 12.14 kB / 491.8 MB, free: 14.1 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003315/0.4703, allocations: 217.3 kB / 492 MB, free: 13.87 MB / 378.8 MB Notification: Performance of pre-optimization done (n=30): time 3.567e-06/0.4703, allocations: 4 kB / 492 MB, free: 13.87 MB / 378.8 MB Notification: Performance of matching and sorting (n=30): time 0.0006028/0.4709, allocations: 353.3 kB / 492.4 MB, free: 13.52 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001062/0.471, allocations: 191.9 kB / 492.5 MB, free: 13.29 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001023/0.472, allocations: 0.7964 MB / 493.3 MB, free: 12.48 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 3.802e-05/0.4721, allocations: 41.64 kB / 493.4 MB, free: 12.43 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002327/0.4723, allocations: 288.6 kB / 493.7 MB, free: 12.15 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 7.117e-05/0.4724, allocations: 75.05 kB / 493.7 MB, free: 12.07 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.348e-05/0.4724, allocations: 8 kB / 493.7 MB, free: 12.07 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 0.0001145/0.4725, allocations: 325.9 kB / 494.1 MB, free: 11.74 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000139/0.4727, allocations: 83.92 kB / 494.1 MB, free: 11.66 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002667/0.473, allocations: 259.6 kB / 494.4 MB, free: 11.34 MB / 378.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001725/0.4731, allocations: 95.91 kB / 494.5 MB, free: 11.24 MB / 378.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.956e-06/0.4732, allocations: 0 / 494.5 MB, free: 11.24 MB / 378.8 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0005217/0.4737, allocations: 368.7 kB / 494.8 MB, free: 10.88 MB / 378.8 MB Notification: Performance of prepare postOptimizeDAE: time 2.59e-05/0.4737, allocations: 8 kB / 494.9 MB, free: 10.87 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.989e-06/0.4737, allocations: 4 kB / 494.9 MB, free: 10.86 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.926e-05/0.4738, allocations: 4 kB / 494.9 MB, free: 10.86 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000204/0.474, allocations: 55.91 kB / 494.9 MB, free: 10.8 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.707e-05/0.474, allocations: 11.92 kB / 494.9 MB, free: 10.79 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002335/0.4742, allocations: 35.83 kB / 495 MB, free: 10.76 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.545e-05/0.4743, allocations: 20.16 kB / 495 MB, free: 10.74 MB / 378.8 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.0002059/0.4745, allocations: 157.8 kB / 495.1 MB, free: 10.58 MB / 378.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.598e-05/0.4746, allocations: 67.16 kB / 495.2 MB, free: 10.51 MB / 378.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006681/0.4753, allocations: 403.9 kB / 495.6 MB, free: 10.11 MB / 378.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.5e-06/0.4753, allocations: 4 kB / 495.6 MB, free: 10.1 MB / 378.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/0.4753, allocations: 0 / 495.6 MB, free: 10.1 MB / 378.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.115e-06/0.4753, allocations: 3.984 kB / 495.6 MB, free: 10.1 MB / 378.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005049/0.4758, allocations: 0.5049 MB / 496.1 MB, free: 9.543 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.4758, allocations: 0 / 496.1 MB, free: 9.543 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.01e-05/0.4759, allocations: 23.98 kB / 496.1 MB, free: 9.52 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.119e-06/0.4759, allocations: 3.938 kB / 496.1 MB, free: 9.516 MB / 378.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.424e-05/0.476, allocations: 15.92 kB / 496.2 MB, free: 9.5 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.867e-06/0.476, allocations: 4 kB / 496.2 MB, free: 9.496 MB / 378.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.476, allocations: 0 / 496.2 MB, free: 9.496 MB / 378.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005348/0.4765, allocations: 408.1 kB / 496.6 MB, free: 9.078 MB / 378.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002214/0.4767, allocations: 188.1 kB / 496.7 MB, free: 8.875 MB / 378.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.83e-05/0.4768, allocations: 12 kB / 496.8 MB, free: 8.863 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001921/0.477, allocations: 27.97 kB / 496.8 MB, free: 8.836 MB / 378.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.925e-05/0.4771, allocations: 23.97 kB / 496.8 MB, free: 8.812 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.594e-05/0.4771, allocations: 15.98 kB / 496.8 MB, free: 8.797 MB / 378.8 MB Notification: Performance of sorting global known variables: time 0.0008014/0.478, allocations: 0.6319 MB / 497.5 MB, free: 8.168 MB / 378.8 MB Notification: Performance of sort global known variables: time 2.1e-07/0.478, allocations: 4 kB / 497.5 MB, free: 8.164 MB / 378.8 MB Notification: Performance of remove unused functions: time 0.0005071/0.4785, allocations: 139.9 kB / 497.6 MB, free: 8.027 MB / 378.8 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.000964/0.4794, allocations: 445.7 kB / 498 MB, free: 7.656 MB / 378.8 MB Notification: Performance of simCode: created initialization part: time 0.0004872/0.4799, allocations: 284 kB / 498.3 MB, free: 7.379 MB / 378.8 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.48, allocations: 0 / 498.3 MB, free: 7.379 MB / 378.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0002124/0.4802, allocations: 140.4 kB / 498.4 MB, free: 7.242 MB / 378.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006484/0.4808, allocations: 133.8 kB / 498.6 MB, free: 7.117 MB / 378.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001322/0.4822, allocations: 0.8242 MB / 499.4 MB, free: 6.27 MB / 378.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005009/0.4827, allocations: 0.9178 MB / 0.4886 GB, free: 5.32 MB / 378.8 MB Notification: Performance of simCode: alias equations: time 0.0002846/0.483, allocations: 100.4 kB / 0.4887 GB, free: 5.223 MB / 378.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001294/0.4831, allocations: 55.42 kB / 0.4887 GB, free: 5.172 MB / 378.8 MB Notification: Performance of SimCode: time 6.11e-07/0.4831, allocations: 4 kB / 0.4887 GB, free: 5.168 MB / 378.8 MB Notification: Performance of Templates: time 0.2314/0.7145, allocations: 7.874 MB / 0.4964 GB, free: 98.41 MB / 378.8 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)