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 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo", uses=false) [Timeout 90] 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.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=500,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN") translateModel(IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN") [Timeout 660] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005782/0.005782, allocations: 96.7 kB / 15.73 MB, free: 6.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002089/0.002089, allocations: 198.7 kB / 16.68 MB, free: 5.977 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.469/1.469, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo): time 0.1957/0.1957, allocations: 11.15 MB / 301.7 MB, free: 1.312 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001957/0.001957, allocations: 67.84 kB / 417.8 MB, free: 5.594 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2421/0.2441, allocations: 51.98 MB / 469.8 MB, free: 16.98 MB / 350.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN): time 0.003861/0.248, allocations: 2.403 MB / 472.2 MB, free: 15.29 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002365/0.2504, allocations: 1.573 MB / 473.8 MB, free: 14.21 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002158/0.2506, allocations: 7.406 kB / 473.8 MB, free: 14.21 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001208/0.2519, allocations: 0.6219 MB / 474.4 MB, free: 14.01 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006686/0.2526, allocations: 404 kB / 474.8 MB, free: 13.75 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001198/0.2538, allocations: 0.5615 MB / 475.3 MB, free: 13.36 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000755/0.2545, allocations: 0.6904 MB / 476 MB, free: 12.96 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002064/0.2548, allocations: 94.06 kB / 476.1 MB, free: 12.9 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003663/0.2551, allocations: 284.8 kB / 476.4 MB, free: 12.74 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003325/0.2555, allocations: 310.3 kB / 476.7 MB, free: 12.57 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.607e-05/0.2556, allocations: 34.72 kB / 476.7 MB, free: 12.57 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003979/0.256, allocations: 181.2 kB / 476.9 MB, free: 12.49 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002127/0.2562, allocations: 198.2 kB / 477.1 MB, free: 12.37 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002389/0.2564, allocations: 264.7 kB / 477.4 MB, free: 12.16 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008775/0.2573, allocations: 0.7359 MB / 478.1 MB, free: 11.65 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.2573, allocations: 0 / 478.1 MB, free: 11.65 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.92e-07/0.2573, allocations: 1.156 kB / 478.1 MB, free: 11.65 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.659e-05/0.2574, allocations: 0 / 478.1 MB, free: 11.65 MB / 350.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.001539/0.2589, allocations: 1.078 MB / 479.2 MB, free: 10.68 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.407e-05/0.259, allocations: 12.23 kB / 479.2 MB, free: 10.68 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001323/0.2591, allocations: 72.44 kB / 479.3 MB, free: 10.64 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006396/0.2597, allocations: 0.5328 MB / 479.8 MB, free: 10.18 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.275e-05/0.2598, allocations: 12.58 kB / 479.8 MB, free: 10.18 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.184e-05/0.2598, allocations: 24.02 kB / 479.8 MB, free: 10.16 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004068/0.2602, allocations: 243.8 kB / 480.1 MB, free: 9.992 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.057e-05/0.2602, allocations: 0.75 kB / 480.1 MB, free: 9.992 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.499e-05/0.2603, allocations: 14.83 kB / 480.1 MB, free: 9.98 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.893e-06/0.2603, allocations: 3.594 kB / 480.1 MB, free: 9.98 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002661/0.2606, allocations: 120.7 kB / 480.2 MB, free: 9.922 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008619/0.2614, allocations: 0.7374 MB / 481 MB, free: 9.309 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000753/0.2622, allocations: 269.9 kB / 481.2 MB, free: 9.172 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002086/0.2624, allocations: 98.98 kB / 481.3 MB, free: 9.117 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.411e-05/0.2625, allocations: 8.219 kB / 481.3 MB, free: 9.113 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004214/0.2629, allocations: 223.6 kB / 481.5 MB, free: 8.953 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.974e-06/0.2629, allocations: 0 / 481.5 MB, free: 8.953 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.0009937/0.2639, allocations: 454.5 kB / 482 MB, free: 8.73 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.57e-05/0.264, allocations: 188.9 kB / 482.2 MB, free: 8.508 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001034/0.265, allocations: 0.8873 MB / 483.1 MB, free: 8.055 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.96e-05/0.2651, allocations: 46.97 kB / 483.1 MB, free: 8.008 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001758/0.2653, allocations: 275.8 kB / 483.4 MB, free: 7.77 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.074e-05/0.2653, allocations: 87.91 kB / 483.5 MB, free: 7.695 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.511e-05/0.2654, allocations: 68.09 kB / 483.5 MB, free: 7.652 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.173e-05/0.2655, allocations: 321.3 kB / 483.8 MB, free: 7.336 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001836/0.2657, allocations: 81.45 kB / 483.9 MB, free: 7.297 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002733/0.266, allocations: 267.2 kB / 484.2 MB, free: 7.039 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004754/0.2664, allocations: 308.6 kB / 484.5 MB, free: 6.805 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.537e-06/0.2664, allocations: 5.594 kB / 484.5 MB, free: 6.801 MB / 350.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0006663/0.2671, allocations: 373.9 kB / 484.8 MB, free: 6.602 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.202e-05/0.2672, allocations: 7.562 kB / 484.9 MB, free: 6.602 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.979e-06/0.2672, allocations: 3.188 kB / 484.9 MB, free: 6.602 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.264e-05/0.2672, allocations: 9.688 kB / 484.9 MB, free: 6.598 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001865/0.2674, allocations: 59.06 kB / 484.9 MB, free: 6.578 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.141e-05/0.2674, allocations: 9.344 kB / 484.9 MB, free: 6.574 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002535/0.2677, allocations: 39.27 kB / 485 MB, free: 6.551 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.29e-05/0.2677, allocations: 16.84 kB / 485 MB, free: 6.547 MB / 350.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.0003225/0.268, allocations: 263.3 kB / 485.2 MB, free: 6.352 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.113e-05/0.2681, allocations: 75.12 kB / 485.3 MB, free: 6.309 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001066/0.2682, allocations: 67.38 kB / 485.4 MB, free: 6.266 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.669e-06/0.2682, allocations: 2.75 kB / 485.4 MB, free: 6.266 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.084e-06/0.2683, allocations: 0 / 485.4 MB, free: 6.266 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.629e-06/0.2683, allocations: 5.359 kB / 485.4 MB, free: 6.262 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003688/0.2686, allocations: 467.3 kB / 485.8 MB, free: 5.867 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.863e-06/0.2686, allocations: 1.375 kB / 485.9 MB, free: 5.867 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.966e-05/0.2687, allocations: 24.36 kB / 485.9 MB, free: 5.855 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.357e-06/0.2687, allocations: 1.375 kB / 485.9 MB, free: 5.855 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.111e-05/0.2687, allocations: 8.125 kB / 485.9 MB, free: 5.852 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.366e-06/0.2688, allocations: 1.375 kB / 485.9 MB, free: 5.852 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.285e-06/0.2688, allocations: 3.984 kB / 485.9 MB, free: 5.848 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005953/0.2694, allocations: 405.1 kB / 486.3 MB, free: 5.621 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.603e-05/0.2695, allocations: 142.8 kB / 486.4 MB, free: 5.48 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.373e-05/0.2695, allocations: 12.91 kB / 486.4 MB, free: 5.473 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001678/0.2697, allocations: 22.09 kB / 486.5 MB, free: 5.461 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.855e-05/0.2698, allocations: 22.83 kB / 486.5 MB, free: 5.449 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.004e-05/0.2698, allocations: 14.52 kB / 486.5 MB, free: 5.445 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006572/0.2705, allocations: 0.6488 MB / 487.1 MB, free: 5.109 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2705, allocations: 0 / 487.1 MB, free: 5.109 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004671/0.271, allocations: 118.5 kB / 487.3 MB, free: 5.082 MB / 350.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.001516/0.2725, allocations: 479.9 kB / 487.7 MB, free: 4.848 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006181/0.2731, allocations: 250.1 kB / 488 MB, free: 4.746 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.078e-06/0.2731, allocations: 1 kB / 488 MB, free: 4.746 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002283/0.2734, allocations: 128 kB / 488.1 MB, free: 4.691 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006865/0.2741, allocations: 172.7 kB / 488.3 MB, free: 4.602 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001268/0.2754, allocations: 0.9961 MB / 489.3 MB, free: 4.012 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002928/0.2757, allocations: 0.8966 MB / 490.2 MB, free: 3.215 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002349/0.2759, allocations: 94.19 kB / 490.3 MB, free: 3.176 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001122/0.276, allocations: 52.2 kB / 490.3 MB, free: 3.16 MB / 350.1 MB Notification: Performance of SimCode: time 3.91e-07/0.276, allocations: 0 / 490.3 MB, free: 3.16 MB / 350.1 MB Notification: Performance of Templates: time 0.01449/0.2905, allocations: 7.901 MB / 498.2 MB, free: 12.42 MB / 366.1 MB 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]