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.001429/0.001429, allocations: 82.02 kB / 19.76 MB, free: 2.031 MB / 14.72 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.001526/0.001526, allocations: 159.3 kB / 23.01 MB, free: 4.945 MB / 14.72 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.501/1.501, allocations: 177.2 MB / 203.4 MB, free: 8.938 MB / 190.1 MB " [Timeout remaining time 178] 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.06309/0.06309, allocations: 8.621 MB / 268.4 MB, free: 8.516 MB / 254.1 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: IndustrialControlSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002108/0.002108, allocations: 63.91 kB / 396.1 MB, free: 7.918 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1026/0.1047, allocations: 56.05 MB / 452.1 MB, free: 15.76 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN): time 0.004124/0.1088, allocations: 2.329 MB / 454.4 MB, free: 13.41 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003088/0.1119, allocations: 1.636 MB / 456.1 MB, free: 11.77 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001697/0.1121, allocations: 11.88 kB / 456.1 MB, free: 11.76 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001437/0.1135, allocations: 0.6388 MB / 456.7 MB, free: 11.12 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001031/0.1146, allocations: 486.4 kB / 457.2 MB, free: 10.64 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001098/0.1157, allocations: 454.9 kB / 457.7 MB, free: 10.2 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008506/0.1165, allocations: 0.7207 MB / 458.4 MB, free: 9.48 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000178/0.1167, allocations: 61.92 kB / 458.4 MB, free: 9.414 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003744/0.1171, allocations: 306.8 kB / 458.7 MB, free: 9.113 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004234/0.1175, allocations: 330.7 kB / 459.1 MB, free: 8.789 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 8.41e-05/0.1176, allocations: 40 kB / 459.1 MB, free: 8.75 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004097/0.118, allocations: 199.8 kB / 459.3 MB, free: 8.555 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002325/0.1182, allocations: 199.3 kB / 459.5 MB, free: 8.359 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002424/0.1185, allocations: 210.6 kB / 459.7 MB, free: 8.152 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008772/0.1193, allocations: 0.7547 MB / 460.4 MB, free: 7.395 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.1193, allocations: 0 / 460.4 MB, free: 7.395 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.1193, allocations: 4 kB / 460.4 MB, free: 7.391 MB / 430.1 MB Notification: Performance of Transformations before backend: time 9.057e-06/0.1193, allocations: 0 / 460.4 MB, free: 7.391 MB / 430.1 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.00168/0.121, allocations: 1.029 MB / 461.5 MB, free: 6.301 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.325e-05/0.1211, allocations: 8.031 kB / 461.5 MB, free: 6.293 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001383/0.1212, allocations: 72.47 kB / 461.6 MB, free: 6.223 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008126/0.122, allocations: 485.6 kB / 462 MB, free: 5.723 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.832e-05/0.122, allocations: 20.7 kB / 462 MB, free: 5.703 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.88e-05/0.1221, allocations: 24.11 kB / 462.1 MB, free: 5.68 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004761/0.1226, allocations: 255.5 kB / 462.3 MB, free: 5.414 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.809e-06/0.1226, allocations: 4 kB / 462.3 MB, free: 5.41 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.361e-05/0.1226, allocations: 11.88 kB / 462.3 MB, free: 5.398 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.883e-06/0.1226, allocations: 4 kB / 462.3 MB, free: 5.395 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003183/0.1229, allocations: 132.5 kB / 462.5 MB, free: 5.266 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00108/0.124, allocations: 0.617 MB / 463.1 MB, free: 4.617 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007701/0.1248, allocations: 270.5 kB / 463.4 MB, free: 4.344 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002173/0.125, allocations: 96.8 kB / 463.4 MB, free: 4.246 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.068e-05/0.125, allocations: 7.938 kB / 463.5 MB, free: 4.238 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004903/0.1255, allocations: 292.2 kB / 463.7 MB, free: 3.922 MB / 430.1 MB Notification: Performance of pre-optimization done (n=30): time 1.854e-06/0.1255, allocations: 4 kB / 463.7 MB, free: 3.918 MB / 430.1 MB Notification: Performance of matching and sorting (n=30): time 0.001035/0.1265, allocations: 461.1 kB / 464.2 MB, free: 3.461 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.178e-05/0.1266, allocations: 85.73 kB / 464.3 MB, free: 3.359 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001229/0.1278, allocations: 0.934 MB / 465.2 MB, free: 2.414 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 3.868e-05/0.1279, allocations: 37.69 kB / 465.2 MB, free: 2.371 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002812/0.1282, allocations: 292.6 kB / 465.5 MB, free: 2.078 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.098e-05/0.1282, allocations: 79.42 kB / 465.6 MB, free: 2 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001072/0.1283, allocations: 77.67 kB / 465.7 MB, free: 1.918 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001588/0.1285, allocations: 322 kB / 466 MB, free: 1.598 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002161/0.1287, allocations: 83.95 kB / 466.1 MB, free: 1.516 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004269/0.1291, allocations: 368.4 kB / 466.4 MB, free: 1.066 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005929/0.1297, allocations: 315.7 kB / 466.8 MB, free: 0.7148 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.477e-06/0.1297, allocations: 3.938 kB / 466.8 MB, free: 0.7109 MB / 430.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0007315/0.1305, allocations: 392.9 kB / 467.1 MB, free: 328 kB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.56e-05/0.1305, allocations: 4 kB / 467.1 MB, free: 324 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.356e-06/0.1305, allocations: 4 kB / 467.1 MB, free: 320 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.802e-05/0.1305, allocations: 4 kB / 467.2 MB, free: 316 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002126/0.1307, allocations: 56.16 kB / 467.2 MB, free: 260 kB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.598e-06/0.1307, allocations: 8 kB / 467.2 MB, free: 252 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002338/0.131, allocations: 47.75 kB / 467.3 MB, free: 204 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.016e-05/0.131, allocations: 16 kB / 467.3 MB, free: 188 kB / 430.1 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.0003638/0.1314, allocations: 259 kB / 467.5 MB, free: 15.92 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001009/0.1315, allocations: 79.41 kB / 467.6 MB, free: 15.84 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008247/0.1323, allocations: 424.6 kB / 468 MB, free: 15.42 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.4e-06/0.1323, allocations: 4 kB / 468 MB, free: 15.42 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.1323, allocations: 0 / 468 MB, free: 15.42 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/0.1323, allocations: 0 / 468 MB, free: 15.42 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004689/0.1328, allocations: 368.9 kB / 468.4 MB, free: 15.03 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.1328, allocations: 0 / 468.4 MB, free: 15.03 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.995e-05/0.1329, allocations: 27.94 kB / 468.4 MB, free: 15 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.142e-06/0.1329, allocations: 3.938 kB / 468.4 MB, free: 15 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.509e-05/0.1329, allocations: 15.98 kB / 468.4 MB, free: 14.98 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.774e-06/0.1329, allocations: 0 / 468.4 MB, free: 14.98 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.1329, allocations: 0 / 468.4 MB, free: 14.98 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007868/0.1337, allocations: 432.4 kB / 468.9 MB, free: 14.54 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001298/0.1338, allocations: 67.5 kB / 468.9 MB, free: 14.47 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.499e-05/0.1339, allocations: 15.92 kB / 468.9 MB, free: 14.46 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001844/0.1341, allocations: 19.98 kB / 469 MB, free: 14.44 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.327e-05/0.1342, allocations: 27.95 kB / 469 MB, free: 14.41 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.829e-05/0.1342, allocations: 15.98 kB / 469 MB, free: 14.39 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0008972/0.1351, allocations: 0.6787 MB / 469.7 MB, free: 13.72 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1351, allocations: 0 / 469.7 MB, free: 13.72 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0004633/0.1356, allocations: 119.8 kB / 469.8 MB, free: 13.6 MB / 446.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: 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.001792/0.1373, allocations: 0.4903 MB / 470.3 MB, free: 13.29 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0006464/0.138, allocations: 267.8 kB / 470.5 MB, free: 13.03 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.138, allocations: 0 / 470.5 MB, free: 13.03 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002706/0.1383, allocations: 136.2 kB / 470.7 MB, free: 12.9 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000722/0.139, allocations: 159.1 kB / 470.8 MB, free: 12.76 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001622/0.1406, allocations: 1.056 MB / 471.9 MB, free: 11.67 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003445/0.141, allocations: 309.8 kB / 472.2 MB, free: 11.35 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0002334/0.1412, allocations: 92.48 kB / 472.3 MB, free: 11.26 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001339/0.1413, allocations: 56.48 kB / 472.3 MB, free: 11.2 MB / 446.1 MB Notification: Performance of SimCode: time 6.51e-07/0.1413, allocations: 0 / 472.3 MB, free: 11.2 MB / 446.1 MB Notification: Performance of Templates: time 0.01653/0.1579, allocations: 8.25 MB / 480.6 MB, free: 3.043 MB / 446.1 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=480 -s ida -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.837473030085675] Failed to read output from testmodel.py, exit status != 0: 0.16662763408385217 0.34335811899999996 0.22118294099999994 Calling exit ...