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.001225/0.001225, allocations: 102.1 kB / 19.7 MB, free: 2.254 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.00143/0.00143, allocations: 217.2 kB / 23.01 MB, free: 4.609 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.442/1.442, allocations: 230.6 MB / 256.8 MB, free: 8.039 MB / 206.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.06454/0.06454, allocations: 11.34 MB / 324.5 MB, free: 8.277 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.002071/0.002071, allocations: 67.91 kB / 452.3 MB, free: 10.05 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1101/0.1121, allocations: 56.07 MB / 0.4964 GB, free: 1.879 MB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN): time 0.004001/0.1161, allocations: 2.469 MB / 0.4989 GB, free: 15.39 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00311/0.1193, allocations: 1.73 MB / 0.5005 GB, free: 13.66 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002166/0.1195, allocations: 11.88 kB / 0.5006 GB, free: 13.65 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00145/0.1209, allocations: 0.6378 MB / 0.5012 GB, free: 13.01 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001002/0.1219, allocations: 486.4 kB / 0.5016 GB, free: 12.54 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001136/0.1231, allocations: 454.4 kB / 0.5021 GB, free: 12.09 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008895/0.1239, allocations: 0.7169 MB / 0.5028 GB, free: 11.38 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001939/0.1241, allocations: 65.92 kB / 0.5028 GB, free: 11.3 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003983/0.1245, allocations: 306.9 kB / 0.5031 GB, free: 11 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000413/0.125, allocations: 350.7 kB / 0.5035 GB, free: 10.66 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.842e-05/0.125, allocations: 36 kB / 0.5035 GB, free: 10.62 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003738/0.1254, allocations: 207.7 kB / 0.5037 GB, free: 10.42 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002082/0.1256, allocations: 215.3 kB / 0.5039 GB, free: 10.21 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002628/0.1259, allocations: 266.3 kB / 0.5042 GB, free: 9.945 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008799/0.1267, allocations: 0.7585 MB / 0.5049 GB, free: 9.184 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.608e-06/0.1268, allocations: 0 / 0.5049 GB, free: 9.184 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1268, allocations: 0 / 0.5049 GB, free: 9.184 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.909e-06/0.1268, allocations: 0 / 0.5049 GB, free: 9.184 MB / 382.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.001651/0.1284, allocations: 1.031 MB / 0.5059 GB, free: 8.094 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.828e-05/0.1285, allocations: 12.03 kB / 0.5059 GB, free: 8.082 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000132/0.1286, allocations: 76.45 kB / 0.506 GB, free: 8.008 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007532/0.1293, allocations: 485.9 kB / 0.5065 GB, free: 7.512 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.603e-05/0.1294, allocations: 16.69 kB / 0.5065 GB, free: 7.496 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.277e-05/0.1294, allocations: 20.12 kB / 0.5065 GB, free: 7.477 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004992/0.1299, allocations: 256.7 kB / 0.5067 GB, free: 7.207 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.059e-05/0.1299, allocations: 0 / 0.5067 GB, free: 7.207 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.237e-05/0.1299, allocations: 4 kB / 0.5067 GB, free: 7.203 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.774e-06/0.1299, allocations: 4 kB / 0.5067 GB, free: 7.199 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002769/0.1302, allocations: 127.8 kB / 0.5069 GB, free: 7.074 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00111/0.1313, allocations: 0.71 MB / 0.5076 GB, free: 6.32 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007378/0.1321, allocations: 256.2 kB / 0.5078 GB, free: 6.062 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002315/0.1323, allocations: 92.75 kB / 0.5079 GB, free: 5.969 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.592e-05/0.1323, allocations: 7.938 kB / 0.5079 GB, free: 5.961 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004345/0.1328, allocations: 233.3 kB / 0.5081 GB, free: 5.715 MB / 382.1 MB Notification: Performance of pre-optimization done (n=30): time 1.954e-06/0.1328, allocations: 4 kB / 0.5081 GB, free: 5.711 MB / 382.1 MB Notification: Performance of matching and sorting (n=30): time 0.0009456/0.1337, allocations: 449.1 kB / 0.5086 GB, free: 5.266 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001361/0.1338, allocations: 195.8 kB / 0.5087 GB, free: 5.031 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001244/0.1351, allocations: 0.9379 MB / 0.5097 GB, free: 4.082 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.105e-05/0.1351, allocations: 37.7 kB / 0.5097 GB, free: 4.039 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00031/0.1354, allocations: 280.7 kB / 0.51 GB, free: 3.758 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.913e-05/0.1355, allocations: 83.36 kB / 0.51 GB, free: 3.676 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001185/0.1356, allocations: 77.69 kB / 0.5101 GB, free: 3.594 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002521/0.1359, allocations: 322 kB / 0.5104 GB, free: 3.273 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002197/0.1361, allocations: 79.91 kB / 0.5105 GB, free: 3.195 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003726/0.1365, allocations: 259.6 kB / 0.5107 GB, free: 2.871 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005677/0.1371, allocations: 299.7 kB / 0.511 GB, free: 2.535 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.24e-06/0.1371, allocations: 4 kB / 0.511 GB, free: 2.531 MB / 382.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0007328/0.1378, allocations: 384.8 kB / 0.5114 GB, free: 2.148 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.269e-05/0.1378, allocations: 8 kB / 0.5114 GB, free: 2.141 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.111e-05/0.1378, allocations: 4 kB / 0.5114 GB, free: 2.137 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.069e-05/0.1379, allocations: 4 kB / 0.5114 GB, free: 2.133 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001881/0.138, allocations: 55.94 kB / 0.5115 GB, free: 2.078 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.053e-05/0.1381, allocations: 7.938 kB / 0.5115 GB, free: 2.07 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002275/0.1383, allocations: 44.14 kB / 0.5115 GB, free: 2.027 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.367e-05/0.1383, allocations: 16 kB / 0.5115 GB, free: 2.012 MB / 382.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.0003812/0.1387, allocations: 268.9 kB / 0.5118 GB, free: 1.742 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001089/0.1388, allocations: 75.47 kB / 0.5119 GB, free: 1.668 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008097/0.1396, allocations: 385.7 kB / 0.5122 GB, free: 1.277 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.713e-06/0.1396, allocations: 4 kB / 0.5122 GB, free: 1.273 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.1396, allocations: 0 / 0.5122 GB, free: 1.273 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.18e-06/0.1396, allocations: 0 / 0.5122 GB, free: 1.273 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005954/0.1402, allocations: 456.2 kB / 0.5127 GB, free: 0.7852 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.694e-06/0.1402, allocations: 0 / 0.5127 GB, free: 0.7852 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001321/0.1403, allocations: 23.86 kB / 0.5127 GB, free: 0.7617 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.442e-06/0.1404, allocations: 4 kB / 0.5127 GB, free: 0.7578 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.212e-05/0.1404, allocations: 11.98 kB / 0.5127 GB, free: 0.7461 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.424e-06/0.1404, allocations: 4 kB / 0.5127 GB, free: 0.7422 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.1404, allocations: 0 / 0.5127 GB, free: 0.7422 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006786/0.1411, allocations: 401.3 kB / 0.5131 GB, free: 340 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001278/0.1412, allocations: 71.45 kB / 0.5132 GB, free: 268 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.637e-05/0.1413, allocations: 12 kB / 0.5132 GB, free: 256 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000166/0.1414, allocations: 23.97 kB / 0.5132 GB, free: 232 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.47e-05/0.1415, allocations: 27.95 kB / 0.5132 GB, free: 204 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.971e-05/0.1415, allocations: 15.98 kB / 0.5132 GB, free: 188 kB / 382.1 MB Notification: Performance of sorting global known variables: time 0.2359/0.3774, allocations: 0.673 MB / 0.5139 GB, free: 23.04 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.3774, allocations: 0 / 0.5139 GB, free: 23.04 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007599/0.3782, allocations: 120.3 kB / 0.514 GB, free: 23.04 MB / 382.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 (29): * Single equations (assignments): 17 * 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.001678/0.3799, allocations: 461.9 kB / 0.5145 GB, free: 22.92 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006349/0.3805, allocations: 250.9 kB / 0.5147 GB, free: 22.92 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.069e-06/0.3805, allocations: 0 / 0.5147 GB, free: 22.92 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002223/0.3807, allocations: 115.2 kB / 0.5148 GB, free: 22.92 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007498/0.3815, allocations: 152.8 kB / 0.5149 GB, free: 22.91 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001454/0.383, allocations: 1.093 MB / 0.516 GB, free: 22.47 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003735/0.3833, allocations: 0.9032 MB / 0.5169 GB, free: 21.78 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001316/0.3835, allocations: 56.86 kB / 0.517 GB, free: 21.77 MB / 382.1 MB Notification: Performance of SimCode: time 8.92e-07/0.3835, allocations: 3.562 kB / 0.517 GB, free: 21.77 MB / 382.1 MB Notification: Performance of Templates: time 0.01623/0.3997, allocations: 8.699 MB / 0.5254 GB, free: 20.73 MB / 382.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 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 8.560633186018094] Failed to read output from testmodel.py, exit status != 0: 0.4086291561834514 0.42130468699999996 0.291826793 Calling exit ...