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.001528/0.001528, allocations: 174.1 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.06457/0.06457, allocations: 10.66 MB / 23.92 MB, free: 1.375 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.887/1.887, allocations: 205.2 MB / 232.1 MB, free: 12.77 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.001054/0.001054, allocations: 88.41 kB / 282.6 MB, free: 13.57 MB / 234.8 MB Notification: Performance of FrontEnd - loaded program: time 3.586e-05/3.595e-05, allocations: 0 / 340.6 MB, free: 3.508 MB / 282.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3006/0.3007, allocations: 49.98 MB / 390.6 MB, free: 35.7 MB / 298.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1112/0.412, allocations: 82.53 MB / 473.1 MB, free: 1.059 MB / 346.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003052/0.4123, allocations: 83.95 kB / 473.2 MB, free: 0.9766 MB / 346.8 MB Notification: Performance of FrontEnd - DAE generated: time 0.02946/0.4418, allocations: 10.22 MB / 483.4 MB, free: 6.754 MB / 362.8 MB Notification: Performance of FrontEnd: time 2.435e-06/0.4419, allocations: 0 / 483.4 MB, free: 6.754 MB / 362.8 MB Notification: Performance of Transformations before backend: time 3.587e-05/0.4419, allocations: 4 kB / 483.4 MB, free: 6.75 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.001105/0.443, allocations: 0.612 MB / 484 MB, free: 6.078 MB / 362.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.142e-05/0.4431, allocations: 8.031 kB / 484 MB, free: 6.07 MB / 362.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.254e-05/0.4432, allocations: 50.55 kB / 484.1 MB, free: 6.012 MB / 362.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.983e-05/0.4433, allocations: 35.58 kB / 484.1 MB, free: 5.977 MB / 362.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006172/0.4439, allocations: 327.8 kB / 484.4 MB, free: 5.613 MB / 362.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.687e-05/0.4439, allocations: 12 kB / 484.4 MB, free: 5.602 MB / 362.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.705e-05/0.444, allocations: 15.98 kB / 484.5 MB, free: 5.586 MB / 362.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003738/0.4444, allocations: 192.1 kB / 484.6 MB, free: 5.383 MB / 362.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.258e-05/0.4444, allocations: 7.922 kB / 484.6 MB, free: 5.375 MB / 362.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.477e-05/0.4444, allocations: 4 kB / 484.7 MB, free: 5.371 MB / 362.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.414e-06/0.4444, allocations: 4 kB / 484.7 MB, free: 5.367 MB / 362.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001982/0.4446, allocations: 83.94 kB / 484.7 MB, free: 5.285 MB / 362.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001021/0.4457, allocations: 0.5549 MB / 485.3 MB, free: 4.68 MB / 362.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003893/0.4461, allocations: 166.9 kB / 485.5 MB, free: 4.508 MB / 362.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000111/0.4462, allocations: 60.84 kB / 485.5 MB, free: 4.445 MB / 362.8 MB Notification: Performance of preOpt evalFunc (simulation): time 2.023e-05/0.4462, allocations: 0 / 485.5 MB, free: 4.445 MB / 362.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002843/0.4465, allocations: 169.5 kB / 485.7 MB, free: 4.258 MB / 362.8 MB Notification: Performance of pre-optimization done (n=21): time 1.262e-06/0.4465, allocations: 0 / 485.7 MB, free: 4.258 MB / 362.8 MB Notification: Performance of matching and sorting (n=21): time 0.0004678/0.447, allocations: 250 kB / 485.9 MB, free: 4.012 MB / 362.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.381e-05/0.4471, allocations: 132.7 kB / 486.1 MB, free: 3.852 MB / 362.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004188/0.4475, allocations: 347.5 kB / 486.4 MB, free: 3.512 MB / 362.8 MB Notification: Performance of collectPreVariables (initialization): time 3.366e-05/0.4476, allocations: 37.64 kB / 486.4 MB, free: 3.469 MB / 362.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001154/0.4477, allocations: 172.5 kB / 486.6 MB, free: 3.297 MB / 362.8 MB Notification: Performance of collectInitialBindings (initialization): time 5.705e-05/0.4478, allocations: 47.41 kB / 486.6 MB, free: 3.25 MB / 362.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.093e-05/0.4478, allocations: 8 kB / 486.7 MB, free: 3.242 MB / 362.8 MB Notification: Performance of setup shared object (initialization): time 0.0001736/0.448, allocations: 350.8 kB / 487 MB, free: 2.891 MB / 362.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.747e-05/0.4481, allocations: 44.44 kB / 487 MB, free: 2.848 MB / 362.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001835/0.4482, allocations: 172 kB / 487.2 MB, free: 2.625 MB / 362.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001356/0.4484, allocations: 75.81 kB / 487.3 MB, free: 2.551 MB / 362.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.4484, allocations: 0 / 487.3 MB, free: 2.551 MB / 362.8 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003866/0.4488, allocations: 249.3 kB / 487.5 MB, free: 2.301 MB / 362.8 MB Notification: Performance of prepare postOptimizeDAE: time 2.266e-05/0.4488, allocations: 4.781 kB / 487.5 MB, free: 2.297 MB / 362.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.241e-05/0.4488, allocations: 11.92 kB / 487.5 MB, free: 2.285 MB / 362.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.213e-05/0.4489, allocations: 7.953 kB / 487.5 MB, free: 2.277 MB / 362.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001523/0.449, allocations: 43.86 kB / 487.6 MB, free: 2.234 MB / 362.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.12e-05/0.449, allocations: 4 kB / 487.6 MB, free: 2.23 MB / 362.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001678/0.4492, allocations: 27.83 kB / 487.6 MB, free: 2.203 MB / 362.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.971e-05/0.4493, allocations: 16 kB / 487.6 MB, free: 2.188 MB / 362.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.0001877/0.4494, allocations: 150.9 kB / 487.8 MB, free: 2.039 MB / 362.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.186e-05/0.4495, allocations: 31.62 kB / 487.8 MB, free: 2.008 MB / 362.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004623/0.45, allocations: 271.8 kB / 488.1 MB, free: 1.742 MB / 362.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.22e-06/0.45, allocations: 7.953 kB / 488.1 MB, free: 1.734 MB / 362.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/0.45, allocations: 0 / 488.1 MB, free: 1.734 MB / 362.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.951e-06/0.45, allocations: 3.984 kB / 488.1 MB, free: 1.73 MB / 362.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003263/0.4503, allocations: 325.3 kB / 488.4 MB, free: 1.363 MB / 362.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.168e-06/0.4504, allocations: 4 kB / 488.4 MB, free: 1.359 MB / 362.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.766e-05/0.4504, allocations: 15.98 kB / 488.4 MB, free: 1.344 MB / 362.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.976e-06/0.4505, allocations: 0 / 488.4 MB, free: 1.344 MB / 362.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.421e-05/0.4505, allocations: 11.98 kB / 488.4 MB, free: 1.332 MB / 362.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.4505, allocations: 0 / 488.4 MB, free: 1.332 MB / 362.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.006e-06/0.4505, allocations: 3.953 kB / 488.4 MB, free: 1.328 MB / 362.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004152/0.4509, allocations: 284.5 kB / 488.7 MB, free: 1.031 MB / 362.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001187/0.4511, allocations: 116.6 kB / 488.8 MB, free: 0.8984 MB / 362.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.996e-05/0.4511, allocations: 11.98 kB / 488.9 MB, free: 0.8867 MB / 362.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001557/0.4513, allocations: 23.98 kB / 488.9 MB, free: 0.8633 MB / 362.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.755e-05/0.4514, allocations: 19.97 kB / 488.9 MB, free: 0.8438 MB / 362.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.284e-05/0.4514, allocations: 7.953 kB / 488.9 MB, free: 0.8359 MB / 362.8 MB Notification: Performance of sorting global known variables: time 0.0003184/0.4517, allocations: 278.1 kB / 489.2 MB, free: 0.5586 MB / 362.8 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4517, allocations: 0 / 489.2 MB, free: 0.5586 MB / 362.8 MB Notification: Performance of remove unused functions: time 0.0004261/0.4521, allocations: 91.86 kB / 489.3 MB, free: 480 kB / 362.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.00159/0.4537, allocations: 1.129 MB / 490.4 MB, free: 15.38 MB / 378.8 MB Notification: Performance of simCode: created initialization part: time 0.0003699/0.4541, allocations: 183.6 kB / 490.6 MB, free: 15.2 MB / 378.8 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.4541, allocations: 0 / 490.6 MB, free: 15.2 MB / 378.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0001483/0.4543, allocations: 88.48 kB / 490.7 MB, free: 15.12 MB / 378.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004062/0.4547, allocations: 69.69 kB / 490.7 MB, free: 15.05 MB / 378.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009744/0.4557, allocations: 476.8 kB / 491.2 MB, free: 14.54 MB / 378.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003513/0.4561, allocations: 0.7875 MB / 492 MB, free: 13.73 MB / 378.8 MB Notification: Performance of simCode: alias equations: time 0.0001497/0.4562, allocations: 46.95 kB / 492 MB, free: 13.68 MB / 378.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001588/0.4564, allocations: 103.4 kB / 492.1 MB, free: 13.58 MB / 378.8 MB Notification: Performance of SimCode: time 2.81e-07/0.4564, allocations: 0 / 492.1 MB, free: 13.58 MB / 378.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0202/0.4766, allocations: 7.186 MB / 499.3 MB, free: 6.426 MB / 378.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001937/0.4768, allocations: 226.5 kB / 499.5 MB, free: 6.195 MB / 378.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.101/2.578, allocations: 4 kB / 499.5 MB, free: 6.191 MB / 378.8 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)