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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001619/0.001619, allocations: 120.1 kB / 17.13 MB, free: 5.758 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001619/0.001619, allocations: 191.7 kB / 20.08 MB, free: 2.848 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.491/1.491, allocations: 225.6 MB / 248.5 MB, free: 3.633 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo): time 0.06048/0.06048, allocations: 11.33 MB / 314.7 MB, free: 0.8633 MB / 238.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-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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 0.001896/0.001896, allocations: 63.91 kB / 438.5 MB, free: 7.773 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.257/0.2589, allocations: 54.83 MB / 493.3 MB, free: 24.15 MB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN): time 0.003382/0.2622, allocations: 2.415 MB / 495.7 MB, free: 22.45 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002451/0.2647, allocations: 1.588 MB / 497.3 MB, free: 21.37 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002453/0.2649, allocations: 7.938 kB / 497.3 MB, free: 21.37 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001372/0.2663, allocations: 0.6282 MB / 498 MB, free: 21.18 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008157/0.2671, allocations: 411.5 kB / 498.4 MB, free: 21.02 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001439/0.2686, allocations: 0.5525 MB / 498.9 MB, free: 20.64 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007567/0.2693, allocations: 0.6749 MB / 499.6 MB, free: 20.24 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001745/0.2695, allocations: 59.33 kB / 499.7 MB, free: 20.2 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003071/0.2698, allocations: 292.9 kB / 499.9 MB, free: 20.03 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003242/0.2701, allocations: 342.3 kB / 0.4885 GB, free: 19.83 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 7.408e-05/0.2702, allocations: 35.53 kB / 0.4886 GB, free: 19.83 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003559/0.2706, allocations: 181.6 kB / 0.4888 GB, free: 19.76 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001637/0.2707, allocations: 201.2 kB / 0.4889 GB, free: 19.63 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001816/0.2709, allocations: 264.5 kB / 0.4892 GB, free: 19.42 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000686/0.2716, allocations: 0.7316 MB / 0.4899 GB, free: 18.91 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.449e-06/0.2716, allocations: 0 / 0.4899 GB, free: 18.91 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.522e-06/0.2716, allocations: 4 kB / 0.4899 GB, free: 18.91 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.867e-06/0.2716, allocations: 5.188 kB / 0.4899 GB, free: 18.91 MB / 366.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.001393/0.273, allocations: 1.065 MB / 0.491 GB, free: 17.95 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.102e-05/0.273, allocations: 17.16 kB / 0.491 GB, free: 17.94 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001267/0.2732, allocations: 72.72 kB / 0.491 GB, free: 17.9 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006043/0.2738, allocations: 0.532 MB / 0.4916 GB, free: 17.45 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.76e-05/0.2738, allocations: 16.64 kB / 0.4916 GB, free: 17.44 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.139e-05/0.2738, allocations: 29.05 kB / 0.4916 GB, free: 17.42 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004318/0.2743, allocations: 239.2 kB / 0.4918 GB, free: 17.25 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.189e-05/0.2743, allocations: 0 / 0.4918 GB, free: 17.25 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.764e-05/0.2743, allocations: 15.3 kB / 0.4919 GB, free: 17.24 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.514e-06/0.2743, allocations: 3.281 kB / 0.4919 GB, free: 17.24 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002651/0.2746, allocations: 122.1 kB / 0.492 GB, free: 17.18 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009382/0.2755, allocations: 0.7284 MB / 0.4927 GB, free: 16.58 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007173/0.2762, allocations: 258.4 kB / 0.4929 GB, free: 16.45 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001925/0.2764, allocations: 89.67 kB / 0.493 GB, free: 16.39 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.377e-05/0.2765, allocations: 8.25 kB / 0.493 GB, free: 16.39 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003644/0.2768, allocations: 219.2 kB / 0.4932 GB, free: 16.23 MB / 366.1 MB Notification: Performance of pre-optimization done (n=30): time 1.723e-06/0.2768, allocations: 0 / 0.4932 GB, free: 16.23 MB / 366.1 MB Notification: Performance of matching and sorting (n=30): time 0.0009169/0.2777, allocations: 460.4 kB / 0.4937 GB, free: 16.01 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.976e-05/0.2778, allocations: 185.8 kB / 0.4938 GB, free: 15.79 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009672/0.2788, allocations: 0.8901 MB / 0.4947 GB, free: 15.33 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.116e-05/0.2788, allocations: 43.16 kB / 0.4948 GB, free: 15.29 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001819/0.279, allocations: 280.2 kB / 0.495 GB, free: 15.05 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.945e-05/0.2791, allocations: 87.75 kB / 0.4951 GB, free: 14.97 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.216e-05/0.2791, allocations: 71 kB / 0.4952 GB, free: 14.93 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.56e-05/0.2792, allocations: 317.6 kB / 0.4955 GB, free: 14.61 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001785/0.2794, allocations: 86.52 kB / 0.4956 GB, free: 14.57 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002538/0.2796, allocations: 266.5 kB / 0.4958 GB, free: 14.31 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004336/0.2801, allocations: 305.1 kB / 0.4961 GB, free: 14.08 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/0.2801, allocations: 1.25 kB / 0.4961 GB, free: 14.08 MB / 366.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0006285/0.2807, allocations: 378.1 kB / 0.4965 GB, free: 13.88 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.119e-05/0.2807, allocations: 8.469 kB / 0.4965 GB, free: 13.88 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.316e-06/0.2807, allocations: 3.844 kB / 0.4965 GB, free: 13.88 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.281e-05/0.2808, allocations: 5.188 kB / 0.4965 GB, free: 13.88 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001852/0.2809, allocations: 59.16 kB / 0.4965 GB, free: 13.86 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.498e-06/0.281, allocations: 4.438 kB / 0.4965 GB, free: 13.86 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00024/0.2812, allocations: 41.05 kB / 0.4966 GB, free: 13.84 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.366e-05/0.2812, allocations: 16.75 kB / 0.4966 GB, free: 13.83 MB / 366.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.0003/0.2815, allocations: 258.8 kB / 0.4968 GB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.824e-05/0.2816, allocations: 75.12 kB / 0.4969 GB, free: 13.6 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001122/0.2817, allocations: 76.11 kB / 0.497 GB, free: 13.55 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.438e-06/0.2817, allocations: 3.031 kB / 0.497 GB, free: 13.55 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.213e-06/0.2817, allocations: 0 / 0.497 GB, free: 13.55 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.508e-06/0.2817, allocations: 4 kB / 0.497 GB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003829/0.2821, allocations: 472.8 kB / 0.4975 GB, free: 13.14 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.2821, allocations: 0 / 0.4975 GB, free: 13.14 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.711e-05/0.2822, allocations: 16.7 kB / 0.4975 GB, free: 13.14 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.567e-06/0.2822, allocations: 1.188 kB / 0.4975 GB, free: 13.14 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.074e-05/0.2822, allocations: 8.281 kB / 0.4975 GB, free: 13.14 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.786e-06/0.2822, allocations: 5.5 kB / 0.4975 GB, free: 13.13 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.2822, allocations: 0 / 0.4975 GB, free: 13.13 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006256/0.2828, allocations: 408.4 kB / 0.4979 GB, free: 12.9 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.904e-05/0.2829, allocations: 151 kB / 0.498 GB, free: 12.75 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.393e-05/0.283, allocations: 12.75 kB / 0.498 GB, free: 12.75 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001695/0.2832, allocations: 18.77 kB / 0.498 GB, free: 12.74 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.523e-05/0.2832, allocations: 22.34 kB / 0.4981 GB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.286e-05/0.2833, allocations: 15.23 kB / 0.4981 GB, free: 12.72 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007/0.284, allocations: 0.6521 MB / 0.4987 GB, free: 12.38 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.284, allocations: 4 kB / 0.4987 GB, free: 12.38 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004849/0.2845, allocations: 119.9 kB / 0.4988 GB, free: 12.35 MB / 366.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,reset.combiTimeTable.nextTimeEventScaled,set.combiTimeTable.nextTimeEventScaled,countDOWN.combiTimeTable.nextTimeEventScaled,countUP.combiTimeTable.nextTimeEventScaled,countUP.combiTimeTable.nextTimeEvent,countDOWN.combiTimeTable.nextTimeEvent,set.combiTimeTable.nextTimeEvent,reset.combiTimeTable.nextTimeEvent) * 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.001534/0.286, allocations: 466 kB / 0.4993 GB, free: 12.13 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005639/0.2866, allocations: 248.2 kB / 0.4995 GB, free: 12.03 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.359e-06/0.2866, allocations: 1.188 kB / 0.4995 GB, free: 12.03 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000223/0.2868, allocations: 114.2 kB / 0.4996 GB, free: 11.98 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006903/0.2875, allocations: 158.3 kB / 0.4998 GB, free: 11.9 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001415/0.2889, allocations: 1.056 MB / 0.5008 GB, free: 11.25 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000308/0.2892, allocations: 0.9009 MB / 0.5017 GB, free: 10.45 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001215/0.2893, allocations: 56.23 kB / 0.5017 GB, free: 10.43 MB / 366.1 MB Notification: Performance of SimCode: time 5.71e-07/0.2893, allocations: 0 / 0.5017 GB, free: 10.43 MB / 366.1 MB Notification: Performance of Templates: time 0.01151/0.3008, allocations: 8.481 MB / 0.51 GB, free: 3.645 MB / 366.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.281670100986958] Failed to read output from testmodel.py, exit status != 0: 0.30846564704552293 0.321453186 0.046559481 Calling exit ...