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.0008767/0.0008767, allocations: 80.88 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.0008977/0.0008977, allocations: 181 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.8731/0.8731, allocations: 177.2 MB / 203.8 MB, free: 5.465 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.03698/0.03698, allocations: 8.622 MB / 268.9 MB, free: 4.785 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.102e-06/1.102e-06, allocations: 0 / 288 MB, free: 1.617 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.708e-06/1.081e-05, allocations: 2.312 kB / 288 MB, free: 1.613 MB / 266.7 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN): time 0.09745/0.09746, allocations: 2.417 MB / 290.5 MB, free: 18.57 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00201/0.09947, allocations: 1.701 MB / 292.2 MB, free: 17.95 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000175/0.09965, allocations: 8.906 kB / 292.2 MB, free: 17.95 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009348/0.1006, allocations: 0.619 MB / 292.8 MB, free: 17.85 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000657/0.1012, allocations: 495.5 kB / 293.3 MB, free: 17.73 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00072/0.102, allocations: 450.5 kB / 293.7 MB, free: 17.63 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006534/0.1026, allocations: 0.7263 MB / 294.4 MB, free: 17.34 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001361/0.1027, allocations: 62.84 kB / 294.5 MB, free: 17.3 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004374/0.1032, allocations: 393.8 kB / 294.9 MB, free: 17.14 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003254/0.1035, allocations: 301.6 kB / 295.2 MB, free: 17.06 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.151e-05/0.1036, allocations: 37.03 kB / 295.2 MB, free: 17.06 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002842/0.1039, allocations: 196.4 kB / 295.4 MB, free: 17.01 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001629/0.104, allocations: 200.4 kB / 295.6 MB, free: 16.91 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001283/0.1041, allocations: 160.4 kB / 295.8 MB, free: 16.82 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005303/0.1047, allocations: 0.5506 MB / 296.3 MB, free: 16.58 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.935e-06/0.1047, allocations: 3.938 kB / 296.3 MB, free: 16.57 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.213e-06/0.1047, allocations: 1.688 kB / 296.3 MB, free: 16.57 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.648e-06/0.1047, allocations: 0 / 296.3 MB, free: 16.57 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.0008595/0.1056, allocations: 0.9611 MB / 297.3 MB, free: 15.8 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.04e-05/0.1056, allocations: 9.344 kB / 297.3 MB, free: 15.8 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.171e-05/0.1057, allocations: 60.42 kB / 297.4 MB, free: 15.8 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003741/0.106, allocations: 408.9 kB / 297.7 MB, free: 15.5 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.968e-05/0.1061, allocations: 14.66 kB / 297.8 MB, free: 15.5 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.469e-05/0.1061, allocations: 23.55 kB / 297.8 MB, free: 15.49 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001988/0.1063, allocations: 196 kB / 298 MB, free: 15.38 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.875e-06/0.1063, allocations: 5.406 kB / 298 MB, free: 15.38 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.463e-05/0.1063, allocations: 7.531 kB / 298 MB, free: 15.38 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.661e-06/0.1063, allocations: 4.25 kB / 298 MB, free: 15.38 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.227e-05/0.1064, allocations: 49.22 kB / 298 MB, free: 15.37 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000471/0.1069, allocations: 373.8 kB / 298.4 MB, free: 15.13 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002575/0.1071, allocations: 198.6 kB / 298.6 MB, free: 15.05 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.277e-05/0.1072, allocations: 44.91 kB / 298.6 MB, free: 15.04 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.359e-05/0.1072, allocations: 5.672 kB / 298.7 MB, free: 15.04 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001842/0.1074, allocations: 234.4 kB / 298.9 MB, free: 14.88 MB / 266.7 MB Notification: Performance of pre-optimization done (n=30): time 1.683e-06/0.1074, allocations: 0 / 298.9 MB, free: 14.88 MB / 266.7 MB Notification: Performance of matching and sorting (n=30): time 0.0002623/0.1076, allocations: 197.8 kB / 299.1 MB, free: 14.84 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.938e-05/0.1077, allocations: 93.47 kB / 299.2 MB, free: 14.73 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004711/0.1081, allocations: 0.6238 MB / 299.8 MB, free: 14.46 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.997e-05/0.1082, allocations: 38.36 kB / 299.8 MB, free: 14.43 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.895e-05/0.1082, allocations: 183 kB / 300 MB, free: 14.3 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.102e-05/0.1083, allocations: 83.44 kB / 300.1 MB, free: 14.23 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.613e-05/0.1083, allocations: 65.95 kB / 300.2 MB, free: 14.2 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 2.627e-05/0.1083, allocations: 330.1 kB / 300.5 MB, free: 13.88 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.239e-05/0.1084, allocations: 33.2 kB / 300.5 MB, free: 13.87 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.451e-05/0.1085, allocations: 285.3 kB / 300.8 MB, free: 13.55 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001539/0.1086, allocations: 225.2 kB / 301 MB, free: 13.39 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.457e-06/0.1086, allocations: 3.75 kB / 301 MB, free: 13.39 MB / 266.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0002241/0.1089, allocations: 231.2 kB / 301.2 MB, free: 13.31 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.061e-05/0.1089, allocations: 6.719 kB / 301.2 MB, free: 13.31 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.56e-06/0.1089, allocations: 3.75 kB / 301.2 MB, free: 13.31 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.127e-05/0.1089, allocations: 8.188 kB / 301.3 MB, free: 13.31 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.63e-05/0.109, allocations: 53.33 kB / 301.3 MB, free: 13.3 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.229e-06/0.109, allocations: 7.562 kB / 301.3 MB, free: 13.3 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001078/0.1091, allocations: 36.7 kB / 301.3 MB, free: 13.29 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.315e-05/0.1091, allocations: 13.64 kB / 301.4 MB, free: 13.28 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.000129/0.1092, allocations: 172.3 kB / 301.5 MB, free: 13.13 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.051e-05/0.1093, allocations: 49.66 kB / 301.6 MB, free: 13.13 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002046/0.1095, allocations: 201.1 kB / 301.8 MB, free: 13.05 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.766e-06/0.1095, allocations: 4.125 kB / 301.8 MB, free: 13.05 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.424e-06/0.1095, allocations: 6.328 kB / 301.8 MB, free: 13.04 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.1095, allocations: 0 / 301.8 MB, free: 13.04 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002041/0.1097, allocations: 242.5 kB / 302 MB, free: 12.89 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.183e-06/0.1097, allocations: 0 / 302 MB, free: 12.89 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.335e-05/0.1097, allocations: 24.73 kB / 302 MB, free: 12.88 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.555e-06/0.1097, allocations: 2.781 kB / 302 MB, free: 12.88 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.236e-05/0.1098, allocations: 6.625 kB / 302.1 MB, free: 12.88 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.904e-06/0.1098, allocations: 1.062 kB / 302.1 MB, free: 12.88 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.1098, allocations: 5.125 kB / 302.1 MB, free: 12.87 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001746/0.1099, allocations: 218.2 kB / 302.3 MB, free: 12.74 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.505e-05/0.11, allocations: 72.59 kB / 302.3 MB, free: 12.69 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.606e-05/0.11, allocations: 8.219 kB / 302.4 MB, free: 12.68 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.704e-05/0.1101, allocations: 22.66 kB / 302.4 MB, free: 12.67 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.163e-05/0.1102, allocations: 32.52 kB / 302.4 MB, free: 12.65 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.858e-05/0.1102, allocations: 11.69 kB / 302.4 MB, free: 12.64 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002388/0.1104, allocations: 322.8 kB / 302.7 MB, free: 12.52 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1104, allocations: 0 / 302.7 MB, free: 12.52 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000263/0.1107, allocations: 124.7 kB / 302.9 MB, free: 12.49 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.001018/0.1117, allocations: 0.5687 MB / 303.4 MB, free: 12.3 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001766/0.1119, allocations: 151.6 kB / 303.6 MB, free: 12.26 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 7.585e-06/0.1119, allocations: 6.875 kB / 303.6 MB, free: 12.26 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 7.746e-05/0.112, allocations: 83.7 kB / 303.7 MB, free: 12.23 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003328/0.1123, allocations: 187.6 kB / 303.8 MB, free: 12.14 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007546/0.113, allocations: 0.8553 MB / 304.7 MB, free: 11.57 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.742e-05/0.1131, allocations: 156.1 kB / 304.9 MB, free: 11.46 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001466/0.1133, allocations: 80.58 kB / 304.9 MB, free: 11.42 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001865/0.1135, allocations: 156.3 kB / 305.1 MB, free: 11.35 MB / 266.7 MB Notification: Performance of SimCode: time 7.32e-07/0.1135, allocations: 0 / 305.1 MB, free: 11.35 MB / 266.7 MB Notification: Performance of Templates: time 0.009069/0.1225, allocations: 8.97 MB / 314.1 MB, free: 3.332 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 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 2.652877040207386]