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.006907/0.006907, allocations: 169.5 kB / 15.11 MB, free: 5.973 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05823/0.05823, allocations: 10.73 MB / 26.59 MB, free: 2.266 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.501/1.501, allocations: 205.4 MB / 235.2 MB, free: 172 kB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008205/0.0008205, allocations: 82.98 kB / 285.9 MB, free: 10.73 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003386/0.0003387, allocations: 8 kB / 346.4 MB, free: 5.176 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1175/0.1179, allocations: 50 MB / 396.4 MB, free: 3.082 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3115/0.4295, allocations: 82.61 MB / 479 MB, free: 13.92 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002681/0.4298, allocations: 86.77 kB / 479.1 MB, free: 13.87 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02458/0.4544, allocations: 10.25 MB / 489.3 MB, free: 5.309 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.894e-06/0.4544, allocations: 0 / 489.3 MB, free: 5.309 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.553e-05/0.4544, allocations: 8 kB / 489.4 MB, free: 5.301 MB / 346.7 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.0008805/0.4553, allocations: 0.6689 MB / 490 MB, free: 4.598 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.641e-05/0.4554, allocations: 8.031 kB / 490 MB, free: 4.59 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.627e-05/0.4555, allocations: 35.61 kB / 490.1 MB, free: 4.555 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004545/0.4559, allocations: 334.8 kB / 490.4 MB, free: 4.227 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.651e-05/0.456, allocations: 7.875 kB / 490.4 MB, free: 4.223 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.706e-05/0.456, allocations: 15.62 kB / 490.4 MB, free: 4.211 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003259/0.4563, allocations: 201.8 kB / 490.6 MB, free: 4.043 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.107e-05/0.4564, allocations: 0 / 490.6 MB, free: 4.043 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.135e-05/0.4564, allocations: 3.938 kB / 490.6 MB, free: 4.043 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.66e-06/0.4564, allocations: 4 kB / 490.6 MB, free: 4.039 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002177/0.4566, allocations: 104.7 kB / 490.7 MB, free: 3.965 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007362/0.4574, allocations: 0.5527 MB / 491.3 MB, free: 3.453 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000395/0.4578, allocations: 185.4 kB / 491.5 MB, free: 3.309 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.329e-05/0.4578, allocations: 7.938 kB / 491.5 MB, free: 3.301 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002763/0.4581, allocations: 174.8 kB / 491.6 MB, free: 3.141 MB / 346.7 MB Notification: Performance of pre-optimization done (n=21): time 1.653e-06/0.4581, allocations: 0 / 491.6 MB, free: 3.141 MB / 346.7 MB Notification: Performance of matching and sorting (n=21): time 0.0006499/0.4587, allocations: 424.7 kB / 492 MB, free: 2.781 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.706e-05/0.4588, allocations: 136.7 kB / 492.2 MB, free: 2.617 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003241/0.4591, allocations: 347.7 kB / 492.5 MB, free: 2.34 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.36e-05/0.4592, allocations: 36.27 kB / 492.6 MB, free: 2.305 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.072e-05/0.4593, allocations: 166.4 kB / 492.7 MB, free: 2.191 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.998e-05/0.4593, allocations: 54.36 kB / 492.8 MB, free: 2.148 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.126e-06/0.4593, allocations: 0 / 492.8 MB, free: 2.148 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.757e-05/0.4594, allocations: 351.3 kB / 493.1 MB, free: 1.812 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001264/0.4595, allocations: 58.28 kB / 493.2 MB, free: 1.773 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001768/0.4597, allocations: 184.8 kB / 493.4 MB, free: 1.562 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001577/0.4599, allocations: 80.3 kB / 493.4 MB, free: 1.512 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.517e-06/0.4599, allocations: 7.938 kB / 493.4 MB, free: 1.504 MB / 346.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.000446/0.4603, allocations: 280.6 kB / 493.7 MB, free: 1.281 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.586e-05/0.4604, allocations: 4 kB / 493.7 MB, free: 1.277 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.143e-06/0.4604, allocations: 4 kB / 493.7 MB, free: 1.273 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.862e-05/0.4604, allocations: 7.953 kB / 493.7 MB, free: 1.266 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000134/0.4605, allocations: 39.91 kB / 493.8 MB, free: 1.227 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.858e-06/0.4606, allocations: 4.344 kB / 493.8 MB, free: 1.223 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001488/0.4607, allocations: 27.48 kB / 493.8 MB, free: 1.199 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.044e-05/0.4607, allocations: 19.5 kB / 493.8 MB, free: 1.184 MB / 346.7 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.0001996/0.4609, allocations: 180.9 kB / 494 MB, free: 1.02 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.278e-05/0.461, allocations: 39.55 kB / 494 MB, free: 0.9805 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00047/0.4615, allocations: 281.5 kB / 494.3 MB, free: 0.7773 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.499e-06/0.4615, allocations: 4 kB / 494.3 MB, free: 0.7734 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.4615, allocations: 3.953 kB / 494.3 MB, free: 0.7695 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.559e-06/0.4615, allocations: 3.984 kB / 494.3 MB, free: 0.7656 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002293/0.4617, allocations: 329.2 kB / 494.6 MB, free: 460 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.873e-06/0.4618, allocations: 4 kB / 494.6 MB, free: 456 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.315e-05/0.4618, allocations: 15.98 kB / 494.7 MB, free: 440 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.206e-06/0.4618, allocations: 4 kB / 494.7 MB, free: 436 kB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.86e-05/0.4619, allocations: 11.36 kB / 494.7 MB, free: 428 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.803e-06/0.4619, allocations: 4 kB / 494.7 MB, free: 424 kB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.4619, allocations: 0 / 494.7 MB, free: 424 kB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004139/0.4623, allocations: 300 kB / 495 MB, free: 164 kB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.111e-05/0.4624, allocations: 120 kB / 495.1 MB, free: 32 kB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.801e-05/0.4624, allocations: 7.188 kB / 495.1 MB, free: 28 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001419/0.4626, allocations: 27.48 kB / 495.1 MB, free: 4 kB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.07e-05/0.4627, allocations: 16.03 kB / 495.1 MB, free: 15.99 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.146e-05/0.4627, allocations: 8 kB / 495.1 MB, free: 15.98 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002977/0.463, allocations: 291.3 kB / 495.4 MB, free: 15.76 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.463, allocations: 3.938 kB / 495.4 MB, free: 15.76 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000386/0.4634, allocations: 90.23 kB / 495.5 MB, free: 15.68 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: 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.0009931/0.4644, allocations: 465.2 kB / 496 MB, free: 15.27 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004466/0.4649, allocations: 196.8 kB / 496.2 MB, free: 15.12 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.4649, allocations: 0 / 496.2 MB, free: 15.12 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001974/0.4651, allocations: 101.9 kB / 496.3 MB, free: 15.05 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003742/0.4655, allocations: 68.78 kB / 496.3 MB, free: 15 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008775/0.4664, allocations: 0.569 MB / 496.9 MB, free: 14.45 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003502/0.4667, allocations: 0.7903 MB / 497.7 MB, free: 13.64 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001456/0.4669, allocations: 54.92 kB / 497.8 MB, free: 13.59 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.347e-05/0.467, allocations: 27.44 kB / 497.8 MB, free: 13.56 MB / 362.7 MB Notification: Performance of SimCode: time 2.51e-07/0.467, allocations: 0 / 497.8 MB, free: 13.56 MB / 362.7 MB Notification: Performance of Templates: time 0.008212/0.4752, allocations: 4.251 MB / 0.4903 GB, free: 9.324 MB / 362.7 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)