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.000883/0.0008832, allocations: 100.1 kB / 15.05 MB, free: 1.105 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.000918/0.000918, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.227/1.227, allocations: 205.4 MB / 222.1 MB, free: 5.66 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05305/0.05305, allocations: 10.74 MB / 281.1 MB, free: 10.57 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.0004324/0.0004325, allocations: 16.22 kB / 341.6 MB, free: 23.89 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07048/0.07093, allocations: 50.02 MB / 391.6 MB, free: 5.805 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN): time 0.002246/0.07321, allocations: 1.968 MB / 393.6 MB, free: 3.824 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001851/0.07509, allocations: 1.327 MB / 394.9 MB, free: 2.488 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001434/0.07525, allocations: 7.938 kB / 394.9 MB, free: 2.48 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001034/0.07629, allocations: 0.5418 MB / 395.5 MB, free: 1.938 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005637/0.07686, allocations: 351.2 kB / 395.8 MB, free: 1.594 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009908/0.07786, allocations: 447.1 kB / 396.2 MB, free: 1.156 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000481/0.07835, allocations: 435 kB / 396.7 MB, free: 0.7305 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001453/0.07851, allocations: 73.23 kB / 396.7 MB, free: 0.6523 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002523/0.07877, allocations: 247.1 kB / 397 MB, free: 420 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000241/0.07902, allocations: 259.1 kB / 397.2 MB, free: 160 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.767e-05/0.07906, allocations: 12 kB / 397.2 MB, free: 148 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002108/0.07928, allocations: 119.8 kB / 397.3 MB, free: 28 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001673/0.07946, allocations: 163.5 kB / 397.5 MB, free: 15.87 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.466e-05/0.07956, allocations: 129.2 kB / 397.6 MB, free: 15.73 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004571/0.08002, allocations: 0.5381 MB / 398.2 MB, free: 15.2 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.204e-06/0.08004, allocations: 4 kB / 398.2 MB, free: 15.19 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.08004, allocations: 0 / 398.2 MB, free: 15.19 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.903e-06/0.08006, allocations: 0 / 398.2 MB, free: 15.19 MB / 302.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.001264/0.08132, allocations: 0.9529 MB / 399.1 MB, free: 14.16 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.499e-05/0.08137, allocations: 16.03 kB / 399.1 MB, free: 14.14 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.21e-05/0.08147, allocations: 67.16 kB / 399.2 MB, free: 14.08 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006421/0.08212, allocations: 0.492 MB / 399.7 MB, free: 13.55 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.794e-05/0.08215, allocations: 20.31 kB / 399.7 MB, free: 13.53 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.076e-05/0.08219, allocations: 16 kB / 399.7 MB, free: 13.51 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003928/0.08259, allocations: 252.6 kB / 400 MB, free: 13.25 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.534e-06/0.08261, allocations: 0 / 400 MB, free: 13.25 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.69e-05/0.08264, allocations: 11.95 kB / 400 MB, free: 13.23 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.771e-06/0.08265, allocations: 4 kB / 400 MB, free: 13.23 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002409/0.0829, allocations: 119.9 kB / 400.1 MB, free: 13.11 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009155/0.08382, allocations: 0.7381 MB / 400.9 MB, free: 12.32 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006412/0.08447, allocations: 282.6 kB / 401.1 MB, free: 12.04 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.632e-05/0.08451, allocations: 8.188 kB / 401.1 MB, free: 12.03 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003432/0.08486, allocations: 220.8 kB / 401.4 MB, free: 11.8 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 1.382e-06/0.08488, allocations: 0 / 401.4 MB, free: 11.8 MB / 302.1 MB Notification: Performance of matching and sorting (n=30): time 0.0007927/0.08567, allocations: 0.5179 MB / 401.9 MB, free: 11.25 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.913e-05/0.08577, allocations: 188.5 kB / 402.1 MB, free: 11.03 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008827/0.08667, allocations: 0.8947 MB / 403 MB, free: 10.12 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.269e-05/0.08671, allocations: 37.7 kB / 403 MB, free: 10.08 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001868/0.0869, allocations: 280.6 kB / 403.3 MB, free: 9.805 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.276e-05/0.08697, allocations: 79 kB / 403.3 MB, free: 9.727 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.154e-05/0.08699, allocations: 4 kB / 403.3 MB, free: 9.723 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.677e-05/0.08708, allocations: 322 kB / 403.7 MB, free: 9.402 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001653/0.08725, allocations: 79.91 kB / 403.7 MB, free: 9.324 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002654/0.08753, allocations: 255.6 kB / 404 MB, free: 9.004 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002008/0.08774, allocations: 115.8 kB / 404.1 MB, free: 8.891 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.08775, allocations: 0 / 404.1 MB, free: 8.891 MB / 302.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0005681/0.08832, allocations: 368.7 kB / 404.5 MB, free: 8.523 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.552e-05/0.08835, allocations: 8.094 kB / 404.5 MB, free: 8.516 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.08836, allocations: 3.938 kB / 404.5 MB, free: 8.512 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.362e-05/0.08838, allocations: 8 kB / 404.5 MB, free: 8.504 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001728/0.08856, allocations: 59.84 kB / 404.5 MB, free: 8.445 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.145e-06/0.08857, allocations: 4 kB / 404.5 MB, free: 8.441 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002155/0.08879, allocations: 43.72 kB / 404.6 MB, free: 8.398 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.718e-05/0.08883, allocations: 28.03 kB / 404.6 MB, free: 8.371 MB / 302.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,$whenCondition5,$PRE.reset.combiTimeTable.nextTimeEvent,$whenCondition4,$PRE.set.combiTimeTable.nextTimeEvent,$whenCondition3,$PRE.countDOWN.combiTimeTable.nextTimeEvent,$whenCondition2,$PRE.countUP.combiTimeTable.nextTimeEvent,$whenCondition1,reset.y,reset.combiTimeTable.nextTimeEvent,$PRE.reset.combiTimeTable.nextTimeEventScaled,reset.combiTimeTable.nextTimeEventScaled,set.y,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.0002896/0.08913, allocations: 258.9 kB / 404.9 MB, free: 8.109 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.101e-05/0.0892, allocations: 63.25 kB / 404.9 MB, free: 8.047 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.982e-05/0.08931, allocations: 74.42 kB / 405 MB, free: 7.969 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.799e-06/0.08932, allocations: 8 kB / 405 MB, free: 7.961 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/0.08933, allocations: 3.984 kB / 405 MB, free: 7.957 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.08934, allocations: 0 / 405 MB, free: 7.957 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000389/0.08973, allocations: 469.1 kB / 405.5 MB, free: 7.449 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.866e-06/0.08975, allocations: 7.922 kB / 405.5 MB, free: 7.441 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.172e-05/0.08981, allocations: 12 kB / 405.5 MB, free: 7.43 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-06/0.08982, allocations: 4 kB / 405.5 MB, free: 7.426 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.94e-05/0.08985, allocations: 11.98 kB / 405.5 MB, free: 7.414 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.704e-06/0.08986, allocations: 0 / 405.5 MB, free: 7.414 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.08986, allocations: 0 / 405.5 MB, free: 7.414 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005674/0.09043, allocations: 400.1 kB / 405.9 MB, free: 7.004 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000135/0.09058, allocations: 156.2 kB / 406 MB, free: 6.832 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.905e-05/0.09065, allocations: 8 kB / 406.1 MB, free: 6.824 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001766/0.09084, allocations: 27.97 kB / 406.1 MB, free: 6.797 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.248e-05/0.09091, allocations: 19.97 kB / 406.1 MB, free: 6.777 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.814e-05/0.09094, allocations: 23.98 kB / 406.1 MB, free: 6.754 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0006439/0.09159, allocations: 0.6435 MB / 406.8 MB, free: 6.117 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.0916, allocations: 0 / 406.8 MB, free: 6.117 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000404/0.09201, allocations: 119.8 kB / 406.9 MB, free: 6 MB / 302.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 (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.0009065/0.09292, allocations: 471.8 kB / 407.3 MB, free: 5.629 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004908/0.09343, allocations: 253 kB / 407.6 MB, free: 5.383 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.09344, allocations: 4 kB / 407.6 MB, free: 5.379 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002115/0.09366, allocations: 127.8 kB / 407.7 MB, free: 5.254 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005729/0.09424, allocations: 143.9 kB / 407.9 MB, free: 5.109 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001249/0.0955, allocations: 1.061 MB / 408.9 MB, free: 4.027 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004076/0.09592, allocations: 0.9096 MB / 409.8 MB, free: 3.09 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000244/0.09618, allocations: 96.48 kB / 409.9 MB, free: 2.992 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.714e-05/0.09629, allocations: 47.42 kB / 410 MB, free: 2.949 MB / 302.1 MB Notification: Performance of SimCode: time 3.6e-07/0.09629, allocations: 0 / 410 MB, free: 2.949 MB / 302.1 MB Notification: Performance of Templates: time 0.01233/0.1086, allocations: 7.113 MB / 417.1 MB, free: 11.84 MB / 318.1 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: