Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN.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.0009593/0.0009593, allocations: 80.94 kB / 19.94 MB, free: 4.547 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.0009205/0.0009205, allocations: 173 kB / 23.36 MB, free: 1.133 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.9853/0.9853, allocations: 177.1 MB / 203.8 MB, free: 5.48 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.03727/0.03727, allocations: 8.616 MB / 268.9 MB, free: 4.801 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.countUPandDOWN,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN") translateModel(IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.473e-06/1.473e-06, allocations: 0 / 288.1 MB, free: 1.578 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.001e-05/2.148e-05, allocations: 9.766 kB / 288.1 MB, free: 1.57 MB / 266.7 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN): time 0.1134/0.1135, allocations: 2.451 MB / 290.6 MB, free: 19.11 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002187/0.1156, allocations: 1.693 MB / 292.2 MB, free: 18.45 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001678/0.1158, allocations: 8.375 kB / 292.3 MB, free: 18.45 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008819/0.1167, allocations: 0.6262 MB / 292.9 MB, free: 18.28 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006447/0.1173, allocations: 489.6 kB / 293.4 MB, free: 18.07 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000749/0.1181, allocations: 441 kB / 293.8 MB, free: 17.84 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007124/0.1188, allocations: 0.7217 MB / 294.5 MB, free: 17.51 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001342/0.1189, allocations: 63.25 kB / 294.6 MB, free: 17.47 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004712/0.1194, allocations: 397.4 kB / 295 MB, free: 17.3 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003379/0.1197, allocations: 296.2 kB / 295.3 MB, free: 17.23 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.42e-05/0.1198, allocations: 37.19 kB / 295.3 MB, free: 17.23 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003366/0.1201, allocations: 212 kB / 295.5 MB, free: 17.18 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001631/0.1203, allocations: 203.2 kB / 295.7 MB, free: 17.08 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000119/0.1204, allocations: 152.3 kB / 295.8 MB, free: 17 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005531/0.121, allocations: 0.5577 MB / 296.4 MB, free: 16.74 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.994e-06/0.121, allocations: 0 / 296.4 MB, free: 16.74 MB / 266.7 MB Notification: Performance of FrontEnd: time 5.51e-07/0.121, allocations: 0 / 296.4 MB, free: 16.74 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.782e-06/0.121, allocations: 0.7812 kB / 296.4 MB, free: 16.74 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.0008167/0.1218, allocations: 0.9629 MB / 297.4 MB, free: 15.97 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.766e-05/0.1218, allocations: 9.688 kB / 297.4 MB, free: 15.97 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.866e-05/0.1219, allocations: 54.25 kB / 297.4 MB, free: 15.97 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000377/0.1223, allocations: 409.2 kB / 297.8 MB, free: 15.68 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.781e-05/0.1223, allocations: 17.44 kB / 297.8 MB, free: 15.67 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.273e-05/0.1223, allocations: 20.97 kB / 297.9 MB, free: 15.66 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001919/0.1225, allocations: 197.8 kB / 298.1 MB, free: 15.55 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.286e-06/0.1225, allocations: 4.547 kB / 298.1 MB, free: 15.55 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.282e-05/0.1225, allocations: 8.344 kB / 298.1 MB, free: 15.54 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.312e-06/0.1225, allocations: 5.453 kB / 298.1 MB, free: 15.54 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.711e-05/0.1226, allocations: 48.36 kB / 298.1 MB, free: 15.54 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004922/0.1231, allocations: 368.8 kB / 298.5 MB, free: 15.3 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002561/0.1234, allocations: 211.3 kB / 298.7 MB, free: 15.21 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.463e-05/0.1234, allocations: 37.48 kB / 298.7 MB, free: 15.2 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.198e-05/0.1234, allocations: 5.469 kB / 298.7 MB, free: 15.2 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001828/0.1236, allocations: 233.5 kB / 299 MB, free: 15.05 MB / 266.7 MB Notification: Performance of pre-optimization done (n=30): time 1.203e-06/0.1236, allocations: 1.688 kB / 299 MB, free: 15.05 MB / 266.7 MB Notification: Performance of matching and sorting (n=30): time 0.0002659/0.1239, allocations: 201.2 kB / 299.2 MB, free: 15 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.467e-05/0.1239, allocations: 91.97 kB / 299.2 MB, free: 14.9 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004891/0.1244, allocations: 0.6251 MB / 299.9 MB, free: 14.62 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.193e-05/0.1244, allocations: 34.83 kB / 299.9 MB, free: 14.59 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.479e-05/0.1245, allocations: 189 kB / 300.1 MB, free: 14.46 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.407e-05/0.1245, allocations: 81.14 kB / 300.2 MB, free: 14.4 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.246e-05/0.1246, allocations: 73.28 kB / 300.2 MB, free: 14.36 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 3.122e-05/0.1246, allocations: 321.3 kB / 300.6 MB, free: 14.04 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.435e-05/0.1247, allocations: 30.47 kB / 300.6 MB, free: 14.04 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.342e-05/0.1248, allocations: 288.1 kB / 300.9 MB, free: 13.72 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003211/0.1251, allocations: 221.5 kB / 301.1 MB, free: 13.56 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.631e-06/0.1251, allocations: 1.406 kB / 301.1 MB, free: 13.56 MB / 266.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0004185/0.1255, allocations: 229.1 kB / 301.3 MB, free: 13.48 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.235e-05/0.1255, allocations: 6.031 kB / 301.3 MB, free: 13.48 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.432e-06/0.1255, allocations: 4.781 kB / 301.3 MB, free: 13.48 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.275e-05/0.1255, allocations: 5.156 kB / 301.3 MB, free: 13.48 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001147/0.1257, allocations: 64.14 kB / 301.4 MB, free: 13.47 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.33e-06/0.1257, allocations: 7.562 kB / 301.4 MB, free: 13.46 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000115/0.1258, allocations: 35.31 kB / 301.4 MB, free: 13.45 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.308e-05/0.1258, allocations: 14.75 kB / 301.4 MB, free: 13.45 MB / 266.7 MB Warning: Assuming fixed start value for the following 5 variables: 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: 14 * Number of states: 0 () * Number of discrete variables: 35 ($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,$PRE.reset.combiTimeTable.nextTimeEvent,$whenCondition5,$PRE.set.combiTimeTable.nextTimeEvent,$whenCondition4,$PRE.countDOWN.combiTimeTable.nextTimeEvent,$whenCondition3,$PRE.countUP.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,countDOWN.combiTimeTable.nextTimeEventScaled,$PRE.countDOWN.combiTimeTable.nextTimeEventScaled,countDOWN.combiTimeTable.nextTimeEvent,countDOWN.y,countUP.combiTimeTable.nextTimeEventScaled,$PRE.countUP.combiTimeTable.nextTimeEventScaled,countUP.combiTimeTable.nextTimeEvent,countUP.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (43): * Single equations (assignments): 43 * 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.0001365/0.1259, allocations: 165.2 kB / 301.6 MB, free: 13.3 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.755e-05/0.126, allocations: 53.31 kB / 301.7 MB, free: 13.3 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002191/0.1262, allocations: 208.6 kB / 301.9 MB, free: 13.2 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.636e-06/0.1262, allocations: 3.625 kB / 301.9 MB, free: 13.2 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.164e-06/0.1262, allocations: 3.938 kB / 301.9 MB, free: 13.2 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.1262, allocations: 0 / 301.9 MB, free: 13.2 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001944/0.1264, allocations: 240.1 kB / 302.1 MB, free: 13.03 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.1264, allocations: 0 / 302.1 MB, free: 13.03 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.703e-05/0.1264, allocations: 27.17 kB / 302.1 MB, free: 13.02 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.454e-06/0.1265, allocations: 1.375 kB / 302.1 MB, free: 13.02 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.215e-05/0.1265, allocations: 15.05 kB / 302.1 MB, free: 13.01 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.364e-06/0.1265, allocations: 1.922 kB / 302.1 MB, free: 13.01 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.31e-07/0.1265, allocations: 0 / 302.1 MB, free: 13.01 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001702/0.1266, allocations: 219.1 kB / 302.4 MB, free: 12.88 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.179e-05/0.1267, allocations: 69.28 kB / 302.4 MB, free: 12.83 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.594e-05/0.1267, allocations: 12.11 kB / 302.4 MB, free: 12.82 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.58e-05/0.1268, allocations: 18.98 kB / 302.5 MB, free: 12.81 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.353e-05/0.1269, allocations: 27.95 kB / 302.5 MB, free: 12.79 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.92e-05/0.1269, allocations: 19.39 kB / 302.5 MB, free: 12.79 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002522/0.1271, allocations: 321.2 kB / 302.8 MB, free: 12.66 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1271, allocations: 4 kB / 302.8 MB, free: 12.66 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002612/0.1274, allocations: 121.1 kB / 302.9 MB, free: 12.63 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: 22 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,counter.Q,counter.Value,counter.CUd,counter.CDd,counter.Sd,countUP.y,countUP.combiTimeTable.nextTimeEvent,countUP.combiTimeTable.nextTimeEventScaled,countDOWN.y,countDOWN.combiTimeTable.nextTimeEvent,countDOWN.combiTimeTable.nextTimeEventScaled,set.y,set.combiTimeTable.nextTimeEvent,set.combiTimeTable.nextTimeEventScaled,reset.y,reset.combiTimeTable.nextTimeEvent,reset.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 12 (counter.Value,counter.Sd,counter.CUd,counter.CDd,countUP.combiTimeTable.nextTimeEvent,countDOWN.combiTimeTable.nextTimeEvent,set.combiTimeTable.nextTimeEvent,reset.combiTimeTable.nextTimeEvent,countUP.combiTimeTable.nextTimeEventScaled,countDOWN.combiTimeTable.nextTimeEventScaled,set.combiTimeTable.nextTimeEventScaled,reset.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 12 * 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.001066/0.1285, allocations: 0.5671 MB / 303.5 MB, free: 12.45 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001835/0.1286, allocations: 152.1 kB / 303.7 MB, free: 12.41 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 8.326e-06/0.1286, allocations: 10.94 kB / 303.7 MB, free: 12.4 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 8.429e-05/0.1287, allocations: 91.55 kB / 303.8 MB, free: 12.36 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003289/0.1291, allocations: 181.9 kB / 303.9 MB, free: 12.28 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007671/0.1298, allocations: 0.8548 MB / 304.8 MB, free: 11.71 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.083e-05/0.1299, allocations: 152.6 kB / 304.9 MB, free: 11.6 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001513/0.1301, allocations: 85.86 kB / 305 MB, free: 11.56 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001961/0.1303, allocations: 154.8 kB / 305.2 MB, free: 11.49 MB / 266.7 MB Notification: Performance of SimCode: time 4.2e-07/0.1303, allocations: 0 / 305.2 MB, free: 11.49 MB / 266.7 MB Notification: Performance of Templates: time 0.009043/0.1393, allocations: 8.976 MB / 314.1 MB, free: 3.41 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN.makefile [Timeout 660] (rm -f IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN.sim & ./IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 2.864347405731678]