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.007162/0.007162, allocations: 101.7 kB / 15.73 MB, free: 5.59 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.001283/0.001283, allocations: 191.7 kB / 16.67 MB, free: 5.523 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.601/1.601, allocations: 205.1 MB / 222.5 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05793/0.05793, allocations: 10.73 MB / 280.6 MB, free: 1.297 MB / 222.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.001469/0.001469, allocations: 70.23 kB / 390.8 MB, free: 46.02 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1261/0.1275, allocations: 49.03 MB / 439.8 MB, free: 3.84 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing): time 0.004877/0.1325, allocations: 2.138 MB / 442 MB, free: 1.688 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002434/0.135, allocations: 1.244 MB / 443.2 MB, free: 448 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002159/0.1352, allocations: 7.938 kB / 443.2 MB, free: 440 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009994/0.1363, allocations: 259.2 kB / 443.5 MB, free: 180 kB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.0005542/0.1368, allocations: 199.3 kB / 443.7 MB, free: 15.98 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001162/0.138, allocations: 328.7 kB / 444 MB, free: 15.66 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006086/0.1386, allocations: 387 kB / 444.4 MB, free: 15.29 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002349/0.1389, allocations: 69.05 kB / 444.5 MB, free: 15.22 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004091/0.1393, allocations: 155.4 kB / 444.6 MB, free: 15.07 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003245/0.1396, allocations: 163.2 kB / 444.8 MB, free: 14.91 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.907e-05/0.1397, allocations: 20 kB / 444.8 MB, free: 14.89 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003286/0.14, allocations: 131.8 kB / 444.9 MB, free: 14.76 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001714/0.1402, allocations: 71.75 kB / 445 MB, free: 14.69 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002463/0.1405, allocations: 139.2 kB / 445.1 MB, free: 14.55 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007884/0.1413, allocations: 398.7 kB / 445.5 MB, free: 14.16 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.13e-06/0.1413, allocations: 0 / 445.5 MB, free: 14.16 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.1413, allocations: 0 / 445.5 MB, free: 14.16 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.734e-05/0.1413, allocations: 0 / 445.5 MB, free: 14.16 MB / 334.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.001978/0.1433, allocations: 0.6884 MB / 446.2 MB, free: 13.41 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.926e-05/0.1434, allocations: 11.89 kB / 446.2 MB, free: 13.4 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000171/0.1436, allocations: 40.55 kB / 446.2 MB, free: 13.36 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006076/0.1442, allocations: 327.9 kB / 446.6 MB, free: 13 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.686e-05/0.1442, allocations: 12.36 kB / 446.6 MB, free: 12.98 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.508e-05/0.1443, allocations: 19.88 kB / 446.6 MB, free: 12.96 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005515/0.1449, allocations: 196.1 kB / 446.8 MB, free: 12.76 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.464e-05/0.1449, allocations: 0 / 446.8 MB, free: 12.76 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.816e-05/0.1449, allocations: 8 kB / 446.8 MB, free: 12.75 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.691e-06/0.1449, allocations: 0 / 446.8 MB, free: 12.75 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002553/0.1452, allocations: 95.92 kB / 446.9 MB, free: 12.66 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001005/0.1462, allocations: 0.5313 MB / 447.4 MB, free: 12.07 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005572/0.1468, allocations: 162.8 kB / 447.6 MB, free: 11.91 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001614/0.147, allocations: 76.7 kB / 447.7 MB, free: 11.83 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.489e-05/0.147, allocations: 4 kB / 447.7 MB, free: 11.83 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003494/0.1474, allocations: 176.2 kB / 447.8 MB, free: 11.64 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 1.963e-06/0.1474, allocations: 4 kB / 447.8 MB, free: 11.64 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.0008448/0.1482, allocations: 322.2 kB / 448.2 MB, free: 11.32 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.799e-05/0.1483, allocations: 132.5 kB / 448.3 MB, free: 11.16 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004504/0.1488, allocations: 389.6 kB / 448.7 MB, free: 10.77 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.831e-05/0.1488, allocations: 33.7 kB / 448.7 MB, free: 10.73 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001223/0.1489, allocations: 168.4 kB / 448.9 MB, free: 10.56 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.077e-05/0.149, allocations: 55.34 kB / 448.9 MB, free: 10.5 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.739e-05/0.1491, allocations: 53.7 kB / 449 MB, free: 10.45 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000148/0.1493, allocations: 346.8 kB / 449.3 MB, free: 10.1 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001437/0.1494, allocations: 51.97 kB / 449.4 MB, free: 10.05 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002254/0.1496, allocations: 173.5 kB / 449.5 MB, free: 9.824 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004271/0.1501, allocations: 254.9 kB / 449.8 MB, free: 9.535 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.1501, allocations: 0 / 449.8 MB, free: 9.535 MB / 334.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005074/0.1506, allocations: 277 kB / 450 MB, free: 9.258 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.655e-05/0.1506, allocations: 4 kB / 450 MB, free: 9.254 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.326e-05/0.1506, allocations: 11.98 kB / 450.1 MB, free: 9.242 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.948e-05/0.1507, allocations: 7.938 kB / 450.1 MB, free: 9.234 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001487/0.1508, allocations: 39.92 kB / 450.1 MB, free: 9.195 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.802e-05/0.1509, allocations: 11.92 kB / 450.1 MB, free: 9.184 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001693/0.151, allocations: 28.17 kB / 450.1 MB, free: 9.156 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.005e-05/0.1511, allocations: 12 kB / 450.2 MB, free: 9.145 MB / 334.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.000252/0.1513, allocations: 181.2 kB / 450.3 MB, free: 8.957 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.713e-05/0.1514, allocations: 35.56 kB / 450.4 MB, free: 8.922 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.046e-05/0.1515, allocations: 39.28 kB / 450.4 MB, free: 8.887 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.6e-06/0.1515, allocations: 3.984 kB / 450.4 MB, free: 8.883 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.063e-06/0.1515, allocations: 0 / 450.4 MB, free: 8.883 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.579e-06/0.1515, allocations: 4 kB / 450.4 MB, free: 8.879 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003009/0.1518, allocations: 321.2 kB / 450.7 MB, free: 8.516 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.492e-06/0.1518, allocations: 0 / 450.7 MB, free: 8.516 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.482e-05/0.1519, allocations: 8 kB / 450.7 MB, free: 8.508 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.313e-06/0.1519, allocations: 7.984 kB / 450.7 MB, free: 8.5 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.9e-05/0.1519, allocations: 4 kB / 450.7 MB, free: 8.496 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.77e-06/0.152, allocations: 8 kB / 450.8 MB, free: 8.488 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.152, allocations: 4 kB / 450.8 MB, free: 8.484 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006733/0.1526, allocations: 287.5 kB / 451 MB, free: 8.188 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.254e-05/0.1527, allocations: 104.7 kB / 451.1 MB, free: 8.066 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.83e-05/0.1528, allocations: 8 kB / 451.1 MB, free: 8.059 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001806/0.153, allocations: 23.91 kB / 451.2 MB, free: 8.035 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.166e-05/0.1531, allocations: 15.98 kB / 451.2 MB, free: 8.02 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.074e-05/0.1531, allocations: 12 kB / 451.2 MB, free: 8.008 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004081/0.1536, allocations: 279.2 kB / 451.5 MB, free: 7.734 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1536, allocations: 0 / 451.5 MB, free: 7.734 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005111/0.1541, allocations: 75.98 kB / 451.5 MB, free: 7.66 MB / 334.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.001396/0.1555, allocations: 445.8 kB / 452 MB, free: 7.328 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005903/0.1561, allocations: 187.8 kB / 452.2 MB, free: 7.145 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.856e-06/0.1561, allocations: 0 / 452.2 MB, free: 7.145 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00026/0.1564, allocations: 87.91 kB / 452.3 MB, free: 7.059 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000577/0.157, allocations: 81.16 kB / 452.3 MB, free: 6.98 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001166/0.1582, allocations: 0.4984 MB / 452.8 MB, free: 6.449 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004869/0.1587, allocations: 0.7714 MB / 453.6 MB, free: 5.652 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001688/0.1588, allocations: 46.94 kB / 453.6 MB, free: 5.609 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.213e-05/0.1589, allocations: 27.44 kB / 453.7 MB, free: 5.582 MB / 334.1 MB Notification: Performance of SimCode: time 3.61e-07/0.159, allocations: 4 kB / 453.7 MB, free: 5.578 MB / 334.1 MB Notification: Performance of Templates: time 0.01299/0.172, allocations: 4.508 MB / 458.2 MB, free: 1.078 MB / 334.1 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing.makefile (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)