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.001839/0.001839, allocations: 85.48 kB / 19.44 MB, free: 340 kB / 13.93 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.002594/0.002594, allocations: 169.2 kB / 22.76 MB, free: 1.664 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 1.623/1.623, allocations: 177.1 MB / 203.1 MB, free: 5.348 MB / 186.7 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.07296/0.07296, allocations: 8.614 MB / 268.2 MB, free: 4.793 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.863e-06/1.863e-06, allocations: 0 / 340.1 MB, free: 8.727 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.128e-05/3.314e-05, allocations: 4.844 kB / 340.1 MB, free: 8.723 MB / 266.7 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN): time 0.00296/0.002993, allocations: 2.404 MB / 342.5 MB, free: 6.301 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002437/0.00543, allocations: 1.668 MB / 344.2 MB, free: 4.625 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001826/0.005613, allocations: 7.938 kB / 344.2 MB, free: 4.617 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001204/0.006817, allocations: 0.6389 MB / 344.9 MB, free: 3.977 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007801/0.007597, allocations: 498 kB / 345.3 MB, free: 3.488 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008518/0.008449, allocations: 442.9 kB / 345.8 MB, free: 3.055 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000508/0.008957, allocations: 0.7323 MB / 346.5 MB, free: 2.32 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001396/0.009096, allocations: 57.92 kB / 346.6 MB, free: 2.258 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003344/0.009431, allocations: 387 kB / 346.9 MB, free: 1.879 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002634/0.009694, allocations: 311.2 kB / 347.2 MB, free: 1.574 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.344e-05/0.009758, allocations: 36 kB / 347.3 MB, free: 1.539 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003112/0.01007, allocations: 195.6 kB / 347.5 MB, free: 1.348 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001445/0.01021, allocations: 211.3 kB / 347.7 MB, free: 1.141 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001438/0.01036, allocations: 151.5 kB / 347.8 MB, free: 0.9922 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006062/0.01096, allocations: 0.7631 MB / 348.6 MB, free: 232 kB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.696e-06/0.01097, allocations: 3.938 kB / 348.6 MB, free: 228 kB / 266.7 MB Notification: Performance of FrontEnd: time 1.453e-06/0.01097, allocations: 4 kB / 348.6 MB, free: 224 kB / 266.7 MB Notification: Performance of Transformations before backend: time 7.925e-06/0.01098, allocations: 0 / 348.6 MB, free: 224 kB / 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.001786/0.01276, allocations: 1.175 MB / 349.8 MB, free: 14.98 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.987e-05/0.01281, allocations: 8.031 kB / 349.8 MB, free: 14.97 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000178/0.01299, allocations: 92.41 kB / 349.9 MB, free: 14.88 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000846/0.01384, allocations: 483.6 kB / 350.3 MB, free: 14.38 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.995e-05/0.01387, allocations: 12.7 kB / 350.4 MB, free: 14.37 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.788e-05/0.0139, allocations: 16.38 kB / 350.4 MB, free: 14.35 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004636/0.01437, allocations: 244.1 kB / 350.6 MB, free: 14.1 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.361e-05/0.01438, allocations: 3.938 kB / 350.6 MB, free: 14.09 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.399e-05/0.0144, allocations: 4 kB / 350.6 MB, free: 14.09 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.294e-06/0.01441, allocations: 4 kB / 350.6 MB, free: 14.09 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002849/0.0147, allocations: 108.5 kB / 350.7 MB, free: 13.98 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001365/0.01606, allocations: 0.7725 MB / 351.5 MB, free: 13.17 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007738/0.01684, allocations: 265 kB / 351.8 MB, free: 12.91 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002014/0.01704, allocations: 87.58 kB / 351.8 MB, free: 12.82 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.514e-05/0.01706, allocations: 4 kB / 351.8 MB, free: 12.81 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005018/0.01756, allocations: 292.8 kB / 352.1 MB, free: 12.49 MB / 282.7 MB Notification: Performance of pre-optimization done (n=30): time 1.703e-06/0.01757, allocations: 0 / 352.1 MB, free: 12.49 MB / 282.7 MB Notification: Performance of matching and sorting (n=30): time 0.001012/0.01858, allocations: 441 kB / 352.6 MB, free: 12.05 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.511e-05/0.01866, allocations: 81.11 kB / 352.6 MB, free: 11.96 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001276/0.01994, allocations: 0.9018 MB / 353.5 MB, free: 11.04 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.597e-05/0.01999, allocations: 37.7 kB / 353.6 MB, free: 10.99 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004105/0.0204, allocations: 399.3 kB / 354 MB, free: 10.6 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001084/0.0205, allocations: 91.41 kB / 354.1 MB, free: 10.51 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001531/0.02066, allocations: 87.34 kB / 354.1 MB, free: 10.41 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.000274/0.02093, allocations: 0.4965 MB / 354.6 MB, free: 9.91 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000181/0.02111, allocations: 67.97 kB / 354.7 MB, free: 9.844 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004726/0.02159, allocations: 402.4 kB / 355.1 MB, free: 9.34 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005841/0.02217, allocations: 335.3 kB / 355.4 MB, free: 8.953 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.777e-06/0.02217, allocations: 0 / 355.4 MB, free: 8.953 MB / 282.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0007406/0.02291, allocations: 365.1 kB / 355.8 MB, free: 8.59 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.313e-05/0.02294, allocations: 12.77 kB / 355.8 MB, free: 8.578 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.04e-05/0.02295, allocations: 4.312 kB / 355.8 MB, free: 8.574 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.342e-05/0.02297, allocations: 11.94 kB / 355.8 MB, free: 8.562 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002099/0.02318, allocations: 59.86 kB / 355.9 MB, free: 8.504 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.319e-05/0.02319, allocations: 7.984 kB / 355.9 MB, free: 8.496 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002329/0.02343, allocations: 35.83 kB / 355.9 MB, free: 8.461 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.038e-05/0.02346, allocations: 16 kB / 355.9 MB, free: 8.445 MB / 282.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.0003429/0.0238, allocations: 237.4 kB / 356.2 MB, free: 8.203 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001306/0.02393, allocations: 83.53 kB / 356.2 MB, free: 8.121 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008641/0.02479, allocations: 380.9 kB / 356.6 MB, free: 7.742 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.717e-06/0.0248, allocations: 7.938 kB / 356.6 MB, free: 7.734 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.02481, allocations: 0 / 356.6 MB, free: 7.734 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.658e-06/0.02481, allocations: 0 / 356.6 MB, free: 7.734 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006657/0.02548, allocations: 488.2 kB / 357.1 MB, free: 7.223 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.602e-06/0.02548, allocations: 4 kB / 357.1 MB, free: 7.219 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.294e-05/0.02558, allocations: 27.98 kB / 357.1 MB, free: 7.191 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.507e-06/0.02558, allocations: 3.938 kB / 357.1 MB, free: 7.188 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.141e-05/0.0256, allocations: 8 kB / 357.1 MB, free: 7.18 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.195e-06/0.0256, allocations: 0 / 357.1 MB, free: 7.18 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/0.02561, allocations: 3.938 kB / 357.2 MB, free: 7.176 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007752/0.02638, allocations: 431.8 kB / 357.6 MB, free: 6.73 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001568/0.02654, allocations: 67.5 kB / 357.6 MB, free: 6.664 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.7e-05/0.02662, allocations: 11.98 kB / 357.6 MB, free: 6.652 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001702/0.02679, allocations: 15.98 kB / 357.7 MB, free: 6.637 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.417e-05/0.02688, allocations: 35.89 kB / 357.7 MB, free: 6.602 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.828e-05/0.02692, allocations: 15.98 kB / 357.7 MB, free: 6.586 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0008701/0.02779, allocations: 0.5576 MB / 358.3 MB, free: 6.031 MB / 282.7 MB Notification: Performance of sort global known variables: time 9e-08/0.02779, allocations: 7.938 kB / 358.3 MB, free: 6.023 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004863/0.02828, allocations: 119.8 kB / 358.4 MB, free: 5.906 MB / 282.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.003019/0.0313, allocations: 0.4967 MB / 358.9 MB, free: 5.586 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0006289/0.03192, allocations: 255.3 kB / 359.1 MB, free: 5.332 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.03193, allocations: 0.625 kB / 359.1 MB, free: 5.332 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002883/0.03221, allocations: 151.9 kB / 359.3 MB, free: 5.18 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007969/0.03301, allocations: 182.3 kB / 359.5 MB, free: 5.016 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001585/0.0346, allocations: 0.916 MB / 360.4 MB, free: 4.062 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003713/0.03497, allocations: 306.5 kB / 360.7 MB, free: 3.742 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002226/0.03519, allocations: 80.5 kB / 360.8 MB, free: 3.664 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001422/0.03533, allocations: 48.5 kB / 360.8 MB, free: 3.617 MB / 282.7 MB Notification: Performance of SimCode: time 7.92e-07/0.03533, allocations: 0 / 360.8 MB, free: 3.617 MB / 282.7 MB Notification: Performance of Templates: time 0.01841/0.05374, allocations: 8.236 MB / 369 MB, free: 11.48 MB / 298.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: 4.761096986010671]