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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package IndustrialControlSystems with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN") translateModel(IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001018/0.001018, allocations: 169.5 kB / 7.645 MB, free: 1.434 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.0586/0.0586, allocations: 10.66 MB / 18.73 MB, free: 1.332 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.702/1.702, allocations: 205.3 MB / 226.9 MB, free: 7.914 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009036/0.0009037, allocations: 94.41 kB / 277.3 MB, free: 5.445 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.707e-05/1.709e-05, allocations: 0 / 333.5 MB, free: 28.43 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09966/0.0997, allocations: 50 MB / 383.5 MB, free: 10.39 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3297/0.4295, allocations: 81.03 MB / 464.6 MB, free: 3.719 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002313/0.4297, allocations: 92.95 kB / 464.6 MB, free: 3.672 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04471/0.4745, allocations: 16.62 MB / 481.3 MB, free: 5.902 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.182e-06/0.4745, allocations: 0 / 481.3 MB, free: 5.902 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.883e-05/0.4746, allocations: 19.98 kB / 481.3 MB, free: 5.883 MB / 346.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.001203/0.4758, allocations: 0.848 MB / 482.1 MB, free: 5 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.238e-05/0.4758, allocations: 11.97 kB / 482.1 MB, free: 4.988 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001491/0.476, allocations: 71.11 kB / 482.2 MB, free: 4.918 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009715/0.477, allocations: 0.5412 MB / 482.8 MB, free: 4.418 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.21e-05/0.477, allocations: 4 kB / 482.8 MB, free: 4.414 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.61e-05/0.477, allocations: 15.98 kB / 482.8 MB, free: 4.398 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002211/0.4773, allocations: 110.5 kB / 482.9 MB, free: 4.332 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003393/0.4776, allocations: 223.4 kB / 483.1 MB, free: 4.141 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.608e-06/0.4776, allocations: 0 / 483.1 MB, free: 4.141 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.846e-05/0.4777, allocations: 11.42 kB / 483.1 MB, free: 4.133 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.883e-06/0.4777, allocations: 4 kB / 483.1 MB, free: 4.129 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001083/0.4788, allocations: 0.7499 MB / 483.9 MB, free: 3.504 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005104/0.4793, allocations: 259.7 kB / 484.1 MB, free: 3.309 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001229/0.4794, allocations: 82.8 kB / 484.2 MB, free: 3.254 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.933e-05/0.4795, allocations: 8.156 kB / 484.2 MB, free: 3.246 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003132/0.4798, allocations: 219.4 kB / 484.4 MB, free: 3.062 MB / 346.7 MB Notification: Performance of pre-optimization done (n=30): time 1.553e-06/0.4798, allocations: 0 / 484.4 MB, free: 3.062 MB / 346.7 MB Notification: Performance of matching and sorting (n=30): time 0.0005757/0.4804, allocations: 343.8 kB / 484.8 MB, free: 2.785 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.278e-05/0.4805, allocations: 191.8 kB / 484.9 MB, free: 2.559 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009076/0.4814, allocations: 0.7589 MB / 485.7 MB, free: 1.992 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.032e-05/0.4814, allocations: 37.45 kB / 485.7 MB, free: 1.953 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001933/0.4816, allocations: 283.5 kB / 486 MB, free: 1.805 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.056e-05/0.4817, allocations: 77.55 kB / 486.1 MB, free: 1.742 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.979e-06/0.4817, allocations: 0 / 486.1 MB, free: 1.742 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000126/0.4819, allocations: 320.5 kB / 486.4 MB, free: 1.43 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001151/0.482, allocations: 74.42 kB / 486.5 MB, free: 1.383 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002426/0.4822, allocations: 244.3 kB / 486.7 MB, free: 1.117 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001569/0.4824, allocations: 98.06 kB / 486.8 MB, free: 1.055 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.067e-06/0.4824, allocations: 4 kB / 486.8 MB, free: 1.051 MB / 346.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0004775/0.4829, allocations: 335.2 kB / 487.1 MB, free: 0.7773 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.864e-05/0.4829, allocations: 4 kB / 487.1 MB, free: 0.7734 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.538e-06/0.4829, allocations: 4 kB / 487.2 MB, free: 0.7695 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.701e-05/0.483, allocations: 4 kB / 487.2 MB, free: 0.7656 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001932/0.4832, allocations: 55.34 kB / 487.2 MB, free: 0.7148 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.528e-06/0.4832, allocations: 8.25 kB / 487.2 MB, free: 0.707 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002368/0.4834, allocations: 35.83 kB / 487.3 MB, free: 0.6719 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.474e-05/0.4835, allocations: 15.12 kB / 487.3 MB, free: 0.6602 MB / 346.7 MB Warning: Assuming fixed start value for the following 5 variables: counter.CUd:DISCRETE(fixed = false ) type: Boolean counter.CDd:DISCRETE(fixed = false ) type: Boolean counter.Sd:DISCRETE(fixed = false ) type: Boolean counter.Q:DISCRETE(fixed = false ) "status of the counter (1: counting, 0: not counting)" type: Boolean counter.Value:DISCRETE(start = 0 fixed = false ) 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,$whenCondition5,$PRE.reset.combiTimeTable.nextTimeEvent,$whenCondition4,$PRE.set.combiTimeTable.nextTimeEvent,$whenCondition3,$PRE.countDOWN.combiTimeTable.nextTimeEvent,$whenCondition2,$PRE.countUP.combiTimeTable.nextTimeEvent,$whenCondition1,counter.R,reset.combiTimeTable.nextTimeEvent,$PRE.reset.combiTimeTable.nextTimeEventScaled,reset.combiTimeTable.nextTimeEventScaled,counter.S,set.combiTimeTable.nextTimeEvent,$PRE.set.combiTimeTable.nextTimeEventScaled,set.combiTimeTable.nextTimeEventScaled,countDOWN.y,countDOWN.combiTimeTable.nextTimeEvent,$PRE.countDOWN.combiTimeTable.nextTimeEventScaled,countDOWN.combiTimeTable.nextTimeEventScaled,countUP.y,countUP.combiTimeTable.nextTimeEvent,$PRE.countUP.combiTimeTable.nextTimeEventScaled,countUP.combiTimeTable.nextTimeEventScaled) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001885/0.4837, allocations: 150.4 kB / 487.4 MB, free: 0.5117 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.425e-05/0.4838, allocations: 71.11 kB / 487.5 MB, free: 452 kB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005912/0.4844, allocations: 373.4 kB / 487.8 MB, free: 156 kB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.583e-06/0.4844, allocations: 4 kB / 487.9 MB, free: 152 kB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.4844, allocations: 96 / 487.9 MB, free: 152 kB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.811e-06/0.4844, allocations: 7.922 kB / 487.9 MB, free: 144 kB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005659/0.485, allocations: 475 kB / 488.3 MB, free: 15.76 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.485, allocations: 0 / 488.3 MB, free: 15.76 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.439e-05/0.4851, allocations: 27.3 kB / 488.4 MB, free: 15.73 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.867e-06/0.4851, allocations: 4 kB / 488.4 MB, free: 15.73 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.419e-05/0.4851, allocations: 11.94 kB / 488.4 MB, free: 15.72 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.027e-06/0.4851, allocations: 4 kB / 488.4 MB, free: 15.71 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.4851, allocations: 0 / 488.4 MB, free: 15.71 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005204/0.4857, allocations: 389.3 kB / 488.7 MB, free: 15.39 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001988/0.4859, allocations: 186.3 kB / 488.9 MB, free: 15.21 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.425e-05/0.486, allocations: 11.23 kB / 488.9 MB, free: 15.2 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001946/0.4862, allocations: 31.88 kB / 489 MB, free: 15.17 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.625e-05/0.4862, allocations: 23.53 kB / 489 MB, free: 15.15 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.535e-05/0.4863, allocations: 18.98 kB / 489 MB, free: 15.14 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0006513/0.4869, allocations: 0.5963 MB / 489.6 MB, free: 14.72 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4869, allocations: 3.938 kB / 489.6 MB, free: 14.71 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004856/0.4874, allocations: 127.5 kB / 489.7 MB, free: 14.59 MB / 362.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.S,counter.R,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.combiTimeTable.nextTimeEvent,set.combiTimeTable.nextTimeEventScaled,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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000867/0.4883, allocations: 420.1 kB / 490.2 MB, free: 14.19 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004131/0.4887, allocations: 257.7 kB / 490.4 MB, free: 14 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.4887, allocations: 0.625 kB / 490.4 MB, free: 14 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001812/0.4889, allocations: 128.3 kB / 490.5 MB, free: 13.92 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006379/0.4896, allocations: 128.8 kB / 490.7 MB, free: 13.82 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001186/0.4908, allocations: 0.813 MB / 491.5 MB, free: 13.11 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004699/0.4912, allocations: 0.9231 MB / 492.4 MB, free: 12.18 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002698/0.4915, allocations: 111.5 kB / 492.5 MB, free: 12.07 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001291/0.4917, allocations: 54.98 kB / 492.6 MB, free: 12.02 MB / 362.7 MB Notification: Performance of SimCode: time 2.31e-07/0.4917, allocations: 0 / 492.6 MB, free: 12.02 MB / 362.7 MB Notification: Performance of Templates: time 0.01279/0.5045, allocations: 7.188 MB / 499.7 MB, free: 4.84 MB / 362.7 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN.makefile (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)