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.001264/0.001264, allocations: 80.88 kB / 19.94 MB, free: 4.551 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.001539/0.001539, allocations: 177 kB / 23.36 MB, free: 1.137 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 0.9269/0.9269, allocations: 177.1 MB / 203.8 MB, free: 5.445 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.03671/0.03671, allocations: 8.625 MB / 268.9 MB, free: 4.766 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.342e-06/1.342e-06, allocations: 0 / 288.1 MB, free: 1.547 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.186e-05/1.321e-05, allocations: 10.25 kB / 288.1 MB, free: 1.535 MB / 266.7 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing): time 0.1136/0.1136, allocations: 2.232 MB / 290.3 MB, free: 19.19 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001615/0.1153, allocations: 1.49 MB / 291.8 MB, free: 18.64 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001072/0.1154, allocations: 1.312 kB / 291.8 MB, free: 18.64 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005913/0.116, allocations: 282.8 kB / 292.1 MB, free: 18.59 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003513/0.1163, allocations: 253.2 kB / 292.3 MB, free: 18.51 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004369/0.1167, allocations: 298.6 kB / 292.6 MB, free: 18.36 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003142/0.1171, allocations: 403.2 kB / 293 MB, free: 18.17 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001065/0.1172, allocations: 47.38 kB / 293.1 MB, free: 18.15 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002528/0.1174, allocations: 226.5 kB / 293.3 MB, free: 18.05 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001485/0.1176, allocations: 133.6 kB / 293.4 MB, free: 18.01 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.028e-05/0.1176, allocations: 21.44 kB / 293.5 MB, free: 18.01 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001996/0.1178, allocations: 154.7 kB / 293.6 MB, free: 17.97 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 7.539e-05/0.1179, allocations: 84.83 kB / 293.7 MB, free: 17.92 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 6.34e-05/0.1179, allocations: 78.8 kB / 293.8 MB, free: 17.88 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003104/0.1182, allocations: 335.5 kB / 294.1 MB, free: 17.73 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.965e-06/0.1182, allocations: 0 / 294.1 MB, free: 17.73 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.062e-06/0.1182, allocations: 1.125 kB / 294.1 MB, free: 17.73 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.228e-06/0.1182, allocations: 0 / 294.1 MB, free: 17.73 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.0005237/0.1188, allocations: 0.6036 MB / 294.7 MB, free: 17.23 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.887e-05/0.1188, allocations: 10.89 kB / 294.7 MB, free: 17.23 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001308/0.1189, allocations: 45.02 kB / 294.7 MB, free: 17.23 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002284/0.1192, allocations: 251 kB / 295 MB, free: 17.02 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.579e-05/0.1192, allocations: 12.53 kB / 295 MB, free: 17.02 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.613e-05/0.1192, allocations: 10.98 kB / 295 MB, free: 17.02 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000163/0.1194, allocations: 177.5 kB / 295.2 MB, free: 16.9 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.993e-06/0.1194, allocations: 0.7031 kB / 295.2 MB, free: 16.9 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.19e-05/0.1194, allocations: 7.266 kB / 295.2 MB, free: 16.9 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.44e-06/0.1194, allocations: 2.531 kB / 295.2 MB, free: 16.9 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.713e-05/0.1194, allocations: 30.88 kB / 295.2 MB, free: 16.9 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003421/0.1198, allocations: 303.1 kB / 295.5 MB, free: 16.68 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001709/0.12, allocations: 137.5 kB / 295.7 MB, free: 16.61 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.744e-05/0.12, allocations: 28.97 kB / 295.7 MB, free: 16.59 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.11e-05/0.12, allocations: 2.312 kB / 295.7 MB, free: 16.59 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001571/0.1202, allocations: 196 kB / 295.9 MB, free: 16.45 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 1.112e-06/0.1202, allocations: 1.188 kB / 295.9 MB, free: 16.45 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.0001966/0.1204, allocations: 141.1 kB / 296 MB, free: 16.4 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.407e-05/0.1204, allocations: 88.97 kB / 296.1 MB, free: 16.3 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001949/0.1206, allocations: 321.2 kB / 296.4 MB, free: 16.12 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.471e-05/0.1206, allocations: 33.23 kB / 296.5 MB, free: 16.08 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.435e-05/0.1206, allocations: 129.6 kB / 296.6 MB, free: 15.98 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.295e-05/0.1207, allocations: 61.78 kB / 296.6 MB, free: 15.93 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.945e-05/0.1207, allocations: 51.19 kB / 296.7 MB, free: 15.9 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 4.268e-05/0.1208, allocations: 359.5 kB / 297 MB, free: 15.56 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.093e-05/0.1208, allocations: 24.02 kB / 297.1 MB, free: 15.55 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.732e-05/0.1209, allocations: 203.7 kB / 297.3 MB, free: 15.32 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001359/0.121, allocations: 189.6 kB / 297.5 MB, free: 15.18 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/0.121, allocations: 0 / 297.5 MB, free: 15.18 MB / 266.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.000174/0.1212, allocations: 169.5 kB / 297.6 MB, free: 15.11 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.097e-05/0.1212, allocations: 7.562 kB / 297.6 MB, free: 15.11 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.55e-06/0.1212, allocations: 5.875 kB / 297.6 MB, free: 15.11 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.136e-05/0.1212, allocations: 4.656 kB / 297.6 MB, free: 15.11 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.81e-05/0.1213, allocations: 37.61 kB / 297.7 MB, free: 15.11 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.211e-06/0.1213, allocations: 8.641 kB / 297.7 MB, free: 15.1 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.448e-05/0.1214, allocations: 25.8 kB / 297.7 MB, free: 15.09 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.201e-05/0.1214, allocations: 16.42 kB / 297.7 MB, free: 15.08 MB / 266.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.0001116/0.1215, allocations: 160.3 kB / 297.9 MB, free: 14.94 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.997e-05/0.1215, allocations: 26.34 kB / 297.9 MB, free: 14.94 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001583/0.1217, allocations: 131 kB / 298 MB, free: 14.89 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.755e-06/0.1217, allocations: 2.562 kB / 298 MB, free: 14.89 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.523e-06/0.1217, allocations: 3.938 kB / 298 MB, free: 14.88 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.1217, allocations: 5.25 kB / 298 MB, free: 14.88 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001363/0.1218, allocations: 146.4 kB / 298.2 MB, free: 14.78 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.1218, allocations: 2.219 kB / 298.2 MB, free: 14.78 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.312e-05/0.1219, allocations: 23.66 kB / 298.2 MB, free: 14.77 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.1219, allocations: 4.438 kB / 298.2 MB, free: 14.77 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.098e-05/0.1219, allocations: 3.641 kB / 298.2 MB, free: 14.77 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.685e-06/0.1219, allocations: 2.859 kB / 298.2 MB, free: 14.77 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.22e-07/0.1219, allocations: 0 / 298.2 MB, free: 14.77 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001388/0.122, allocations: 164.2 kB / 298.4 MB, free: 14.69 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.357e-05/0.1221, allocations: 33.47 kB / 298.4 MB, free: 14.66 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.765e-05/0.1221, allocations: 8.516 kB / 298.4 MB, free: 14.66 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.773e-05/0.1221, allocations: 22.69 kB / 298.4 MB, free: 14.65 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.018e-05/0.1222, allocations: 18.17 kB / 298.5 MB, free: 14.65 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.68e-05/0.1222, allocations: 6.688 kB / 298.5 MB, free: 14.65 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001034/0.1223, allocations: 138.8 kB / 298.6 MB, free: 14.61 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1223, allocations: 0 / 298.6 MB, free: 14.61 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001984/0.1225, allocations: 82.02 kB / 298.7 MB, free: 14.59 MB / 266.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.001078/0.1236, allocations: 0.5516 MB / 299.2 MB, free: 14.45 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001542/0.1237, allocations: 109.9 kB / 299.3 MB, free: 14.43 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.125e-05/0.1237, allocations: 2.25 kB / 299.3 MB, free: 14.43 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 6.269e-05/0.1238, allocations: 52.53 kB / 299.4 MB, free: 14.41 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002025/0.124, allocations: 94.95 kB / 299.5 MB, free: 14.38 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005798/0.1246, allocations: 482.8 kB / 300 MB, free: 14.08 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.379e-05/0.1246, allocations: 103.3 kB / 300.1 MB, free: 14 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 9.165e-05/0.1247, allocations: 40.16 kB / 300.1 MB, free: 13.99 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000123/0.1248, allocations: 117.2 kB / 300.2 MB, free: 13.93 MB / 266.7 MB Notification: Performance of SimCode: time 7.72e-07/0.1248, allocations: 0 / 300.2 MB, free: 13.93 MB / 266.7 MB Notification: Performance of Templates: time 0.006553/0.1314, allocations: 5.024 MB / 305.2 MB, free: 11.82 MB / 266.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 -s gbode -gbm=radauIIA3 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 2.6733977501280606]