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: "" <> buildModelFMU(IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Logical_Counter_Examples_countZeroCrossing",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Logical_Counter_Examples_countZeroCrossing",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.008402/0.008402, 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.06256/0.06256, allocations: 10.74 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.614/1.614, allocations: 205.4 MB / 235.2 MB, free: 184 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.0007816/0.0007817, allocations: 80.48 kB / 285.9 MB, free: 10.69 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003119/0.0003121, allocations: 8 kB / 346.5 MB, free: 5.074 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1037/0.1041, allocations: 50 MB / 396.5 MB, free: 2.984 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3264/0.4305, allocations: 82.61 MB / 479.1 MB, free: 13.89 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000242/0.4308, allocations: 86.95 kB / 479.2 MB, free: 13.84 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02474/0.4556, allocations: 10.24 MB / 489.4 MB, free: 5.289 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.164e-06/0.4556, allocations: 0 / 489.4 MB, free: 5.289 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.461e-05/0.4557, allocations: 4 kB / 489.4 MB, free: 5.285 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.001128/0.4568, allocations: 0.6763 MB / 490.1 MB, free: 4.574 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.884e-05/0.4569, allocations: 8.031 kB / 490.1 MB, free: 4.566 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.517e-05/0.4569, allocations: 49.73 kB / 490.2 MB, free: 4.516 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001198/0.4571, allocations: 43.61 kB / 490.2 MB, free: 4.473 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005662/0.4576, allocations: 325.3 kB / 490.5 MB, free: 4.152 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.517e-05/0.4577, allocations: 15.12 kB / 490.6 MB, free: 4.141 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.258e-05/0.4577, allocations: 15.36 kB / 490.6 MB, free: 4.129 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003807/0.4581, allocations: 203.2 kB / 490.8 MB, free: 3.965 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.148e-05/0.4581, allocations: 0 / 490.8 MB, free: 3.965 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.402e-05/0.4582, allocations: 15.62 kB / 490.8 MB, free: 3.953 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.322e-06/0.4582, allocations: 4 kB / 490.8 MB, free: 3.949 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002346/0.4584, allocations: 98.2 kB / 490.9 MB, free: 3.879 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008357/0.4593, allocations: 0.5541 MB / 491.4 MB, free: 3.367 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004127/0.4597, allocations: 177.2 kB / 491.6 MB, free: 3.227 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.864e-05/0.4597, allocations: 7.109 kB / 491.6 MB, free: 3.223 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002843/0.46, allocations: 174.2 kB / 491.8 MB, free: 3.062 MB / 346.7 MB Notification: Performance of pre-optimization done (n=21): time 1.664e-06/0.46, allocations: 0 / 491.8 MB, free: 3.062 MB / 346.7 MB Notification: Performance of matching and sorting (n=21): time 0.0006996/0.4607, allocations: 416.2 kB / 492.2 MB, free: 2.711 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.399e-05/0.4608, allocations: 136.7 kB / 492.3 MB, free: 2.547 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000364/0.4612, allocations: 359 kB / 492.7 MB, free: 2.262 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.762e-05/0.4612, allocations: 33.2 kB / 492.7 MB, free: 2.227 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.713e-05/0.4613, allocations: 162.7 kB / 492.9 MB, free: 2.117 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.687e-05/0.4614, allocations: 53.48 kB / 492.9 MB, free: 2.074 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.837e-06/0.4614, allocations: 7.125 kB / 492.9 MB, free: 2.07 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 7.783e-05/0.4615, allocations: 345 kB / 493.3 MB, free: 1.738 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001336/0.4616, allocations: 58.03 kB / 493.3 MB, free: 1.699 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001684/0.4618, allocations: 188.6 kB / 493.5 MB, free: 1.484 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001661/0.462, allocations: 83.66 kB / 493.6 MB, free: 1.43 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.935e-06/0.462, allocations: 0 / 493.6 MB, free: 1.43 MB / 346.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004375/0.4624, allocations: 277.9 kB / 493.9 MB, free: 1.211 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.817e-05/0.4625, allocations: 8 kB / 493.9 MB, free: 1.203 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.354e-06/0.4625, allocations: 0 / 493.9 MB, free: 1.203 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.958e-05/0.4625, allocations: 11.95 kB / 493.9 MB, free: 1.191 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001336/0.4626, allocations: 35.91 kB / 493.9 MB, free: 1.156 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.528e-06/0.4627, allocations: 4 kB / 493.9 MB, free: 1.152 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001737/0.4628, allocations: 34.83 kB / 494 MB, free: 1.125 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.832e-05/0.4629, allocations: 11.94 kB / 494 MB, free: 1.113 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.0002221/0.4631, allocations: 184.6 kB / 494.1 MB, free: 0.9453 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.158e-05/0.4632, allocations: 35.61 kB / 494.2 MB, free: 0.9102 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000484/0.4636, allocations: 289.7 kB / 494.5 MB, free: 0.6992 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.928e-06/0.4637, allocations: 3.953 kB / 494.5 MB, free: 0.6953 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.558e-06/0.4637, allocations: 3.938 kB / 494.5 MB, free: 0.6914 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.899e-06/0.4637, allocations: 3.984 kB / 494.5 MB, free: 0.6875 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002308/0.4639, allocations: 326.1 kB / 494.8 MB, free: 384 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.4639, allocations: 4 kB / 494.8 MB, free: 380 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.477e-05/0.464, allocations: 19.92 kB / 494.8 MB, free: 360 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.829e-06/0.464, allocations: 3.984 kB / 494.8 MB, free: 356 kB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.197e-05/0.4641, allocations: 15.3 kB / 494.8 MB, free: 344 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.104e-06/0.4641, allocations: 0 / 494.8 MB, free: 344 kB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/0.4641, allocations: 3.953 kB / 494.8 MB, free: 340 kB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004586/0.4645, allocations: 297.1 kB / 495.1 MB, free: 84 kB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001253/0.4647, allocations: 123 kB / 495.2 MB, free: 15.95 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.434e-05/0.4647, allocations: 11.94 kB / 495.3 MB, free: 15.94 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001594/0.4649, allocations: 19.17 kB / 495.3 MB, free: 15.93 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.179e-05/0.465, allocations: 23.41 kB / 495.3 MB, free: 15.91 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.086e-05/0.465, allocations: 7.953 kB / 495.3 MB, free: 15.9 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003037/0.4653, allocations: 283.2 kB / 495.6 MB, free: 15.68 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4653, allocations: 0 / 495.6 MB, free: 15.68 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004234/0.4657, allocations: 90.3 kB / 495.7 MB, free: 15.61 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.001816/0.4676, allocations: 1.211 MB / 496.9 MB, free: 14.48 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004748/0.4681, allocations: 203.2 kB / 497.1 MB, free: 14.33 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.92e-06/0.4681, allocations: 3.984 kB / 497.1 MB, free: 14.32 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002004/0.4683, allocations: 94.22 kB / 497.2 MB, free: 14.26 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004214/0.4687, allocations: 73.89 kB / 497.3 MB, free: 14.2 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003931/0.4727, allocations: 3.585 MB / 0.4891 GB, free: 10.8 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000494/0.4732, allocations: 0.783 MB / 0.4899 GB, free: 9.996 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001849/0.4734, allocations: 46.92 kB / 0.4899 GB, free: 9.949 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001605/0.4735, allocations: 99.34 kB / 0.49 GB, free: 9.914 MB / 362.7 MB Notification: Performance of SimCode: time 4.11e-07/0.4735, allocations: 4 kB / 0.49 GB, free: 9.91 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02182/0.4954, allocations: 7.242 MB / 0.4971 GB, free: 2.699 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001929/0.4956, allocations: 259.2 kB / 0.4973 GB, free: 2.355 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.17/2.666, allocations: 4 kB / 0.4973 GB, free: 2.352 MB / 362.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_Logical_Counter_Examples_countZeroCrossing_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_Logical_Counter_Examples_countZeroCrossing.fmu > IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing.pipe 2>&1)