Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing.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.countZeroCrossing,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing") translateModel(IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001032/0.001032, allocations: 168.8 kB / 7.645 MB, free: 1.434 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05858/0.05859, allocations: 10.65 MB / 18.73 MB, free: 1.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.588/1.588, allocations: 205.3 MB / 226.9 MB, free: 7.977 MB / 186.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008197/0.0008196, allocations: 94.41 kB / 277.3 MB, free: 5.504 MB / 234.8 MB Notification: Performance of FrontEnd - loaded program: time 2.018e-05/2.019e-05, allocations: 4 kB / 333.5 MB, free: 28.5 MB / 250.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1097/0.1097, allocations: 50 MB / 383.5 MB, free: 10.45 MB / 282.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3355/0.4452, allocations: 82.15 MB / 465.7 MB, free: 2.723 MB / 330.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002471/0.4455, allocations: 96.53 kB / 465.8 MB, free: 2.672 MB / 330.8 MB Notification: Performance of FrontEnd - DAE generated: time 0.02737/0.4729, allocations: 10.12 MB / 475.9 MB, free: 10.31 MB / 346.8 MB Notification: Performance of FrontEnd: time 2.114e-06/0.473, allocations: 0 / 475.9 MB, free: 10.31 MB / 346.8 MB Notification: Performance of Transformations before backend: time 2.751e-05/0.473, allocations: 11.94 kB / 475.9 MB, free: 10.3 MB / 346.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0008587/0.4739, allocations: 0.6095 MB / 476.5 MB, free: 9.656 MB / 346.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.47e-05/0.4739, allocations: 16.02 kB / 476.5 MB, free: 9.641 MB / 346.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.321e-05/0.474, allocations: 35.58 kB / 476.6 MB, free: 9.605 MB / 346.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005044/0.4745, allocations: 327.8 kB / 476.9 MB, free: 9.285 MB / 346.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.291e-05/0.4746, allocations: 4 kB / 476.9 MB, free: 9.281 MB / 346.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.215e-05/0.4746, allocations: 12 kB / 476.9 MB, free: 9.27 MB / 346.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001731/0.4748, allocations: 76.34 kB / 477 MB, free: 9.223 MB / 346.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002674/0.4751, allocations: 174.8 kB / 477.1 MB, free: 9.074 MB / 346.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.826e-06/0.4751, allocations: 0 / 477.1 MB, free: 9.074 MB / 346.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.292e-05/0.4751, allocations: 3.984 kB / 477.2 MB, free: 9.07 MB / 346.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.602e-06/0.4751, allocations: 4 kB / 477.2 MB, free: 9.066 MB / 346.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008132/0.476, allocations: 0.5206 MB / 477.7 MB, free: 8.59 MB / 346.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003084/0.4763, allocations: 148.7 kB / 477.8 MB, free: 8.477 MB / 346.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.701e-05/0.4764, allocations: 57.55 kB / 477.9 MB, free: 8.438 MB / 346.8 MB Notification: Performance of preOpt evalFunc (simulation): time 1.885e-05/0.4764, allocations: 3.984 kB / 477.9 MB, free: 8.434 MB / 346.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002305/0.4766, allocations: 165.6 kB / 478 MB, free: 8.281 MB / 346.8 MB Notification: Performance of pre-optimization done (n=21): time 1.282e-06/0.4766, allocations: 0 / 478 MB, free: 8.281 MB / 346.8 MB Notification: Performance of matching and sorting (n=21): time 0.0004062/0.4771, allocations: 236.7 kB / 478.3 MB, free: 8.094 MB / 346.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.876e-05/0.4771, allocations: 136.5 kB / 478.4 MB, free: 7.934 MB / 346.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003082/0.4774, allocations: 316.4 kB / 478.7 MB, free: 7.684 MB / 346.8 MB Notification: Performance of collectPreVariables (initialization): time 2.604e-05/0.4775, allocations: 29.7 kB / 478.7 MB, free: 7.648 MB / 346.8 MB Notification: Performance of collectInitialEqns (initialization): time 9.538e-05/0.4776, allocations: 171.9 kB / 478.9 MB, free: 7.527 MB / 346.8 MB Notification: Performance of collectInitialBindings (initialization): time 4.565e-05/0.4776, allocations: 48.53 kB / 479 MB, free: 7.488 MB / 346.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.047e-06/0.4776, allocations: 0 / 479 MB, free: 7.488 MB / 346.8 MB Notification: Performance of setup shared object (initialization): time 0.0001191/0.4778, allocations: 350.2 kB / 479.3 MB, free: 7.152 MB / 346.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.135e-05/0.4779, allocations: 46.25 kB / 479.3 MB, free: 7.125 MB / 346.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001426/0.478, allocations: 161.8 kB / 479.5 MB, free: 6.938 MB / 346.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001061/0.4781, allocations: 68.28 kB / 479.6 MB, free: 6.891 MB / 346.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.338e-06/0.4781, allocations: 4 kB / 479.6 MB, free: 6.887 MB / 346.8 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003083/0.4784, allocations: 219.9 kB / 479.8 MB, free: 6.707 MB / 346.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.604e-05/0.4785, allocations: 8 kB / 479.8 MB, free: 6.699 MB / 346.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.604e-06/0.4785, allocations: 4.344 kB / 479.8 MB, free: 6.695 MB / 346.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.47e-05/0.4785, allocations: 8 kB / 479.8 MB, free: 6.688 MB / 346.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001434/0.4786, allocations: 35.86 kB / 479.8 MB, free: 6.652 MB / 346.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.105e-06/0.4787, allocations: 7.984 kB / 479.9 MB, free: 6.645 MB / 346.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001424/0.4788, allocations: 31.78 kB / 479.9 MB, free: 6.613 MB / 346.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.277e-05/0.4788, allocations: 10.81 kB / 479.9 MB, free: 6.605 MB / 346.8 MB Warning: Assuming fixed start value for the following 6 variables: equal.y:DISCRETE(fixed = false ) "output" type: Boolean 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: 13 * Number of states: 0 () * Number of discrete variables: 26 ($PRE.equal.y,equal.y,$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,$whenCondition4,$whenCondition3,$PRE.reset.combiTimeTable.nextTimeEvent,$whenCondition2,$PRE.set.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) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 31 * 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.000147/0.479, allocations: 132.2 kB / 480 MB, free: 6.477 MB / 346.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.716e-05/0.4791, allocations: 31.62 kB / 480.1 MB, free: 6.445 MB / 346.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003958/0.4795, allocations: 262.2 kB / 480.3 MB, free: 6.246 MB / 346.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.109e-06/0.4795, allocations: 4 kB / 480.3 MB, free: 6.242 MB / 346.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.4795, allocations: 4.062 kB / 480.3 MB, free: 6.238 MB / 346.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.973e-06/0.4795, allocations: 11.98 kB / 480.3 MB, free: 6.227 MB / 346.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002393/0.4797, allocations: 295.4 kB / 480.6 MB, free: 5.949 MB / 346.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.4797, allocations: 4 kB / 480.6 MB, free: 5.945 MB / 346.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.731e-05/0.4798, allocations: 15.98 kB / 480.6 MB, free: 5.93 MB / 346.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.474e-06/0.4798, allocations: 0 / 480.6 MB, free: 5.93 MB / 346.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.88e-05/0.4799, allocations: 4 kB / 480.6 MB, free: 5.926 MB / 346.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.372e-06/0.4799, allocations: 0 / 480.6 MB, free: 5.926 MB / 346.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.4799, allocations: 0 / 480.6 MB, free: 5.926 MB / 346.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003615/0.4803, allocations: 281.7 kB / 480.9 MB, free: 5.684 MB / 346.8 MB Notification: Performance of postOpt removeConstants (simulation): time 8.354e-05/0.4804, allocations: 119.2 kB / 481 MB, free: 5.555 MB / 346.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.131e-05/0.4804, allocations: 6.75 kB / 481 MB, free: 5.551 MB / 346.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001421/0.4806, allocations: 15.98 kB / 481.1 MB, free: 5.535 MB / 346.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.16e-05/0.4807, allocations: 23.41 kB / 481.1 MB, free: 5.516 MB / 346.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.951e-05/0.4807, allocations: 11.98 kB / 481.1 MB, free: 5.504 MB / 346.8 MB Notification: Performance of sorting global known variables: time 0.0002235/0.4809, allocations: 246.8 kB / 481.3 MB, free: 5.316 MB / 346.8 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4809, allocations: 4 kB / 481.3 MB, free: 5.312 MB / 346.8 MB Notification: Performance of remove unused functions: time 0.0003689/0.4813, allocations: 83.17 kB / 481.4 MB, free: 5.234 MB / 346.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: 16 ($whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,counter.S,counter.R,counter.Q,counter.Value,counter.CUd,counter.CDd,counter.Sd,set.combiTimeTable.nextTimeEvent,set.combiTimeTable.nextTimeEventScaled,reset.combiTimeTable.nextTimeEvent,reset.combiTimeTable.nextTimeEventScaled,equal.y) * Number of discrete states: 8 (counter.Value,counter.Sd,counter.CUd,counter.CDd,set.combiTimeTable.nextTimeEvent,reset.combiTimeTable.nextTimeEvent,set.combiTimeTable.nextTimeEventScaled,reset.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 9 * 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.0008373/0.4821, allocations: 393 kB / 481.8 MB, free: 4.855 MB / 346.8 MB Notification: Performance of simCode: created initialization part: time 0.0002863/0.4824, allocations: 164.1 kB / 482 MB, free: 4.738 MB / 346.8 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.4824, allocations: 0 / 482 MB, free: 4.738 MB / 346.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0001207/0.4826, allocations: 81.98 kB / 482 MB, free: 4.684 MB / 346.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003634/0.4829, allocations: 66.38 kB / 482.1 MB, free: 4.633 MB / 346.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007086/0.4837, allocations: 361.5 kB / 482.5 MB, free: 4.305 MB / 346.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003805/0.4841, allocations: 0.784 MB / 483.2 MB, free: 3.496 MB / 346.8 MB Notification: Performance of simCode: alias equations: time 0.0001288/0.4842, allocations: 53.53 kB / 483.3 MB, free: 3.449 MB / 346.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.841e-05/0.4843, allocations: 31.42 kB / 483.3 MB, free: 3.418 MB / 346.8 MB Notification: Performance of SimCode: time 2.5e-07/0.4843, allocations: 0 / 483.3 MB, free: 3.418 MB / 346.8 MB Notification: Performance of Templates: time 0.008755/0.493, allocations: 3.966 MB / 487.3 MB, free: 15.46 MB / 362.8 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing.makefile (rm -f IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing.sim & ./IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing -abortSlowSimulation -alarm=480 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing.pipe 2>&1)