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.0009231/0.0009231, allocations: 93.06 kB / 19.65 MB, free: 280 kB / 13.93 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.0008879/0.0008879, allocations: 173 kB / 23.03 MB, free: 1.547 MB / 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.042/1.042, allocations: 177.2 MB / 203.4 MB, free: 5.652 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.03693/0.03693, allocations: 8.61 MB / 268.6 MB, free: 4.938 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 1.884e-06/1.884e-06, allocations: 0 / 340.9 MB, free: 8.422 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.577e-05/2.765e-05, allocations: 6.25 kB / 340.9 MB, free: 8.414 MB / 266.7 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing): time 0.00376/0.003788, allocations: 2.208 MB / 343.1 MB, free: 6.191 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002435/0.006223, allocations: 1.473 MB / 344.6 MB, free: 4.711 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001912/0.006414, allocations: 0 / 344.6 MB, free: 4.711 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000844/0.007258, allocations: 282.9 kB / 344.8 MB, free: 4.434 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005432/0.007801, allocations: 266.8 kB / 345.1 MB, free: 4.172 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007022/0.008503, allocations: 299.1 kB / 345.4 MB, free: 3.879 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004471/0.008951, allocations: 398.8 kB / 345.8 MB, free: 3.488 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001515/0.009102, allocations: 57.17 kB / 345.8 MB, free: 3.434 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003652/0.009467, allocations: 223.4 kB / 346.1 MB, free: 3.215 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001971/0.009664, allocations: 143.6 kB / 346.2 MB, free: 3.074 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.716e-05/0.009711, allocations: 24 kB / 346.2 MB, free: 3.051 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002441/0.009956, allocations: 135.8 kB / 346.3 MB, free: 2.918 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001041/0.01006, allocations: 83.67 kB / 346.4 MB, free: 2.836 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 9.54e-05/0.01016, allocations: 83.69 kB / 346.5 MB, free: 2.754 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004357/0.01059, allocations: 334.8 kB / 346.8 MB, free: 2.426 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.01059, allocations: 0 / 346.8 MB, free: 2.426 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.292e-06/0.0106, allocations: 0 / 346.8 MB, free: 2.426 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.054e-06/0.0106, allocations: 0 / 346.8 MB, free: 2.426 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.0008915/0.01149, allocations: 0.7359 MB / 347.6 MB, free: 1.641 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.192e-05/0.01154, allocations: 8.031 kB / 347.6 MB, free: 1.633 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002123/0.01175, allocations: 56.69 kB / 347.6 MB, free: 1.578 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003563/0.0121, allocations: 285.1 kB / 347.9 MB, free: 1.266 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.724e-05/0.01213, allocations: 12.38 kB / 347.9 MB, free: 1.254 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.821e-05/0.01216, allocations: 16.31 kB / 347.9 MB, free: 1.238 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002837/0.01244, allocations: 185.3 kB / 348.1 MB, free: 1.039 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.114e-05/0.01245, allocations: 4 kB / 348.1 MB, free: 1.035 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.211e-05/0.01248, allocations: 8 kB / 348.1 MB, free: 1.027 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.115e-05/0.01249, allocations: 4 kB / 348.1 MB, free: 1.023 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001247/0.01261, allocations: 47.89 kB / 348.2 MB, free: 0.9766 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006446/0.01326, allocations: 483.3 kB / 348.7 MB, free: 480 kB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003016/0.01356, allocations: 115.4 kB / 348.8 MB, free: 352 kB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.004e-05/0.01364, allocations: 43.61 kB / 348.8 MB, free: 304 kB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.546e-05/0.01365, allocations: 4 kB / 348.8 MB, free: 300 kB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002418/0.0139, allocations: 215.6 kB / 349 MB, free: 48 kB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 1.623e-06/0.0139, allocations: 0 / 349 MB, free: 48 kB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.00055/0.01445, allocations: 252.1 kB / 349.3 MB, free: 15.8 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.515e-05/0.0145, allocations: 81.11 kB / 349.4 MB, free: 15.7 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003909/0.01489, allocations: 382.7 kB / 349.7 MB, free: 15.3 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.9e-05/0.01492, allocations: 37.69 kB / 349.8 MB, free: 15.26 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000156/0.01508, allocations: 227.2 kB / 350 MB, free: 15.04 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.139e-05/0.01514, allocations: 51.62 kB / 350 MB, free: 14.98 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.971e-05/0.01523, allocations: 63.34 kB / 350.1 MB, free: 14.91 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001803/0.01541, allocations: 0.5196 MB / 350.6 MB, free: 14.38 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.326e-05/0.01548, allocations: 23.98 kB / 350.6 MB, free: 14.36 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001891/0.01567, allocations: 256.3 kB / 350.9 MB, free: 14.02 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002804/0.01595, allocations: 223.7 kB / 351.1 MB, free: 13.75 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.969e-06/0.01596, allocations: 0 / 351.1 MB, free: 13.75 MB / 282.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003744/0.01633, allocations: 221.1 kB / 351.3 MB, free: 13.53 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.828e-05/0.01635, allocations: 8 kB / 351.3 MB, free: 13.52 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.153e-06/0.01636, allocations: 3.938 kB / 351.3 MB, free: 13.52 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.989e-05/0.01638, allocations: 11.94 kB / 351.3 MB, free: 13.5 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001277/0.01651, allocations: 35.92 kB / 351.4 MB, free: 13.47 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.057e-06/0.01651, allocations: 4.344 kB / 351.4 MB, free: 13.46 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001317/0.01665, allocations: 31.88 kB / 351.4 MB, free: 13.43 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.96e-05/0.01667, allocations: 8 kB / 351.4 MB, free: 13.43 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.0001902/0.01686, allocations: 204.3 kB / 351.6 MB, free: 13.22 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.655e-05/0.01691, allocations: 39.77 kB / 351.7 MB, free: 13.18 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003983/0.01731, allocations: 235.3 kB / 351.9 MB, free: 12.95 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.055e-06/0.01731, allocations: 0 / 351.9 MB, free: 12.95 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.496e-06/0.01732, allocations: 0 / 351.9 MB, free: 12.95 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.881e-06/0.01732, allocations: 3.984 kB / 351.9 MB, free: 12.94 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000253/0.01758, allocations: 240.4 kB / 352.1 MB, free: 12.67 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.023e-06/0.01758, allocations: 0 / 352.1 MB, free: 12.67 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.978e-05/0.01764, allocations: 16.03 kB / 352.2 MB, free: 12.66 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.973e-06/0.01765, allocations: 7.922 kB / 352.2 MB, free: 12.65 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.194e-05/0.01767, allocations: 11.98 kB / 352.2 MB, free: 12.64 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.923e-06/0.01767, allocations: 0 / 352.2 MB, free: 12.64 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.01767, allocations: 4 kB / 352.2 MB, free: 12.63 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003765/0.01805, allocations: 271.9 kB / 352.4 MB, free: 12.34 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.195e-05/0.01809, allocations: 27.81 kB / 352.5 MB, free: 12.32 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.549e-05/0.01813, allocations: 4 kB / 352.5 MB, free: 12.31 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.781e-05/0.01823, allocations: 19.97 kB / 352.5 MB, free: 12.29 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.35e-05/0.0183, allocations: 19.97 kB / 352.5 MB, free: 12.27 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.408e-05/0.01832, allocations: 8 kB / 352.5 MB, free: 12.27 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002327/0.01855, allocations: 259.1 kB / 352.8 MB, free: 12.02 MB / 282.7 MB Notification: Performance of sort global known variables: time 9e-08/0.01855, allocations: 0 / 352.8 MB, free: 12.02 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.00037/0.01892, allocations: 83.81 kB / 352.9 MB, free: 11.93 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.001185/0.02011, allocations: 436.7 kB / 353.3 MB, free: 11.64 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0002991/0.02041, allocations: 135.5 kB / 353.4 MB, free: 11.51 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.469e-06/0.02041, allocations: 4 kB / 353.4 MB, free: 11.5 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001256/0.02054, allocations: 64.41 kB / 353.5 MB, free: 11.44 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003989/0.02094, allocations: 87.47 kB / 353.6 MB, free: 11.36 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00104/0.02198, allocations: 487 kB / 354 MB, free: 10.86 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.154e-05/0.02207, allocations: 104.2 kB / 354.1 MB, free: 10.73 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001318/0.0222, allocations: 38.95 kB / 354.2 MB, free: 10.7 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.546e-05/0.02228, allocations: 40.42 kB / 354.2 MB, free: 10.66 MB / 282.7 MB Notification: Performance of SimCode: time 6.91e-07/0.02229, allocations: 0 / 354.2 MB, free: 10.66 MB / 282.7 MB Notification: Performance of Templates: time 0.008478/0.03076, allocations: 4.982 MB / 359.2 MB, free: 5.738 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.185208504088223]