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.00138/0.00138, allocations: 104.4 kB / 19.7 MB, free: 2.125 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.00149/0.00149, allocations: 214.1 kB / 22.99 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.545/1.545, allocations: 230.6 MB / 256.8 MB, free: 7.793 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.06561/0.06561, allocations: 11.35 MB / 324.5 MB, free: 8.027 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.00214/0.00214, allocations: 67.89 kB / 452.2 MB, free: 9.828 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1115/0.1137, allocations: 56.07 MB / 0.4964 GB, free: 1.652 MB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN): time 0.004167/0.1178, allocations: 2.32 MB / 0.4986 GB, free: 15.32 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00323/0.1211, allocations: 1.649 MB / 0.5003 GB, free: 13.66 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001754/0.1212, allocations: 7.938 kB / 0.5003 GB, free: 13.66 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001494/0.1227, allocations: 0.6307 MB / 0.5009 GB, free: 13.03 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001045/0.1238, allocations: 494.3 kB / 0.5013 GB, free: 12.54 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00112/0.1249, allocations: 449 kB / 0.5018 GB, free: 12.11 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008445/0.1257, allocations: 0.7207 MB / 0.5025 GB, free: 11.39 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001851/0.1259, allocations: 53.94 kB / 0.5025 GB, free: 11.32 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003783/0.1263, allocations: 306.9 kB / 0.5028 GB, free: 11.02 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004213/0.1267, allocations: 338.7 kB / 0.5031 GB, free: 10.69 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.274e-05/0.1268, allocations: 39.94 kB / 0.5032 GB, free: 10.65 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004001/0.1272, allocations: 199.7 kB / 0.5034 GB, free: 10.46 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000237/0.1274, allocations: 203.3 kB / 0.5036 GB, free: 10.26 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000231/0.1277, allocations: 202.7 kB / 0.5038 GB, free: 10.06 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009213/0.1286, allocations: 0.7702 MB / 0.5045 GB, free: 9.285 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.1286, allocations: 0 / 0.5045 GB, free: 9.285 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1286, allocations: 0 / 0.5045 GB, free: 9.285 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.025e-06/0.1286, allocations: 0 / 0.5045 GB, free: 9.285 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.001705/0.1303, allocations: 1.019 MB / 0.5055 GB, free: 8.207 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.809e-05/0.1303, allocations: 8.031 kB / 0.5055 GB, free: 8.199 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001347/0.1305, allocations: 80.45 kB / 0.5056 GB, free: 8.121 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008166/0.1313, allocations: 489.5 kB / 0.5061 GB, free: 7.621 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.827e-05/0.1313, allocations: 16.69 kB / 0.5061 GB, free: 7.605 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.959e-05/0.1314, allocations: 20.12 kB / 0.5061 GB, free: 7.586 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004949/0.1319, allocations: 263.4 kB / 0.5063 GB, free: 7.312 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.029e-05/0.1319, allocations: 4 kB / 0.5064 GB, free: 7.309 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.572e-05/0.1319, allocations: 8 kB / 0.5064 GB, free: 7.301 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.514e-06/0.1319, allocations: 4 kB / 0.5064 GB, free: 7.297 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003073/0.1322, allocations: 136.5 kB / 0.5065 GB, free: 7.164 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001084/0.1333, allocations: 0.6131 MB / 0.5071 GB, free: 6.52 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007966/0.1341, allocations: 270.6 kB / 0.5074 GB, free: 6.246 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002343/0.1343, allocations: 92.67 kB / 0.5074 GB, free: 6.152 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.151e-05/0.1343, allocations: 4 kB / 0.5074 GB, free: 6.148 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005258/0.1349, allocations: 284.2 kB / 0.5077 GB, free: 5.84 MB / 382.1 MB Notification: Performance of pre-optimization done (n=30): time 2.214e-06/0.1349, allocations: 0 / 0.5077 GB, free: 5.84 MB / 382.1 MB Notification: Performance of matching and sorting (n=30): time 0.001051/0.1359, allocations: 473 kB / 0.5082 GB, free: 5.371 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.322e-05/0.136, allocations: 89.11 kB / 0.5083 GB, free: 5.266 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001264/0.1373, allocations: 0.9379 MB / 0.5092 GB, free: 4.316 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.409e-05/0.1373, allocations: 37.7 kB / 0.5092 GB, free: 4.273 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002792/0.1376, allocations: 288.6 kB / 0.5095 GB, free: 3.984 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.12e-05/0.1377, allocations: 87.98 kB / 0.5096 GB, free: 3.898 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001178/0.1378, allocations: 65.69 kB / 0.5096 GB, free: 3.828 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001668/0.138, allocations: 322 kB / 0.5099 GB, free: 3.508 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002104/0.1382, allocations: 91.91 kB / 0.51 GB, free: 3.418 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004303/0.1386, allocations: 368.7 kB / 0.5104 GB, free: 2.969 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005838/0.1392, allocations: 315.7 kB / 0.5107 GB, free: 2.617 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.945e-06/0.1392, allocations: 0 / 0.5107 GB, free: 2.617 MB / 382.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0007328/0.1399, allocations: 393 kB / 0.511 GB, free: 2.227 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.958e-05/0.14, allocations: 8 kB / 0.5111 GB, free: 2.219 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.144e-05/0.14, allocations: 7.984 kB / 0.5111 GB, free: 2.211 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.896e-05/0.14, allocations: 4 kB / 0.5111 GB, free: 2.207 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001926/0.1402, allocations: 55.86 kB / 0.5111 GB, free: 2.152 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.375e-05/0.1402, allocations: 11.92 kB / 0.5111 GB, free: 2.141 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002262/0.1404, allocations: 35.83 kB / 0.5112 GB, free: 2.105 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.734e-05/0.1404, allocations: 16 kB / 0.5112 GB, free: 2.09 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.0003754/0.1408, allocations: 270.9 kB / 0.5114 GB, free: 1.816 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001075/0.1409, allocations: 75.47 kB / 0.5115 GB, free: 1.742 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00081/0.1417, allocations: 417 kB / 0.5119 GB, free: 1.324 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.252e-06/0.1417, allocations: 4 kB / 0.5119 GB, free: 1.32 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.579e-06/0.1417, allocations: 4 kB / 0.5119 GB, free: 1.316 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.805e-06/0.1418, allocations: 3.984 kB / 0.5119 GB, free: 1.312 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004715/0.1422, allocations: 365 kB / 0.5123 GB, free: 0.9258 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.844e-06/0.1422, allocations: 0 / 0.5123 GB, free: 0.9258 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.55e-05/0.1423, allocations: 23.94 kB / 0.5123 GB, free: 0.9023 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.957e-06/0.1423, allocations: 11.92 kB / 0.5123 GB, free: 0.8906 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.074e-05/0.1424, allocations: 8 kB / 0.5123 GB, free: 0.8828 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.843e-06/0.1424, allocations: 0 / 0.5123 GB, free: 0.8828 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.943e-06/0.1424, allocations: 0 / 0.5123 GB, free: 0.8828 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007678/0.1431, allocations: 432.4 kB / 0.5127 GB, free: 452 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001485/0.1433, allocations: 67.5 kB / 0.5128 GB, free: 384 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.348e-05/0.1434, allocations: 19.92 kB / 0.5128 GB, free: 364 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001692/0.1435, allocations: 15.98 kB / 0.5128 GB, free: 348 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.659e-05/0.1436, allocations: 31.89 kB / 0.5128 GB, free: 316 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.572e-05/0.1436, allocations: 15.98 kB / 0.5129 GB, free: 300 kB / 382.1 MB Notification: Performance of sorting global known variables: time 0.2216/0.3653, allocations: 0.6763 MB / 0.5135 GB, free: 23.01 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.3653, allocations: 0.5469 kB / 0.5135 GB, free: 23.01 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007003/0.366, allocations: 120.9 kB / 0.5136 GB, free: 23.01 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 (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.001694/0.3677, allocations: 500 kB / 0.5141 GB, free: 22.89 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005755/0.3682, allocations: 262.3 kB / 0.5144 GB, free: 22.89 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/0.3682, allocations: 0 / 0.5144 GB, free: 22.89 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002297/0.3685, allocations: 128.4 kB / 0.5145 GB, free: 22.89 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006911/0.3692, allocations: 154.2 kB / 0.5146 GB, free: 22.88 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001368/0.3705, allocations: 1.111 MB / 0.5157 GB, free: 22.44 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002845/0.3708, allocations: 311.5 kB / 0.516 GB, free: 22.35 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001146/0.3709, allocations: 51.58 kB / 0.5161 GB, free: 22.34 MB / 382.1 MB Notification: Performance of SimCode: time 4.91e-07/0.3709, allocations: 0 / 0.5161 GB, free: 22.34 MB / 382.1 MB Notification: Performance of Templates: time 0.01344/0.3844, allocations: 8.872 MB / 0.5247 GB, free: 21.23 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.613700772169977] Failed to read output from testmodel.py, exit status != 0: 0.3925967402756214 0.40343480600000003 0.272333551 Calling exit ...