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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/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/IndustrialControlSystems 1.1.0-master/package.mo", uses=false) Using package IndustrialControlSystems with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001044/0.001049, allocations: 99.86 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001257/0.001258, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.856/1.856, allocations: 205.4 MB / 222.1 MB, free: 5.652 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05756/0.05756, allocations: 10.73 MB / 281.1 MB, free: 10.56 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005905/0.0005905, allocations: 15.98 kB / 341.7 MB, free: 23.78 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1566/0.1572, allocations: 50 MB / 391.7 MB, free: 5.703 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing): time 0.002776/0.16, allocations: 1.773 MB / 393.5 MB, free: 3.918 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001942/0.162, allocations: 1.128 MB / 394.6 MB, free: 2.781 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001405/0.1622, allocations: 0 / 394.6 MB, free: 2.781 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008623/0.163, allocations: 235.3 kB / 394.8 MB, free: 2.551 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003925/0.1634, allocations: 167.6 kB / 395 MB, free: 2.387 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007677/0.1642, allocations: 271.3 kB / 395.3 MB, free: 2.121 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003462/0.1646, allocations: 231.5 kB / 395.5 MB, free: 1.895 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001735/0.1648, allocations: 53.12 kB / 395.5 MB, free: 1.844 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002526/0.165, allocations: 135.4 kB / 395.7 MB, free: 1.711 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001908/0.1652, allocations: 119.5 kB / 395.8 MB, free: 1.594 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.69e-05/0.1652, allocations: 4 kB / 395.8 MB, free: 1.59 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001824/0.1654, allocations: 95.84 kB / 395.9 MB, free: 1.496 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.343e-05/0.1655, allocations: 59.75 kB / 395.9 MB, free: 1.438 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.297e-05/0.1656, allocations: 73.5 kB / 396 MB, free: 1.359 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000413/0.1661, allocations: 287.6 kB / 396.3 MB, free: 1.078 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.1661, allocations: 4 kB / 396.3 MB, free: 1.074 MB / 286.1 MB Notification: Performance of FrontEnd: time 4.248e-06/0.1661, allocations: 0 / 396.3 MB, free: 1.074 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.333e-06/0.1661, allocations: 3.938 kB / 396.3 MB, free: 1.07 MB / 286.1 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.001332/0.1674, allocations: 0.63 MB / 396.9 MB, free: 388 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.591e-05/0.1675, allocations: 12.03 kB / 396.9 MB, free: 376 kB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.657e-05/0.1676, allocations: 46.55 kB / 397 MB, free: 320 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.527e-05/0.1677, allocations: 35.53 kB / 397 MB, free: 284 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005605/0.1683, allocations: 318.9 kB / 397.3 MB, free: 15.93 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.7e-05/0.1683, allocations: 8 kB / 397.3 MB, free: 15.92 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.704e-05/0.1683, allocations: 19.98 kB / 397.4 MB, free: 15.9 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004528/0.1688, allocations: 196 kB / 397.5 MB, free: 15.7 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.647e-05/0.1688, allocations: 7.953 kB / 397.6 MB, free: 15.69 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.537e-05/0.1689, allocations: 4 kB / 397.6 MB, free: 15.68 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.45e-05/0.1689, allocations: 4 kB / 397.6 MB, free: 15.68 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000259/0.1691, allocations: 95.94 kB / 397.7 MB, free: 15.59 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009286/0.1701, allocations: 0.5313 MB / 398.2 MB, free: 15 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004686/0.1706, allocations: 178.8 kB / 398.4 MB, free: 14.82 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.311e-05/0.1706, allocations: 0 / 398.4 MB, free: 14.82 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003528/0.171, allocations: 185.5 kB / 398.5 MB, free: 14.62 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.242e-06/0.171, allocations: 0 / 398.5 MB, free: 14.62 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.0007907/0.1718, allocations: 393.2 kB / 398.9 MB, free: 14.21 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001214/0.1719, allocations: 144.5 kB / 399.1 MB, free: 14.04 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004939/0.1724, allocations: 385.6 kB / 399.4 MB, free: 13.66 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.586e-05/0.1725, allocations: 33.7 kB / 399.5 MB, free: 13.62 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001593/0.1726, allocations: 168.4 kB / 399.6 MB, free: 13.45 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.527e-05/0.1727, allocations: 51.44 kB / 399.7 MB, free: 13.4 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.016e-05/0.1727, allocations: 7.938 kB / 399.7 MB, free: 13.39 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001423/0.1729, allocations: 346.8 kB / 400 MB, free: 13.04 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001346/0.173, allocations: 55.97 kB / 400.1 MB, free: 12.99 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002175/0.1732, allocations: 179.4 kB / 400.3 MB, free: 12.76 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001748/0.1734, allocations: 75.83 kB / 400.3 MB, free: 12.68 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.48e-06/0.1734, allocations: 4 kB / 400.3 MB, free: 12.68 MB / 302.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004706/0.1739, allocations: 269.3 kB / 400.6 MB, free: 12.41 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.871e-05/0.1739, allocations: 11.92 kB / 400.6 MB, free: 12.4 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.616e-06/0.174, allocations: 4 kB / 400.6 MB, free: 12.39 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.716e-05/0.174, allocations: 4 kB / 400.6 MB, free: 12.39 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001422/0.1741, allocations: 43.86 kB / 400.7 MB, free: 12.35 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.122e-05/0.1741, allocations: 4 kB / 400.7 MB, free: 12.34 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000161/0.1743, allocations: 35.73 kB / 400.7 MB, free: 12.31 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.103e-05/0.1743, allocations: 8 kB / 400.7 MB, free: 12.3 MB / 302.1 MB Warning: Assuming fixed start value for the following 6 variables: equal.y:DISCRETE(flow=false 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(flow=false 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,reset.y,reset.combiTimeTable.nextTimeEvent,$PRE.reset.combiTimeTable.nextTimeEventScaled,reset.combiTimeTable.nextTimeEventScaled,set.y,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.0002497/0.1746, allocations: 193.4 kB / 400.9 MB, free: 12.1 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.219e-05/0.1747, allocations: 39.56 kB / 400.9 MB, free: 12.06 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.01e-05/0.1747, allocations: 35.28 kB / 401 MB, free: 12.02 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.669e-06/0.1748, allocations: 8 kB / 401 MB, free: 12.01 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.913e-06/0.1748, allocations: 0 / 401 MB, free: 12.01 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.719e-06/0.1748, allocations: 0 / 401 MB, free: 12.01 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003184/0.1751, allocations: 313.3 kB / 401.3 MB, free: 11.66 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.422e-06/0.1751, allocations: 0 / 401.3 MB, free: 11.66 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.199e-05/0.1752, allocations: 19.98 kB / 401.3 MB, free: 11.64 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.651e-06/0.1752, allocations: 3.953 kB / 401.3 MB, free: 11.63 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.106e-05/0.1752, allocations: 11.92 kB / 401.3 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.442e-06/0.1752, allocations: 0 / 401.3 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/0.1752, allocations: 3.984 kB / 401.3 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004849/0.1757, allocations: 288.6 kB / 401.6 MB, free: 11.32 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.729e-05/0.1758, allocations: 116.7 kB / 401.7 MB, free: 11.18 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.829e-05/0.1759, allocations: 4 kB / 401.7 MB, free: 11.18 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000146/0.176, allocations: 27.97 kB / 401.8 MB, free: 11.15 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.981e-05/0.1761, allocations: 15.98 kB / 401.8 MB, free: 11.14 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.317e-05/0.1762, allocations: 11.98 kB / 401.8 MB, free: 11.12 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002676/0.1764, allocations: 279.2 kB / 402.1 MB, free: 10.86 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.4e-07/0.1764, allocations: 0 / 402.1 MB, free: 10.86 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003723/0.1768, allocations: 71.91 kB / 402.1 MB, free: 10.79 MB / 302.1 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.Q,counter.Value,counter.CUd,counter.CDd,counter.Sd,set.y,set.combiTimeTable.nextTimeEvent,set.combiTimeTable.nextTimeEventScaled,reset.y,reset.combiTimeTable.nextTimeEvent,reset.combiTimeTable.nextTimeEventScaled,equal.y) * Number of discrete states: 8 (counter.Value,counter.Sd,counter.CUd,counter.CDd,reset.combiTimeTable.nextTimeEventScaled,set.combiTimeTable.nextTimeEventScaled,set.combiTimeTable.nextTimeEvent,reset.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 11 * 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.001857/0.1787, allocations: 1.169 MB / 403.3 MB, free: 9.699 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004519/0.1791, allocations: 184.1 kB / 403.5 MB, free: 9.52 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.1792, allocations: 0 / 403.5 MB, free: 9.52 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001923/0.1794, allocations: 95.84 kB / 403.6 MB, free: 9.426 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004089/0.1798, allocations: 65.55 kB / 403.6 MB, free: 9.355 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003556/0.1833, allocations: 3.541 MB / 407.2 MB, free: 5.711 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004188/0.1838, allocations: 0.7794 MB / 408 MB, free: 4.906 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001463/0.1839, allocations: 51.17 kB / 408 MB, free: 4.859 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000157/0.1841, allocations: 99.39 kB / 408.1 MB, free: 4.762 MB / 302.1 MB Notification: Performance of SimCode: time 3.2e-07/0.1841, allocations: 0 / 408.1 MB, free: 4.762 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02198/0.2061, allocations: 7.05 MB / 415.2 MB, free: 13.77 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002255/0.2064, allocations: 253.7 kB / 415.4 MB, free: 13.43 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.122/2.328, allocations: 64 / 415.4 MB, free: 13.43 MB / 318.1 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) Environment - environmentSimulation: