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.001341/0.001341, allocations: 170.1 kB / 16.11 MB, free: 5.582 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.08232/0.08232, allocations: 10.76 MB / 27.63 MB, free: 1.785 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.494/1.494, allocations: 205.4 MB / 236.2 MB, free: 10.16 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.000781/0.0007811, allocations: 89.92 kB / 287 MB, free: 12.39 MB / 234.8 MB Notification: Performance of FrontEnd - loaded program: time 0.0004273/0.0004273, allocations: 8 kB / 347.6 MB, free: 15.62 MB / 298.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2365/0.2369, allocations: 49.99 MB / 397.6 MB, free: 34.61 MB / 298.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09544/0.3324, allocations: 82.68 MB / 480.3 MB, free: 15.8 MB / 362.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002388/0.3327, allocations: 99.88 kB / 480.4 MB, free: 15.7 MB / 362.8 MB Notification: Performance of FrontEnd - DAE generated: time 0.02784/0.3605, allocations: 10.28 MB / 490.7 MB, free: 5.418 MB / 362.8 MB Notification: Performance of FrontEnd: time 1.873e-06/0.3606, allocations: 0 / 490.7 MB, free: 5.418 MB / 362.8 MB Notification: Performance of Transformations before backend: time 3.276e-05/0.3606, allocations: 12 kB / 490.7 MB, free: 5.406 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.001143/0.3618, allocations: 0.6591 MB / 491.4 MB, free: 4.68 MB / 362.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.063e-05/0.3618, allocations: 12.03 kB / 491.4 MB, free: 4.668 MB / 362.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001145/0.3619, allocations: 44.45 kB / 491.4 MB, free: 4.625 MB / 362.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005114/0.3625, allocations: 335.9 kB / 491.7 MB, free: 4.258 MB / 362.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.29e-05/0.3625, allocations: 16.38 kB / 491.8 MB, free: 4.242 MB / 362.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.068e-05/0.3625, allocations: 16.36 kB / 491.8 MB, free: 4.227 MB / 362.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003751/0.3629, allocations: 200.7 kB / 492 MB, free: 4.016 MB / 362.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.759e-06/0.3629, allocations: 192 / 492 MB, free: 4.016 MB / 362.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.485e-05/0.363, allocations: 7.938 kB / 492 MB, free: 4.008 MB / 362.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.953e-06/0.363, allocations: 4 kB / 492 MB, free: 4.004 MB / 362.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002484/0.3632, allocations: 107.9 kB / 492.1 MB, free: 3.898 MB / 362.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008182/0.3641, allocations: 0.5548 MB / 492.6 MB, free: 3.293 MB / 362.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004275/0.3645, allocations: 178.8 kB / 492.8 MB, free: 3.109 MB / 362.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001469/0.3647, allocations: 68.83 kB / 492.9 MB, free: 3.039 MB / 362.8 MB Notification: Performance of preOpt evalFunc (simulation): time 1.491e-05/0.3647, allocations: 3.984 kB / 492.9 MB, free: 3.035 MB / 362.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003206/0.365, allocations: 188.9 kB / 493.1 MB, free: 2.832 MB / 362.8 MB Notification: Performance of pre-optimization done (n=21): time 1.823e-06/0.365, allocations: 0 / 493.1 MB, free: 2.832 MB / 362.8 MB Notification: Performance of matching and sorting (n=21): time 0.0007171/0.3658, allocations: 334 kB / 493.4 MB, free: 2.5 MB / 362.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000123/0.3659, allocations: 144.5 kB / 493.5 MB, free: 2.328 MB / 362.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004273/0.3663, allocations: 386.5 kB / 493.9 MB, free: 1.941 MB / 362.8 MB Notification: Performance of collectPreVariables (initialization): time 2.949e-05/0.3664, allocations: 33.7 kB / 493.9 MB, free: 1.902 MB / 362.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001205/0.3665, allocations: 164.5 kB / 494.1 MB, free: 1.738 MB / 362.8 MB Notification: Performance of collectInitialBindings (initialization): time 4.786e-05/0.3666, allocations: 51.34 kB / 494.2 MB, free: 1.688 MB / 362.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.318e-06/0.3666, allocations: 4 kB / 494.2 MB, free: 1.684 MB / 362.8 MB Notification: Performance of setup shared object (initialization): time 0.0001422/0.3667, allocations: 350.8 kB / 494.5 MB, free: 1.332 MB / 362.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001413/0.3669, allocations: 56.41 kB / 494.6 MB, free: 1.277 MB / 362.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002235/0.3671, allocations: 191.9 kB / 494.7 MB, free: 1.035 MB / 362.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004171/0.3675, allocations: 258.8 kB / 495 MB, free: 0.7422 MB / 362.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.3675, allocations: 4 kB / 495 MB, free: 0.7383 MB / 362.8 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005001/0.368, allocations: 277.1 kB / 495.3 MB, free: 472 kB / 362.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.59e-05/0.3681, allocations: 4 kB / 495.3 MB, free: 468 kB / 362.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.537e-06/0.3681, allocations: 4 kB / 495.3 MB, free: 464 kB / 362.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.602e-05/0.3681, allocations: 7.938 kB / 495.3 MB, free: 456 kB / 362.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001417/0.3683, allocations: 39.91 kB / 495.3 MB, free: 416 kB / 362.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.013e-05/0.3683, allocations: 7.938 kB / 495.3 MB, free: 408 kB / 362.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001538/0.3684, allocations: 32.02 kB / 495.4 MB, free: 376 kB / 362.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.237e-05/0.3685, allocations: 16 kB / 495.4 MB, free: 360 kB / 362.8 MB Warning: Assuming fixed start value for the following 6 variables: equal.y:DISCRETE(fixed = true ) "output" type: Boolean counter.CUd:DISCRETE(fixed = true ) type: Boolean counter.CDd:DISCRETE(fixed = true ) type: Boolean counter.Sd:DISCRETE(fixed = true ) type: Boolean counter.Q:DISCRETE(fixed = true ) "status of the counter (1: counting, 0: not counting)" type: Boolean counter.Value:DISCRETE(start = 0 fixed = true ) 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 () * Number of clocked 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.000226/0.3687, allocations: 185.3 kB / 495.6 MB, free: 168 kB / 362.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.685e-05/0.3688, allocations: 35.62 kB / 495.6 MB, free: 132 kB / 362.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005577/0.3693, allocations: 283.1 kB / 495.9 MB, free: 15.84 MB / 378.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.559e-06/0.3693, allocations: 4 kB / 495.9 MB, free: 15.84 MB / 378.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.798e-06/0.3693, allocations: 0 / 495.9 MB, free: 15.84 MB / 378.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.811e-06/0.3694, allocations: 4.109 kB / 495.9 MB, free: 15.84 MB / 378.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003223/0.3697, allocations: 329.3 kB / 496.2 MB, free: 15.46 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.3697, allocations: 0 / 496.2 MB, free: 15.46 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.772e-05/0.3698, allocations: 23.92 kB / 496.2 MB, free: 15.44 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.062e-06/0.3698, allocations: 4 kB / 496.2 MB, free: 15.44 MB / 378.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.898e-05/0.3698, allocations: 7.984 kB / 496.2 MB, free: 15.43 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.326e-06/0.3698, allocations: 4 kB / 496.2 MB, free: 15.43 MB / 378.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.3698, allocations: 0 / 496.2 MB, free: 15.43 MB / 378.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005352/0.3704, allocations: 312.4 kB / 496.5 MB, free: 15.1 MB / 378.8 MB Notification: Performance of postOpt removeConstants (simulation): time 9.2e-05/0.3705, allocations: 112.7 kB / 496.7 MB, free: 14.97 MB / 378.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.585e-05/0.3705, allocations: 8 kB / 496.7 MB, free: 14.96 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001457/0.3707, allocations: 23.98 kB / 496.7 MB, free: 14.94 MB / 378.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.185e-05/0.3708, allocations: 23.84 kB / 496.7 MB, free: 14.92 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.279e-05/0.3708, allocations: 15.92 kB / 496.7 MB, free: 14.9 MB / 378.8 MB Notification: Performance of sorting global known variables: time 0.0003168/0.3711, allocations: 279.2 kB / 497 MB, free: 14.63 MB / 378.8 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3711, allocations: 0 / 497 MB, free: 14.63 MB / 378.8 MB Notification: Performance of remove unused functions: time 0.0003805/0.3715, allocations: 91.92 kB / 497.1 MB, free: 14.54 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: 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) * Number of clocked states: 0 () * 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.0009592/0.3725, allocations: 474.1 kB / 497.6 MB, free: 14.1 MB / 378.8 MB Notification: Performance of simCode: created initialization part: time 0.0004474/0.3729, allocations: 208.9 kB / 497.8 MB, free: 13.9 MB / 378.8 MB Notification: Performance of simCode: created event and clocks part: time 2.594e-06/0.3729, allocations: 0 / 497.8 MB, free: 13.9 MB / 378.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0001885/0.3731, allocations: 95.91 kB / 497.8 MB, free: 13.8 MB / 378.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004251/0.3736, allocations: 73.84 kB / 497.9 MB, free: 13.73 MB / 378.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008742/0.3745, allocations: 0.5699 MB / 498.5 MB, free: 13.14 MB / 378.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003247/0.3748, allocations: 0.7719 MB / 499.3 MB, free: 12.34 MB / 378.8 MB Notification: Performance of simCode: alias equations: time 0.0001493/0.3749, allocations: 46.95 kB / 499.3 MB, free: 12.29 MB / 378.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.348e-05/0.375, allocations: 35.42 kB / 499.3 MB, free: 12.25 MB / 378.8 MB Notification: Performance of SimCode: time 3.7e-07/0.375, allocations: 0 / 499.3 MB, free: 12.25 MB / 378.8 MB Notification: Performance of Templates: time 0.008702/0.3837, allocations: 4.312 MB / 0.4919 GB, free: 7.938 MB / 378.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)