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.00144/0.00144, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001551/0.001551, allocations: 195.9 kB / 16.14 MB, free: 6.711 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.588/1.588, allocations: 205.1 MB / 222 MB, free: 4.805 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05394/0.05394, allocations: 10.74 MB / 280.1 MB, free: 10.71 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.001273/0.001273, allocations: 63.91 kB / 339.8 MB, free: 23.78 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1198/0.1211, allocations: 49.03 MB / 388.9 MB, free: 6.695 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing): time 0.0039/0.125, allocations: 2.181 MB / 391.1 MB, free: 4.496 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002057/0.1271, allocations: 1.24 MB / 392.3 MB, free: 3.246 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001328/0.1273, allocations: 7.938 kB / 392.3 MB, free: 3.238 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007686/0.128, allocations: 251.4 kB / 392.6 MB, free: 2.992 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003648/0.1284, allocations: 179.4 kB / 392.7 MB, free: 2.816 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007428/0.1292, allocations: 295.5 kB / 393 MB, free: 2.527 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003702/0.1296, allocations: 374.9 kB / 393.4 MB, free: 2.16 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001573/0.1297, allocations: 65.12 kB / 393.4 MB, free: 2.098 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002031/0.1299, allocations: 139.4 kB / 393.6 MB, free: 1.961 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001779/0.1301, allocations: 151.2 kB / 393.7 MB, free: 1.812 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.592e-05/0.1302, allocations: 8 kB / 393.7 MB, free: 1.805 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002126/0.1304, allocations: 107.9 kB / 393.8 MB, free: 1.699 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.509e-05/0.1305, allocations: 71.73 kB / 393.9 MB, free: 1.629 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001188/0.1306, allocations: 119.2 kB / 394 MB, free: 1.512 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004372/0.1311, allocations: 383.1 kB / 394.4 MB, free: 1.137 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.1311, allocations: 0 / 394.4 MB, free: 1.137 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.866e-06/0.1311, allocations: 0 / 394.4 MB, free: 1.137 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.47e-06/0.1311, allocations: 7.938 kB / 394.4 MB, free: 1.129 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.001154/0.1322, allocations: 0.6763 MB / 395.1 MB, free: 404 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.167e-05/0.1323, allocations: 12.03 kB / 395.1 MB, free: 392 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.972e-05/0.1324, allocations: 36.47 kB / 395.1 MB, free: 356 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004364/0.1328, allocations: 335.9 kB / 395.5 MB, free: 15.98 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.259e-05/0.1329, allocations: 12.38 kB / 395.5 MB, free: 15.97 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.851e-05/0.1329, allocations: 19.94 kB / 395.5 MB, free: 15.95 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003898/0.1333, allocations: 196 kB / 395.7 MB, free: 15.74 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.808e-06/0.1333, allocations: 0 / 395.7 MB, free: 15.74 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.688e-05/0.1334, allocations: 11.98 kB / 395.7 MB, free: 15.73 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.901e-06/0.1334, allocations: 0 / 395.7 MB, free: 15.73 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002494/0.1336, allocations: 95.94 kB / 395.8 MB, free: 15.64 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008299/0.1345, allocations: 0.5274 MB / 396.3 MB, free: 15.06 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004714/0.1349, allocations: 162.6 kB / 396.5 MB, free: 14.89 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000158/0.1351, allocations: 72.94 kB / 396.6 MB, free: 14.82 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.914e-05/0.1351, allocations: 4 kB / 396.6 MB, free: 14.81 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003385/0.1355, allocations: 180.9 kB / 396.7 MB, free: 14.62 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.422e-06/0.1355, allocations: 0 / 396.7 MB, free: 14.62 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.0006982/0.1362, allocations: 310.8 kB / 397 MB, free: 14.31 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.669e-05/0.1363, allocations: 140.5 kB / 397.2 MB, free: 14.14 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004004/0.1367, allocations: 385.6 kB / 397.5 MB, free: 13.75 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.611e-05/0.1367, allocations: 37.7 kB / 397.6 MB, free: 13.71 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001177/0.1369, allocations: 164.5 kB / 397.7 MB, free: 13.55 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.993e-05/0.1369, allocations: 55.28 kB / 397.8 MB, free: 13.49 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.815e-05/0.137, allocations: 53.69 kB / 397.9 MB, free: 13.43 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001309/0.1372, allocations: 350.7 kB / 398.2 MB, free: 13.08 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001508/0.1373, allocations: 60.17 kB / 398.3 MB, free: 13.02 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002206/0.1375, allocations: 175.3 kB / 398.4 MB, free: 12.8 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000409/0.138, allocations: 258.9 kB / 398.7 MB, free: 12.5 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.138, allocations: 3.938 kB / 398.7 MB, free: 12.5 MB / 302.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004807/0.1385, allocations: 268.9 kB / 398.9 MB, free: 12.23 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.717e-05/0.1385, allocations: 8 kB / 399 MB, free: 12.22 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.484e-06/0.1385, allocations: 3.984 kB / 399 MB, free: 12.22 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.512e-05/0.1385, allocations: 8.344 kB / 399 MB, free: 12.21 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001386/0.1387, allocations: 39.92 kB / 399 MB, free: 12.17 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.256e-06/0.1387, allocations: 4 kB / 399 MB, free: 12.17 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001595/0.1388, allocations: 31.73 kB / 399 MB, free: 12.14 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.985e-05/0.1389, allocations: 12 kB / 399.1 MB, free: 12.12 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.0002211/0.1391, allocations: 189.4 kB / 399.2 MB, free: 11.93 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.204e-05/0.1392, allocations: 35.56 kB / 399.3 MB, free: 11.9 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.206e-05/0.1392, allocations: 39.22 kB / 399.3 MB, free: 11.85 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.579e-06/0.1393, allocations: 4 kB / 399.3 MB, free: 11.85 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.1393, allocations: 3.938 kB / 399.3 MB, free: 11.84 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-06/0.1393, allocations: 0 / 399.3 MB, free: 11.84 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002978/0.1396, allocations: 313.3 kB / 399.6 MB, free: 11.49 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.223e-06/0.1396, allocations: 0 / 399.6 MB, free: 11.49 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.112e-05/0.1397, allocations: 19.98 kB / 399.6 MB, free: 11.47 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.1397, allocations: 4 kB / 399.6 MB, free: 11.46 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.926e-05/0.1397, allocations: 7.984 kB / 399.7 MB, free: 11.46 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.1397, allocations: 0 / 399.7 MB, free: 11.46 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.1397, allocations: 0 / 399.7 MB, free: 11.46 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005026/0.1402, allocations: 284.5 kB / 399.9 MB, free: 11.16 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.257e-05/0.1403, allocations: 112.7 kB / 400 MB, free: 11.03 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.003e-05/0.1404, allocations: 7.984 kB / 400 MB, free: 11.02 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001541/0.1405, allocations: 23.92 kB / 400.1 MB, free: 11 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.045e-05/0.1406, allocations: 19.97 kB / 400.1 MB, free: 10.98 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.373e-05/0.1406, allocations: 4 kB / 400.1 MB, free: 10.98 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002891/0.1409, allocations: 283.1 kB / 400.4 MB, free: 10.71 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1409, allocations: 0 / 400.4 MB, free: 10.71 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003318/0.1413, allocations: 75.98 kB / 400.4 MB, free: 10.63 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.001038/0.1423, allocations: 459.7 kB / 400.9 MB, free: 10.29 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004311/0.1428, allocations: 183.7 kB / 401.1 MB, free: 10.11 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.1428, allocations: 0 / 401.1 MB, free: 10.11 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001984/0.143, allocations: 92.58 kB / 401.2 MB, free: 10.02 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004338/0.1434, allocations: 81.27 kB / 401.2 MB, free: 9.93 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000851/0.1443, allocations: 0.5656 MB / 401.8 MB, free: 9.344 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003542/0.1447, allocations: 0.7677 MB / 402.6 MB, free: 8.551 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001311/0.1448, allocations: 46.95 kB / 402.6 MB, free: 8.504 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.526e-05/0.1449, allocations: 27.42 kB / 402.7 MB, free: 8.48 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1449, allocations: 4 kB / 402.7 MB, free: 8.477 MB / 302.1 MB Notification: Performance of Templates: time 0.008132/0.153, allocations: 4.226 MB / 406.9 MB, free: 4.25 MB / 302.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)