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.001282/0.001282, allocations: 172.7 kB / 16.12 MB, free: 5.57 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.07558/0.07558, allocations: 10.76 MB / 27.63 MB, free: 1.859 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.711/1.711, allocations: 205.4 MB / 236.2 MB, free: 10.16 MB / 202.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000801/0.000801, allocations: 86.31 kB / 287 MB, free: 12.38 MB / 234.8 MB Notification: Performance of FrontEnd - loaded program: time 0.0003771/0.0003771, allocations: 15.98 kB / 347.6 MB, free: 15.6 MB / 298.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2471/0.2475, allocations: 49.99 MB / 397.6 MB, free: 34.58 MB / 298.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.105/0.3526, allocations: 81.54 MB / 479.2 MB, free: 0.9219 MB / 346.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003268/0.353, allocations: 87.95 kB / 479.3 MB, free: 0.8359 MB / 346.8 MB Notification: Performance of FrontEnd - DAE generated: time 0.05022/0.4032, allocations: 16.91 MB / 496.2 MB, free: 15.91 MB / 378.8 MB Notification: Performance of FrontEnd: time 1.423e-06/0.4032, allocations: 0 / 496.2 MB, free: 15.91 MB / 378.8 MB Notification: Performance of Transformations before backend: time 7.493e-05/0.4033, allocations: 8 kB / 496.2 MB, free: 15.9 MB / 378.8 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.002125/0.4055, allocations: 0.9787 MB / 497.2 MB, free: 14.84 MB / 378.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.475e-05/0.4055, allocations: 8.031 kB / 497.2 MB, free: 14.83 MB / 378.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002741/0.4058, allocations: 68.09 kB / 497.2 MB, free: 14.77 MB / 378.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001269/0.4071, allocations: 0.5707 MB / 497.8 MB, free: 14.16 MB / 378.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.703e-05/0.4071, allocations: 20.69 kB / 497.8 MB, free: 14.14 MB / 378.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.173e-05/0.4072, allocations: 20.36 kB / 497.8 MB, free: 14.12 MB / 378.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005674/0.4078, allocations: 261.2 kB / 498.1 MB, free: 13.84 MB / 378.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.111e-05/0.4078, allocations: 192 / 498.1 MB, free: 13.84 MB / 378.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.41e-05/0.4079, allocations: 7.938 kB / 498.1 MB, free: 13.84 MB / 378.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.675e-06/0.4079, allocations: 4 kB / 498.1 MB, free: 13.83 MB / 378.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003445/0.4082, allocations: 135.8 kB / 498.2 MB, free: 13.7 MB / 378.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001505/0.4098, allocations: 0.7929 MB / 499 MB, free: 12.86 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008485/0.4106, allocations: 300.9 kB / 499.3 MB, free: 12.55 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002099/0.4108, allocations: 97.47 kB / 499.4 MB, free: 12.46 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 2.095e-05/0.4109, allocations: 4 kB / 499.4 MB, free: 12.45 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004122/0.4113, allocations: 236.9 kB / 499.7 MB, free: 12.2 MB / 378.8 MB Notification: Performance of pre-optimization done (n=30): time 1.884e-06/0.4113, allocations: 0 / 499.7 MB, free: 12.2 MB / 378.8 MB Notification: Performance of matching and sorting (n=30): time 0.00138/0.4127, allocations: 473.1 kB / 0.4884 GB, free: 11.73 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000105/0.4128, allocations: 183.9 kB / 0.4886 GB, free: 11.51 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001483/0.4143, allocations: 0.8908 MB / 0.4894 GB, free: 10.61 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 5.653e-05/0.4144, allocations: 37.7 kB / 0.4895 GB, free: 10.57 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002361/0.4146, allocations: 281.2 kB / 0.4897 GB, free: 10.29 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 9.062e-05/0.4147, allocations: 83 kB / 0.4898 GB, free: 10.21 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.363e-05/0.4147, allocations: 8 kB / 0.4898 GB, free: 10.2 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 0.0001301/0.4149, allocations: 318 kB / 0.4901 GB, free: 9.887 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000203/0.4151, allocations: 83.95 kB / 0.4902 GB, free: 9.805 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003341/0.4154, allocations: 267.6 kB / 0.4905 GB, free: 9.473 MB / 378.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005614/0.416, allocations: 319.6 kB / 0.4908 GB, free: 9.117 MB / 378.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.105e-06/0.416, allocations: 4 kB / 0.4908 GB, free: 9.113 MB / 378.8 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0009012/0.4169, allocations: 380.6 kB / 0.4911 GB, free: 8.734 MB / 378.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.926e-05/0.417, allocations: 4 kB / 0.4911 GB, free: 8.73 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.177e-05/0.417, allocations: 7.938 kB / 0.4912 GB, free: 8.723 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.712e-05/0.417, allocations: 4 kB / 0.4912 GB, free: 8.719 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001889/0.4172, allocations: 55.91 kB / 0.4912 GB, free: 8.664 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.294e-05/0.4172, allocations: 8.406 kB / 0.4912 GB, free: 8.656 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000299/0.4175, allocations: 47.77 kB / 0.4913 GB, free: 8.609 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.883e-05/0.4176, allocations: 15.98 kB / 0.4913 GB, free: 8.594 MB / 378.8 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.0004038/0.418, allocations: 266.1 kB / 0.4915 GB, free: 8.324 MB / 378.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001237/0.4181, allocations: 67.16 kB / 0.4916 GB, free: 8.258 MB / 378.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007451/0.4189, allocations: 419.8 kB / 0.492 GB, free: 7.836 MB / 378.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.242e-06/0.4189, allocations: 4 kB / 0.492 GB, free: 7.832 MB / 378.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.02e-06/0.4189, allocations: 0 / 0.492 GB, free: 7.832 MB / 378.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.14e-06/0.4189, allocations: 64 / 0.492 GB, free: 7.832 MB / 378.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005667/0.4195, allocations: 0.5088 MB / 0.4925 GB, free: 7.273 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.579e-06/0.4195, allocations: 7.938 kB / 0.4925 GB, free: 7.266 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.188e-05/0.4196, allocations: 31.92 kB / 0.4925 GB, free: 7.234 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.647e-06/0.4196, allocations: 0 / 0.4925 GB, free: 7.234 MB / 378.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.95e-05/0.4197, allocations: 11.94 kB / 0.4925 GB, free: 7.223 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.386e-06/0.4197, allocations: 0 / 0.4925 GB, free: 7.223 MB / 378.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.4197, allocations: 0 / 0.4925 GB, free: 7.223 MB / 378.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006866/0.4204, allocations: 420 kB / 0.4929 GB, free: 6.793 MB / 378.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002276/0.4206, allocations: 192.2 kB / 0.4931 GB, free: 6.586 MB / 378.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.663e-05/0.4207, allocations: 15.92 kB / 0.4931 GB, free: 6.57 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002022/0.4209, allocations: 23.98 kB / 0.4932 GB, free: 6.547 MB / 378.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.351e-05/0.421, allocations: 31.95 kB / 0.4932 GB, free: 6.516 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.448e-05/0.421, allocations: 8 kB / 0.4932 GB, free: 6.508 MB / 378.8 MB Notification: Performance of sorting global known variables: time 0.0009003/0.422, allocations: 0.6435 MB / 0.4938 GB, free: 5.871 MB / 378.8 MB Notification: Performance of sort global known variables: time 1.8e-07/0.422, allocations: 0 / 0.4938 GB, free: 5.871 MB / 378.8 MB Notification: Performance of remove unused functions: time 0.000614/0.4226, allocations: 139.9 kB / 0.494 GB, free: 5.734 MB / 378.8 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.001118/0.4237, allocations: 488.4 kB / 0.4944 GB, free: 5.281 MB / 378.8 MB Notification: Performance of simCode: created initialization part: time 0.0006281/0.4243, allocations: 296.2 kB / 0.4947 GB, free: 4.992 MB / 378.8 MB Notification: Performance of simCode: created event and clocks part: time 3.357e-06/0.4244, allocations: 4.062 kB / 0.4947 GB, free: 4.988 MB / 378.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0002588/0.4246, allocations: 140.4 kB / 0.4949 GB, free: 4.852 MB / 378.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007366/0.4254, allocations: 136.2 kB / 0.495 GB, free: 4.719 MB / 378.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001748/0.4271, allocations: 1.141 MB / 0.4961 GB, free: 3.547 MB / 378.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005338/0.4277, allocations: 0.9062 MB / 0.497 GB, free: 2.609 MB / 378.8 MB Notification: Performance of simCode: alias equations: time 0.0003296/0.428, allocations: 112.3 kB / 0.4971 GB, free: 2.496 MB / 378.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001333/0.4282, allocations: 55.42 kB / 0.4971 GB, free: 2.445 MB / 378.8 MB Notification: Performance of SimCode: time 4.81e-07/0.4282, allocations: 0 / 0.4971 GB, free: 2.445 MB / 378.8 MB Notification: Performance of Templates: time 0.2011/0.6293, allocations: 7.967 MB / 0.5049 GB, free: 98.64 MB / 378.8 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)