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: 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009635/0.0009635, allocations: 91.84 kB / 15.36 MB, free: 0.7344 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.005231/0.005231, allocations: 168.9 kB / 16.26 MB, free: 6.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.645/1.645, allocations: 205.4 MB / 222.5 MB, free: 5.789 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.0557/0.0557, allocations: 10.75 MB / 281.5 MB, free: 10.68 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.0005465/0.0005465, allocations: 12.22 kB / 342.2 MB, free: 23.51 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1253/0.1258, allocations: 49.99 MB / 392.2 MB, free: 5.449 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing): time 0.00321/0.1291, allocations: 1.843 MB / 394.1 MB, free: 3.594 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002281/0.1314, allocations: 1.205 MB / 395.3 MB, free: 2.379 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001425/0.1316, allocations: 4 kB / 395.3 MB, free: 2.375 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008962/0.1325, allocations: 259.3 kB / 395.5 MB, free: 2.121 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004124/0.1329, allocations: 179.4 kB / 395.7 MB, free: 1.945 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008052/0.1338, allocations: 283.5 kB / 396 MB, free: 1.668 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004327/0.1342, allocations: 382.9 kB / 396.4 MB, free: 1.293 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002033/0.1344, allocations: 65.14 kB / 396.4 MB, free: 1.23 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002226/0.1346, allocations: 127.3 kB / 396.6 MB, free: 1.105 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001973/0.1348, allocations: 135.4 kB / 396.7 MB, free: 0.9727 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.239e-05/0.1349, allocations: 8 kB / 396.7 MB, free: 0.9648 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000207/0.1351, allocations: 111.8 kB / 396.8 MB, free: 0.8555 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001059/0.1352, allocations: 63.75 kB / 396.9 MB, free: 0.793 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001446/0.1354, allocations: 148.8 kB / 397 MB, free: 0.6406 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004761/0.1359, allocations: 375 kB / 397.4 MB, free: 280 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.09e-06/0.1359, allocations: 0 / 397.4 MB, free: 280 kB / 286.1 MB Notification: Performance of FrontEnd: time 2.695e-06/0.1359, allocations: 0 / 397.4 MB, free: 280 kB / 286.1 MB Notification: Performance of Transformations before backend: time 7.263e-06/0.1359, allocations: 4 kB / 397.4 MB, free: 276 kB / 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.00115/0.137, allocations: 0.6335 MB / 398 MB, free: 15.58 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.814e-05/0.1371, allocations: 12.03 kB / 398 MB, free: 15.57 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.327e-05/0.1372, allocations: 40.45 kB / 398.1 MB, free: 15.53 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004406/0.1376, allocations: 320 kB / 398.4 MB, free: 15.18 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.858e-05/0.1377, allocations: 12.38 kB / 398.4 MB, free: 15.16 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.128e-05/0.1377, allocations: 23.86 kB / 398.4 MB, free: 15.14 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004202/0.1382, allocations: 208.1 kB / 398.6 MB, free: 14.92 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.138e-05/0.1382, allocations: 0 / 398.6 MB, free: 14.92 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.555e-05/0.1382, allocations: 4 kB / 398.6 MB, free: 14.92 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.386e-06/0.1382, allocations: 4 kB / 398.6 MB, free: 14.91 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002506/0.1385, allocations: 91.94 kB / 398.7 MB, free: 14.82 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009426/0.1394, allocations: 0.543 MB / 399.3 MB, free: 14.23 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004848/0.1399, allocations: 162.9 kB / 399.4 MB, free: 14.06 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000169/0.1401, allocations: 76.75 kB / 399.5 MB, free: 13.98 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.185e-05/0.1402, allocations: 0 / 399.5 MB, free: 13.98 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003317/0.1405, allocations: 177 kB / 399.7 MB, free: 13.79 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.654e-06/0.1405, allocations: 0 / 399.7 MB, free: 13.79 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.0007005/0.1412, allocations: 325.7 kB / 400 MB, free: 13.47 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.5e-05/0.1413, allocations: 140.4 kB / 400.1 MB, free: 13.3 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004271/0.1418, allocations: 385.6 kB / 400.5 MB, free: 12.91 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.713e-05/0.1418, allocations: 33.7 kB / 400.5 MB, free: 12.88 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001341/0.1419, allocations: 160.5 kB / 400.7 MB, free: 12.71 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.151e-05/0.142, allocations: 63.27 kB / 400.8 MB, free: 12.65 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.015e-05/0.1421, allocations: 33.7 kB / 400.8 MB, free: 12.61 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001288/0.1422, allocations: 346.8 kB / 401.1 MB, free: 12.27 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001475/0.1424, allocations: 60.23 kB / 401.2 MB, free: 12.21 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000245/0.1426, allocations: 183.3 kB / 401.4 MB, free: 11.97 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000478/0.1431, allocations: 258.8 kB / 401.6 MB, free: 11.68 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.836e-06/0.1431, allocations: 0 / 401.6 MB, free: 11.68 MB / 302.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005173/0.1436, allocations: 277 kB / 401.9 MB, free: 11.4 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.389e-05/0.1437, allocations: 6.812 kB / 401.9 MB, free: 11.4 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.507e-05/0.1437, allocations: 7.984 kB / 401.9 MB, free: 11.39 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.192e-05/0.1437, allocations: 4 kB / 401.9 MB, free: 11.39 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001507/0.1439, allocations: 43.91 kB / 401.9 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.414e-05/0.1439, allocations: 7.938 kB / 402 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001575/0.1441, allocations: 43.98 kB / 402 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.91e-05/0.1441, allocations: 8 kB / 402 MB, free: 11.29 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,$PRE.reset.combiTimeTable.nextTimeEvent,$whenCondition3,$PRE.set.combiTimeTable.nextTimeEvent,$whenCondition2,$whenCondition1,reset.combiTimeTable.nextTimeEventScaled,$PRE.reset.combiTimeTable.nextTimeEventScaled,reset.combiTimeTable.nextTimeEvent,reset.y,set.combiTimeTable.nextTimeEventScaled,$PRE.set.combiTimeTable.nextTimeEventScaled,set.combiTimeTable.nextTimeEvent,set.y) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002871/0.1444, allocations: 177.3 kB / 402.2 MB, free: 11.11 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.283e-05/0.1445, allocations: 43.55 kB / 402.2 MB, free: 11.06 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.616e-05/0.1446, allocations: 35.28 kB / 402.3 MB, free: 11.02 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.575e-06/0.1446, allocations: 0 / 402.3 MB, free: 11.02 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.436e-06/0.1446, allocations: 0 / 402.3 MB, free: 11.02 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.398e-06/0.1446, allocations: 0 / 402.3 MB, free: 11.02 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003394/0.1449, allocations: 321.3 kB / 402.6 MB, free: 10.66 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.145, allocations: 0 / 402.6 MB, free: 10.66 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.529e-05/0.145, allocations: 12.11 kB / 402.6 MB, free: 10.64 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.208e-06/0.145, allocations: 4 kB / 402.6 MB, free: 10.64 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.928e-05/0.1451, allocations: 12 kB / 402.6 MB, free: 10.63 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.346e-06/0.1451, allocations: 4 kB / 402.6 MB, free: 10.62 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.436e-06/0.1451, allocations: 3.984 kB / 402.6 MB, free: 10.62 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005121/0.1456, allocations: 288.5 kB / 402.9 MB, free: 10.32 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.336e-05/0.1457, allocations: 112.7 kB / 403 MB, free: 10.19 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.833e-05/0.1457, allocations: 8 kB / 403 MB, free: 10.18 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001428/0.1459, allocations: 35.91 kB / 403 MB, free: 10.15 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.634e-05/0.146, allocations: 7.984 kB / 403 MB, free: 10.14 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.833e-05/0.146, allocations: 15.98 kB / 403.1 MB, free: 10.12 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002782/0.1463, allocations: 275.2 kB / 403.3 MB, free: 9.863 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1463, allocations: 0 / 403.3 MB, free: 9.863 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003504/0.1466, allocations: 79.89 kB / 403.4 MB, free: 9.785 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001131/0.1478, allocations: 463.4 kB / 403.9 MB, free: 9.43 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004483/0.1482, allocations: 191.7 kB / 404 MB, free: 9.242 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.038e-06/0.1483, allocations: 0.6875 kB / 404 MB, free: 9.242 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002281/0.1485, allocations: 91.91 kB / 404.1 MB, free: 9.152 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005399/0.1491, allocations: 77.25 kB / 404.2 MB, free: 9.07 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009413/0.15, allocations: 0.5659 MB / 404.8 MB, free: 8.48 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003865/0.1504, allocations: 0.7716 MB / 405.6 MB, free: 7.684 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001361/0.1505, allocations: 50.92 kB / 405.6 MB, free: 7.633 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.334e-05/0.1506, allocations: 31.44 kB / 405.6 MB, free: 7.605 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1506, allocations: 4 kB / 405.6 MB, free: 7.602 MB / 302.1 MB Notification: Performance of Templates: time 0.008718/0.1593, allocations: 4.179 MB / 409.8 MB, free: 3.422 MB / 302.1 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: