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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/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/IndustrialControlSystems 1.1.0-master/package.mo", uses=false) Using package IndustrialControlSystems with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/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 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=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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008848/0.008848, allocations: 101.1 kB / 15.73 MB, free: 6.039 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.001978/0.001978, allocations: 190.4 kB / 16.67 MB, free: 5.977 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.68/1.68, allocations: 205.1 MB / 222.6 MB, free: 4.359 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05772/0.05772, allocations: 10.74 MB / 280.6 MB, free: 10.28 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001488/0.001489, allocations: 75.88 kB / 390.8 MB, free: 5.008 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4839/0.4854, allocations: 49.02 MB / 439.9 MB, free: 5.332 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN): time 0.006823/0.4923, allocations: 2.399 MB / 442.3 MB, free: 3.637 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004561/0.4969, allocations: 1.464 MB / 443.7 MB, free: 2.637 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000827/0.4978, allocations: 7.062 kB / 443.7 MB, free: 2.633 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002585/0.5005, allocations: 0.6191 MB / 444.3 MB, free: 2.457 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.001775/0.5023, allocations: 409.6 kB / 444.7 MB, free: 2.289 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002568/0.5049, allocations: 0.5083 MB / 445.3 MB, free: 2.023 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001587/0.5065, allocations: 0.6939 MB / 445.9 MB, free: 1.723 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000331/0.5068, allocations: 93.23 kB / 446 MB, free: 1.676 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008303/0.5077, allocations: 296.2 kB / 446.3 MB, free: 1.555 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008034/0.5085, allocations: 309.8 kB / 446.6 MB, free: 1.438 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002048/0.5087, allocations: 36.22 kB / 446.7 MB, free: 1.438 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007071/0.5094, allocations: 183.5 kB / 446.8 MB, free: 1.391 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004121/0.5099, allocations: 189.5 kB / 447 MB, free: 1.297 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005485/0.5104, allocations: 269.8 kB / 447.3 MB, free: 1.086 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001524/0.512, allocations: 0.7289 MB / 448 MB, free: 0.582 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.242e-06/0.512, allocations: 0 / 448 MB, free: 0.582 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.512, allocations: 0 / 448 MB, free: 0.582 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.327e-05/0.5121, allocations: 1.156 kB / 448 MB, free: 0.582 MB / 318.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.002915/0.515, allocations: 1.058 MB / 449.1 MB, free: 15.64 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.827e-05/0.5151, allocations: 16.73 kB / 449.1 MB, free: 15.63 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002778/0.5154, allocations: 68.47 kB / 449.2 MB, free: 15.59 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001187/0.5166, allocations: 0.5246 MB / 449.7 MB, free: 15.14 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.875e-05/0.5166, allocations: 17.12 kB / 449.7 MB, free: 15.14 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.921e-05/0.5167, allocations: 20.44 kB / 449.7 MB, free: 15.13 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007628/0.5175, allocations: 259 kB / 450 MB, free: 14.94 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.976e-05/0.5175, allocations: 0 / 450 MB, free: 14.94 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.411e-05/0.5176, allocations: 7.219 kB / 450 MB, free: 14.94 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.05e-05/0.5176, allocations: 2.906 kB / 450 MB, free: 14.94 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005166/0.5181, allocations: 121.4 kB / 450.1 MB, free: 14.88 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001995/0.5201, allocations: 0.7288 MB / 450.8 MB, free: 14.27 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001321/0.5215, allocations: 273.3 kB / 451.1 MB, free: 14.13 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003679/0.5219, allocations: 98.62 kB / 451.2 MB, free: 14.08 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.785e-05/0.5219, allocations: 12.38 kB / 451.2 MB, free: 14.07 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007223/0.5227, allocations: 223.3 kB / 451.4 MB, free: 13.91 MB / 334.1 MB Notification: Performance of pre-optimization done (n=30): time 3.366e-06/0.5227, allocations: 4 kB / 451.4 MB, free: 13.91 MB / 334.1 MB Notification: Performance of matching and sorting (n=30): time 0.001711/0.5244, allocations: 443.2 kB / 451.9 MB, free: 13.7 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001723/0.5246, allocations: 189.8 kB / 452.1 MB, free: 13.47 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001893/0.5265, allocations: 0.8942 MB / 452.9 MB, free: 13.01 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.856e-05/0.5266, allocations: 41.95 kB / 453 MB, free: 12.97 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002656/0.5269, allocations: 284.5 kB / 453.3 MB, free: 12.72 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.723e-05/0.527, allocations: 67.67 kB / 453.3 MB, free: 12.66 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000157/0.5271, allocations: 75.66 kB / 453.4 MB, free: 12.61 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001246/0.5273, allocations: 321.5 kB / 453.7 MB, free: 12.3 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002059/0.5275, allocations: 78.17 kB / 453.8 MB, free: 12.26 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003668/0.5279, allocations: 262.6 kB / 454.1 MB, free: 12.01 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005771/0.5284, allocations: 305.5 kB / 454.4 MB, free: 11.78 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.844e-06/0.5285, allocations: 1.062 kB / 454.4 MB, free: 11.78 MB / 334.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0008101/0.5293, allocations: 378.8 kB / 454.7 MB, free: 11.57 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.252e-05/0.5293, allocations: 6.125 kB / 454.7 MB, free: 11.57 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.026e-05/0.5293, allocations: 3.188 kB / 454.7 MB, free: 11.57 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.09e-05/0.5293, allocations: 4.469 kB / 454.7 MB, free: 11.57 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002141/0.5296, allocations: 55.72 kB / 454.8 MB, free: 11.56 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.351e-05/0.5296, allocations: 4.438 kB / 454.8 MB, free: 11.56 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003062/0.5299, allocations: 45.58 kB / 454.8 MB, free: 11.53 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.159e-05/0.53, allocations: 19.22 kB / 454.9 MB, free: 11.52 MB / 334.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.0004316/0.5304, allocations: 264.2 kB / 455.1 MB, free: 11.33 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001304/0.5305, allocations: 69.97 kB / 455.2 MB, free: 11.29 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001381/0.5307, allocations: 70.19 kB / 455.3 MB, free: 11.25 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.921e-06/0.5307, allocations: 3.656 kB / 455.3 MB, free: 11.25 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.107e-06/0.5307, allocations: 0 / 455.3 MB, free: 11.25 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.963e-06/0.5307, allocations: 9.078 kB / 455.3 MB, free: 11.24 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000565/0.5313, allocations: 468 kB / 455.7 MB, free: 10.84 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.337e-06/0.5313, allocations: 96 / 455.7 MB, free: 10.84 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.476e-05/0.5314, allocations: 28.89 kB / 455.7 MB, free: 10.83 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.728e-06/0.5314, allocations: 1.125 kB / 455.8 MB, free: 10.83 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.706e-05/0.5314, allocations: 12.58 kB / 455.8 MB, free: 10.82 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.206e-06/0.5314, allocations: 1.062 kB / 455.8 MB, free: 10.82 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.173e-06/0.5314, allocations: 4 kB / 455.8 MB, free: 10.82 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007634/0.5322, allocations: 399.5 kB / 456.2 MB, free: 10.59 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002711/0.5325, allocations: 138.5 kB / 456.3 MB, free: 10.46 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.198e-05/0.5326, allocations: 9.156 kB / 456.3 MB, free: 10.45 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00018/0.5328, allocations: 23.34 kB / 456.3 MB, free: 10.44 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.365e-05/0.5329, allocations: 25.78 kB / 456.3 MB, free: 10.43 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.778e-05/0.5329, allocations: 15 kB / 456.4 MB, free: 10.42 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0009426/0.5339, allocations: 0.6472 MB / 457 MB, free: 10.09 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5339, allocations: 1.125 kB / 457 MB, free: 10.09 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005596/0.5344, allocations: 111.2 kB / 457.1 MB, free: 10.07 MB / 334.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.001166/0.5356, allocations: 477.3 kB / 457.6 MB, free: 9.758 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006175/0.5362, allocations: 255.3 kB / 457.8 MB, free: 9.652 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.599e-06/0.5363, allocations: 0 / 457.8 MB, free: 9.652 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000276/0.5365, allocations: 127.2 kB / 458 MB, free: 9.598 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007473/0.5373, allocations: 156.2 kB / 458.1 MB, free: 9.516 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001807/0.5391, allocations: 0.9831 MB / 459.1 MB, free: 8.938 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005931/0.5397, allocations: 0.9007 MB / 460 MB, free: 8.137 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0003131/0.54, allocations: 90.23 kB / 460.1 MB, free: 8.102 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001374/0.5402, allocations: 52.27 kB / 460.1 MB, free: 8.086 MB / 334.1 MB Notification: Performance of SimCode: time 4.71e-07/0.5402, allocations: 0 / 460.1 MB, free: 8.086 MB / 334.1 MB Notification: Performance of Templates: time 0.01767/0.5579, allocations: 7.892 MB / 468 MB, free: 392 kB / 334.1 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)