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.0102/0.0102, allocations: 173.6 kB / 15.12 MB, free: 5.973 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05974/0.05974, allocations: 10.74 MB / 26.59 MB, free: 2.266 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.54/1.54, allocations: 205.4 MB / 235.2 MB, free: 164 kB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009452/0.0009451, allocations: 89.62 kB / 285.9 MB, free: 10.64 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003282/0.0003283, allocations: 8 kB / 346.4 MB, free: 5.168 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1099/0.1102, allocations: 50 MB / 396.4 MB, free: 3.07 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3165/0.4268, allocations: 81.48 MB / 477.9 MB, free: 14.75 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002474/0.4271, allocations: 86.14 kB / 478 MB, free: 14.72 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03972/0.4668, allocations: 16.81 MB / 494.8 MB, free: 0.6953 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.004e-06/0.4669, allocations: 0 / 494.8 MB, free: 0.6953 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.298e-05/0.4669, allocations: 15.98 kB / 494.8 MB, free: 0.6797 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.001298/0.4682, allocations: 0.9753 MB / 495.8 MB, free: 15.67 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.133e-05/0.4683, allocations: 16.03 kB / 495.8 MB, free: 15.66 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001288/0.4684, allocations: 67.16 kB / 495.9 MB, free: 15.59 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009753/0.4694, allocations: 0.5492 MB / 496.4 MB, free: 15.08 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.618e-05/0.4695, allocations: 12.14 kB / 496.4 MB, free: 15.07 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.515e-05/0.4695, allocations: 19.86 kB / 496.4 MB, free: 15.05 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004567/0.47, allocations: 260.6 kB / 496.7 MB, free: 14.84 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.003e-05/0.47, allocations: 0 / 496.7 MB, free: 14.84 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.807e-05/0.47, allocations: 11.12 kB / 496.7 MB, free: 14.84 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.534e-06/0.47, allocations: 4 kB / 496.7 MB, free: 14.83 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002656/0.4703, allocations: 126 kB / 496.8 MB, free: 14.75 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00121/0.4715, allocations: 0.8001 MB / 497.6 MB, free: 14.07 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007815/0.4723, allocations: 305.2 kB / 497.9 MB, free: 13.84 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.811e-05/0.4724, allocations: 7.938 kB / 497.9 MB, free: 13.83 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003789/0.4727, allocations: 227.9 kB / 498.2 MB, free: 13.64 MB / 362.7 MB Notification: Performance of pre-optimization done (n=30): time 2.404e-06/0.4728, allocations: 3.938 kB / 498.2 MB, free: 13.64 MB / 362.7 MB Notification: Performance of matching and sorting (n=30): time 0.0009239/0.4737, allocations: 0.5434 MB / 498.7 MB, free: 13.18 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001056/0.4738, allocations: 183.9 kB / 498.9 MB, free: 12.95 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001058/0.4749, allocations: 0.8115 MB / 499.7 MB, free: 12.22 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.639e-05/0.4749, allocations: 33.7 kB / 499.7 MB, free: 12.18 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002255/0.4751, allocations: 285.2 kB / 0.4883 GB, free: 11.9 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.054e-05/0.4752, allocations: 78.98 kB / 0.4884 GB, free: 11.82 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.202e-05/0.4752, allocations: 8 kB / 0.4884 GB, free: 11.81 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001248/0.4754, allocations: 322 kB / 0.4887 GB, free: 11.49 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001871/0.4756, allocations: 91.08 kB / 0.4888 GB, free: 11.41 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003165/0.4759, allocations: 266.4 kB / 0.489 GB, free: 11.08 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002654/0.4762, allocations: 118.9 kB / 0.4891 GB, free: 10.96 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.906e-06/0.4762, allocations: 0 / 0.4891 GB, free: 10.96 MB / 362.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0006821/0.4769, allocations: 384.6 kB / 0.4895 GB, free: 10.58 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.754e-05/0.4769, allocations: 7.938 kB / 0.4895 GB, free: 10.57 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.594e-06/0.4769, allocations: 4 kB / 0.4895 GB, free: 10.57 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.733e-05/0.4769, allocations: 4 kB / 0.4895 GB, free: 10.57 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001908/0.4771, allocations: 55.91 kB / 0.4896 GB, free: 10.51 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.33e-05/0.4772, allocations: 8 kB / 0.4896 GB, free: 10.5 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000245/0.4774, allocations: 43.97 kB / 0.4896 GB, free: 10.46 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.516e-05/0.4774, allocations: 16 kB / 0.4896 GB, free: 10.45 MB / 362.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(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,$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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003526/0.4778, allocations: 266.3 kB / 0.4899 GB, free: 10.18 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001004/0.4779, allocations: 67.16 kB / 0.4899 GB, free: 10.11 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007151/0.4786, allocations: 411.9 kB / 0.4903 GB, free: 9.699 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.55e-06/0.4786, allocations: 4 kB / 0.4903 GB, free: 9.695 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.443e-05/0.4787, allocations: 0 / 0.4903 GB, free: 9.695 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.017e-06/0.4787, allocations: 3.938 kB / 0.4903 GB, free: 9.691 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005254/0.4792, allocations: 0.5088 MB / 0.4908 GB, free: 9.133 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.586e-06/0.4792, allocations: 3.953 kB / 0.4908 GB, free: 9.129 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.247e-05/0.4793, allocations: 27.92 kB / 0.4909 GB, free: 9.102 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.906e-06/0.4793, allocations: 0 / 0.4909 GB, free: 9.102 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.278e-05/0.4793, allocations: 8 kB / 0.4909 GB, free: 9.094 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.4793, allocations: 4 kB / 0.4909 GB, free: 9.09 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.928e-06/0.4794, allocations: 7.984 kB / 0.4909 GB, free: 9.082 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006865/0.48, allocations: 424.3 kB / 0.4913 GB, free: 8.648 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002572/0.4803, allocations: 192.1 kB / 0.4915 GB, free: 8.441 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.862e-05/0.4804, allocations: 11.98 kB / 0.4915 GB, free: 8.43 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001823/0.4806, allocations: 27.98 kB / 0.4915 GB, free: 8.402 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.275e-05/0.4807, allocations: 27.95 kB / 0.4915 GB, free: 8.375 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.661e-05/0.4807, allocations: 12.09 kB / 0.4916 GB, free: 8.363 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0007703/0.4815, allocations: 0.6434 MB / 0.4922 GB, free: 7.723 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4815, allocations: 0 / 0.4922 GB, free: 7.723 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005194/0.482, allocations: 139.9 kB / 0.4923 GB, free: 7.586 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) * 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 (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.001042/0.4831, allocations: 486 kB / 0.4928 GB, free: 7.145 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005975/0.4837, allocations: 291.6 kB / 0.4931 GB, free: 6.859 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.4837, allocations: 0 / 0.4931 GB, free: 6.859 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002618/0.484, allocations: 148.4 kB / 0.4932 GB, free: 6.715 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006191/0.4846, allocations: 144.3 kB / 0.4933 GB, free: 6.578 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001637/0.4862, allocations: 1.138 MB / 0.4945 GB, free: 5.41 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005505/0.4868, allocations: 0.9178 MB / 0.4953 GB, free: 4.465 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002954/0.4871, allocations: 108.9 kB / 0.4955 GB, free: 4.359 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001322/0.4872, allocations: 51.44 kB / 0.4955 GB, free: 4.309 MB / 362.7 MB Notification: Performance of SimCode: time 3.41e-07/0.4872, allocations: 4 kB / 0.4955 GB, free: 4.305 MB / 362.7 MB Notification: Performance of Templates: time 0.01373/0.501, allocations: 7.868 MB / 0.5032 GB, free: 12.44 MB / 378.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)