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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001368/0.001368, allocations: 77.95 kB / 20.66 MB, free: 3.832 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001655/0.001655, allocations: 165 kB / 24.05 MB, free: 452 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.035/1.035, allocations: 177.1 MB / 204.5 MB, free: 5.484 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo): time 0.03687/0.03687, allocations: 8.606 MB / 269.6 MB, free: 4.742 MB / 250.7 MB " [Timeout remaining time 180] Using package IndustrialControlSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing") translateModel(IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 8.32e-07/8.32e-07, allocations: 0 / 342.1 MB, free: 8.109 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.904e-05/1.987e-05, allocations: 10.19 kB / 342.1 MB, free: 8.098 MB / 266.7 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing): time 0.002274/0.002293, allocations: 2.181 MB / 344.3 MB, free: 5.902 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001753/0.004046, allocations: 1.449 MB / 345.7 MB, free: 4.445 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001598/0.004206, allocations: 7.938 kB / 345.7 MB, free: 4.438 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005944/0.0048, allocations: 286.9 kB / 346 MB, free: 4.156 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000469/0.005269, allocations: 258.8 kB / 346.3 MB, free: 3.902 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005253/0.005794, allocations: 299.1 kB / 346.6 MB, free: 3.609 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002905/0.006085, allocations: 410.8 kB / 347 MB, free: 3.207 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001056/0.00619, allocations: 45.27 kB / 347 MB, free: 3.164 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002273/0.006418, allocations: 239.3 kB / 347.3 MB, free: 2.93 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001225/0.00654, allocations: 135.6 kB / 347.4 MB, free: 2.797 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.628e-05/0.006567, allocations: 20 kB / 347.4 MB, free: 2.777 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001654/0.006732, allocations: 135.8 kB / 347.5 MB, free: 2.645 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.698e-05/0.006799, allocations: 87.66 kB / 347.6 MB, free: 2.559 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 5.548e-05/0.006854, allocations: 83.7 kB / 347.7 MB, free: 2.477 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002918/0.007146, allocations: 330.7 kB / 348 MB, free: 2.152 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.585e-06/0.007149, allocations: 4 kB / 348 MB, free: 2.148 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.243e-06/0.00715, allocations: 0 / 348 MB, free: 2.148 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.298e-06/0.007154, allocations: 0 / 348 MB, free: 2.148 MB / 266.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.000546/0.0077, allocations: 0.7359 MB / 348.8 MB, free: 1.363 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.854e-05/0.007729, allocations: 8.031 kB / 348.8 MB, free: 1.355 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001336/0.007862, allocations: 56.69 kB / 348.8 MB, free: 1.301 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002615/0.008124, allocations: 285.2 kB / 349.1 MB, free: 0.9883 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.056e-05/0.008144, allocations: 8.375 kB / 349.1 MB, free: 0.9805 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.611e-05/0.008161, allocations: 20.31 kB / 349.1 MB, free: 0.9609 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001522/0.008313, allocations: 173.3 kB / 349.3 MB, free: 0.7734 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.725e-06/0.00832, allocations: 4 kB / 349.3 MB, free: 0.7695 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.203e-05/0.008332, allocations: 4 kB / 349.3 MB, free: 0.7656 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.072e-06/0.008339, allocations: 7.938 kB / 349.3 MB, free: 0.7578 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.435e-05/0.008393, allocations: 35.95 kB / 349.4 MB, free: 0.7227 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003671/0.00876, allocations: 427.9 kB / 349.8 MB, free: 284 kB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001672/0.008927, allocations: 107.1 kB / 349.9 MB, free: 164 kB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.622e-05/0.008973, allocations: 43.89 kB / 349.9 MB, free: 116 kB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.181e-05/0.008985, allocations: 0 / 349.9 MB, free: 116 kB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001898/0.009175, allocations: 214.3 kB / 350.1 MB, free: 15.87 MB / 282.7 MB Notification: Performance of pre-optimization done (n=21): time 1.112e-06/0.009176, allocations: 0 / 350.1 MB, free: 15.87 MB / 282.7 MB Notification: Performance of matching and sorting (n=21): time 0.0003154/0.009491, allocations: 225.3 kB / 350.3 MB, free: 15.64 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.172e-05/0.009543, allocations: 89.05 kB / 350.4 MB, free: 15.54 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002437/0.009787, allocations: 374.5 kB / 350.8 MB, free: 15.15 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.225e-05/0.009809, allocations: 33.7 kB / 350.8 MB, free: 15.11 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001147/0.009924, allocations: 235.1 kB / 351.1 MB, free: 14.88 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.443e-05/0.009968, allocations: 55.61 kB / 351.1 MB, free: 14.82 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.644e-05/0.01002, allocations: 59.33 kB / 351.2 MB, free: 14.76 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001421/0.01017, allocations: 0.5234 MB / 351.7 MB, free: 14.22 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.291e-05/0.0102, allocations: 23.97 kB / 351.7 MB, free: 14.2 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001289/0.01033, allocations: 240.3 kB / 352 MB, free: 13.88 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001748/0.0105, allocations: 215.6 kB / 352.2 MB, free: 13.61 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/0.01051, allocations: 0 / 352.2 MB, free: 13.61 MB / 282.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0002135/0.01072, allocations: 209.2 kB / 352.4 MB, free: 13.4 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.378e-05/0.01073, allocations: 4 kB / 352.4 MB, free: 13.4 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.893e-06/0.01074, allocations: 4 kB / 352.4 MB, free: 13.39 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.036e-05/0.01075, allocations: 4 kB / 352.4 MB, free: 13.39 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.979e-05/0.01084, allocations: 47.84 kB / 352.4 MB, free: 13.34 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.49e-06/0.01085, allocations: 8.281 kB / 352.4 MB, free: 13.34 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.185e-05/0.01093, allocations: 35.81 kB / 352.5 MB, free: 13.3 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.108e-05/0.01094, allocations: 4 kB / 352.5 MB, free: 13.3 MB / 282.7 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.000152/0.01109, allocations: 196.4 kB / 352.7 MB, free: 13.1 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.064e-05/0.01113, allocations: 47.75 kB / 352.7 MB, free: 13.05 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002511/0.01138, allocations: 213.7 kB / 352.9 MB, free: 12.84 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.569e-06/0.01139, allocations: 4 kB / 352.9 MB, free: 12.83 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.763e-06/0.01139, allocations: 0 / 352.9 MB, free: 12.83 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/0.01139, allocations: 0 / 352.9 MB, free: 12.83 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001779/0.01157, allocations: 193 kB / 353.1 MB, free: 12.62 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.814e-06/0.01157, allocations: 0 / 353.1 MB, free: 12.62 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.485e-05/0.01162, allocations: 19.92 kB / 353.1 MB, free: 12.6 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.515e-06/0.01162, allocations: 0 / 353.1 MB, free: 12.6 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.196e-05/0.01163, allocations: 8 kB / 353.1 MB, free: 12.59 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.1e-06/0.01164, allocations: 7.922 kB / 353.2 MB, free: 12.58 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.01164, allocations: 8 kB / 353.2 MB, free: 12.57 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002531/0.01189, allocations: 258.4 kB / 353.4 MB, free: 12.3 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.119e-05/0.01192, allocations: 27.81 kB / 353.4 MB, free: 12.28 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.958e-05/0.01195, allocations: 4 kB / 353.4 MB, free: 12.27 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.124e-05/0.01201, allocations: 19.97 kB / 353.5 MB, free: 12.25 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.563e-05/0.01206, allocations: 15.97 kB / 353.5 MB, free: 12.24 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.723e-05/0.01208, allocations: 12 kB / 353.5 MB, free: 12.23 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001364/0.01221, allocations: 251 kB / 353.7 MB, free: 11.98 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01221, allocations: 0 / 353.7 MB, free: 11.98 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.00024/0.01245, allocations: 79.83 kB / 353.8 MB, free: 11.91 MB / 282.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.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,set.combiTimeTable.nextTimeEvent,reset.combiTimeTable.nextTimeEvent,set.combiTimeTable.nextTimeEventScaled,reset.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * 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 (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.0008537/0.01331, allocations: 434.7 kB / 354.2 MB, free: 11.62 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001779/0.01349, allocations: 123.6 kB / 354.4 MB, free: 11.49 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.01349, allocations: 0 / 354.4 MB, free: 11.49 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 7.006e-05/0.01356, allocations: 71.56 kB / 354.4 MB, free: 11.42 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005609/0.01412, allocations: 76.94 kB / 354.5 MB, free: 11.35 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007571/0.01487, allocations: 482.4 kB / 355 MB, free: 10.85 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.594e-05/0.01495, allocations: 104.2 kB / 355.1 MB, free: 10.73 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 9.614e-05/0.01505, allocations: 34.95 kB / 355.1 MB, free: 10.69 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001569/0.0152, allocations: 138.2 kB / 355.2 MB, free: 10.55 MB / 282.7 MB Notification: Performance of SimCode: time 8.22e-07/0.0152, allocations: 0 / 355.2 MB, free: 10.55 MB / 282.7 MB Notification: Performance of Templates: time 0.007538/0.02274, allocations: 5.158 MB / 360.4 MB, free: 5.469 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing.makefile [Timeout 660] (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=240 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.015191338956356]