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.001775/0.001775, allocations: 171.9 kB / 7.647 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.08436/0.08436, allocations: 10.66 MB / 18.73 MB, free: 1.316 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.03/2.03, allocations: 205.3 MB / 226.9 MB, free: 7.914 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000967/0.0009676, allocations: 94.39 kB / 277.3 MB, free: 5.445 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.32e-05/2.323e-05, allocations: 4 kB / 333.6 MB, free: 28.33 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1336/0.1336, allocations: 49.99 MB / 383.6 MB, free: 10.29 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4429/0.5766, allocations: 82.16 MB / 465.8 MB, free: 2.516 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002529/0.5769, allocations: 83.61 kB / 465.9 MB, free: 2.473 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02761/0.6046, allocations: 10.13 MB / 476 MB, free: 10.1 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.824e-06/0.6046, allocations: 0 / 476 MB, free: 10.1 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.518e-05/0.6046, allocations: 8 kB / 476 MB, free: 10.09 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.0009269/0.6056, allocations: 0.6148 MB / 476.6 MB, free: 9.445 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.248e-05/0.6056, allocations: 8.031 kB / 476.6 MB, free: 9.438 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.337e-05/0.6057, allocations: 35.58 kB / 476.7 MB, free: 9.402 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005144/0.6062, allocations: 325.3 kB / 477 MB, free: 9.082 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.31e-05/0.6063, allocations: 11.42 kB / 477 MB, free: 9.074 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.895e-05/0.6063, allocations: 8 kB / 477 MB, free: 9.066 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001934/0.6065, allocations: 77.98 kB / 477.1 MB, free: 9.016 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002831/0.6068, allocations: 173.8 kB / 477.2 MB, free: 8.867 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.979e-06/0.6068, allocations: 4 kB / 477.3 MB, free: 8.863 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.084e-05/0.6068, allocations: 0 / 477.3 MB, free: 8.863 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.074e-06/0.6069, allocations: 4 kB / 477.3 MB, free: 8.859 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008065/0.6077, allocations: 0.5189 MB / 477.8 MB, free: 8.387 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003138/0.608, allocations: 149 kB / 477.9 MB, free: 8.27 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.809e-05/0.6081, allocations: 57 kB / 478 MB, free: 8.23 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.682e-05/0.6081, allocations: 0 / 478 MB, free: 8.23 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002503/0.6084, allocations: 173.3 kB / 478.1 MB, free: 8.074 MB / 346.7 MB Notification: Performance of pre-optimization done (n=21): time 1.252e-06/0.6084, allocations: 0 / 478.1 MB, free: 8.074 MB / 346.7 MB Notification: Performance of matching and sorting (n=21): time 0.0004531/0.6088, allocations: 236.2 kB / 478.4 MB, free: 7.887 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.192e-05/0.6089, allocations: 135.8 kB / 478.5 MB, free: 7.727 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003544/0.6093, allocations: 320.6 kB / 478.8 MB, free: 7.473 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.057e-05/0.6093, allocations: 29.7 kB / 478.9 MB, free: 7.438 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001152/0.6095, allocations: 168.6 kB / 479 MB, free: 7.32 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.831e-05/0.6095, allocations: 45.36 kB / 479.1 MB, free: 7.285 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.356e-06/0.6095, allocations: 4 kB / 479.1 MB, free: 7.281 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001723/0.6097, allocations: 344.7 kB / 479.4 MB, free: 6.949 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.247e-05/0.6098, allocations: 41.31 kB / 479.4 MB, free: 6.926 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001682/0.61, allocations: 164.9 kB / 479.6 MB, free: 6.738 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001195/0.6101, allocations: 65.72 kB / 479.7 MB, free: 6.691 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.6101, allocations: 0 / 479.7 MB, free: 6.691 MB / 346.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003401/0.6105, allocations: 232.6 kB / 479.9 MB, free: 6.5 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.662e-05/0.6105, allocations: 8.281 kB / 479.9 MB, free: 6.492 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.375e-06/0.6105, allocations: 8 kB / 479.9 MB, free: 6.484 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.82e-05/0.6105, allocations: 4 kB / 479.9 MB, free: 6.48 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001488/0.6107, allocations: 39.91 kB / 480 MB, free: 6.441 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.926e-06/0.6107, allocations: 4 kB / 480 MB, free: 6.438 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001469/0.6109, allocations: 27.78 kB / 480 MB, free: 6.41 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.091e-05/0.6109, allocations: 11.88 kB / 480 MB, free: 6.402 MB / 346.7 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.0001692/0.6111, allocations: 128.5 kB / 480.1 MB, free: 6.277 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003539/0.6114, allocations: 239.8 kB / 480.4 MB, free: 6.082 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.52e-05/0.6115, allocations: 35.58 kB / 480.4 MB, free: 6.047 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000407/0.6119, allocations: 257.3 kB / 480.6 MB, free: 5.852 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.388e-06/0.6119, allocations: 8 kB / 480.6 MB, free: 5.844 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.6119, allocations: 0 / 480.6 MB, free: 5.844 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.709e-06/0.6119, allocations: 128 / 480.6 MB, free: 5.844 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003/0.6122, allocations: 302.4 kB / 480.9 MB, free: 5.559 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.6122, allocations: 0 / 480.9 MB, free: 5.559 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.13e-05/0.6123, allocations: 19.92 kB / 481 MB, free: 5.539 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.775e-06/0.6123, allocations: 0 / 481 MB, free: 5.539 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.825e-05/0.6124, allocations: 7.375 kB / 481 MB, free: 5.535 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.376e-06/0.6124, allocations: 3.953 kB / 481 MB, free: 5.531 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.6124, allocations: 0 / 481 MB, free: 5.531 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003839/0.6128, allocations: 273.9 kB / 481.2 MB, free: 5.297 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001028/0.6129, allocations: 120.5 kB / 481.4 MB, free: 5.164 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.934e-05/0.6129, allocations: 2.75 kB / 481.4 MB, free: 5.164 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001468/0.6131, allocations: 19.98 kB / 481.4 MB, free: 5.145 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.92e-05/0.6132, allocations: 26.78 kB / 481.4 MB, free: 5.121 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.723e-05/0.6132, allocations: 10.88 kB / 481.4 MB, free: 5.113 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002474/0.6135, allocations: 251.2 kB / 481.7 MB, free: 4.918 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.6135, allocations: 4 kB / 481.7 MB, free: 4.914 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000404/0.6139, allocations: 79.38 kB / 481.7 MB, free: 4.84 MB / 346.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) * 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.001425/0.6153, allocations: 1.079 MB / 482.8 MB, free: 3.797 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0003015/0.6156, allocations: 166.1 kB / 483 MB, free: 3.68 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.6156, allocations: 0 / 483 MB, free: 3.68 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001198/0.6158, allocations: 81.67 kB / 483.1 MB, free: 3.625 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003771/0.6162, allocations: 68.44 kB / 483.1 MB, free: 3.57 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009192/0.6171, allocations: 473.4 kB / 483.6 MB, free: 3.125 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003629/0.6175, allocations: 0.7832 MB / 484.4 MB, free: 2.316 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001368/0.6176, allocations: 42.03 kB / 484.4 MB, free: 2.277 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001331/0.6177, allocations: 100.8 kB / 484.5 MB, free: 2.242 MB / 346.7 MB Notification: Performance of SimCode: time 2.7e-07/0.6178, allocations: 0 / 484.5 MB, free: 2.242 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02926/0.647, allocations: 6.509 MB / 491 MB, free: 11.73 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002936/0.6474, allocations: 212.6 kB / 491.2 MB, free: 11.45 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.234/2.882, allocations: 7.438 kB / 491.2 MB, free: 11.45 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)