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.001343/0.001343, allocations: 106.1 kB / 16.37 MB, free: 6.453 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.001104/0.001104, allocations: 192.9 kB / 17.31 MB, free: 5.816 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.679/1.679, allocations: 205.1 MB / 223.2 MB, free: 12.26 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05967/0.05967, allocations: 10.74 MB / 281.3 MB, free: 1.316 MB / 222.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.001661/0.001662, allocations: 72.11 kB / 342 MB, free: 4.461 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2722/0.2738, allocations: 49 MB / 391 MB, free: 49.99 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN): time 0.004024/0.2779, allocations: 2.403 MB / 393.4 MB, free: 48.32 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002645/0.2806, allocations: 1.474 MB / 394.9 MB, free: 47.3 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004204/0.281, allocations: 8.062 kB / 394.9 MB, free: 47.3 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001444/0.2825, allocations: 0.6127 MB / 395.5 MB, free: 47.13 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.001063/0.2836, allocations: 417.7 kB / 395.9 MB, free: 46.96 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001401/0.285, allocations: 0.5115 MB / 396.4 MB, free: 46.7 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001081/0.2861, allocations: 0.6932 MB / 397.1 MB, free: 46.4 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002478/0.2864, allocations: 87.78 kB / 397.2 MB, free: 46.36 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005828/0.2869, allocations: 293.9 kB / 397.5 MB, free: 46.24 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005689/0.2875, allocations: 305.4 kB / 397.8 MB, free: 46.12 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001368/0.2877, allocations: 35.28 kB / 397.8 MB, free: 46.12 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004346/0.2881, allocations: 186.7 kB / 398 MB, free: 46.08 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002485/0.2884, allocations: 188.1 kB / 398.2 MB, free: 46 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003689/0.2887, allocations: 263.7 kB / 398.4 MB, free: 45.81 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000972/0.2897, allocations: 0.7313 MB / 399.2 MB, free: 45.34 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.2897, allocations: 4 kB / 399.2 MB, free: 45.34 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.2898, allocations: 0 / 399.2 MB, free: 45.34 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.153e-05/0.2898, allocations: 0 / 399.2 MB, free: 45.34 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.00199/0.2918, allocations: 1.055 MB / 400.2 MB, free: 44.4 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.593e-05/0.2918, allocations: 14.05 kB / 400.2 MB, free: 44.39 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002177/0.2921, allocations: 67.47 kB / 400.3 MB, free: 44.36 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008219/0.2929, allocations: 0.5201 MB / 400.8 MB, free: 43.92 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.307e-05/0.2929, allocations: 16.88 kB / 400.8 MB, free: 43.91 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.189e-05/0.293, allocations: 20.69 kB / 400.9 MB, free: 43.9 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004931/0.2935, allocations: 255.3 kB / 401.1 MB, free: 43.72 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.369e-05/0.2935, allocations: 4 kB / 401.1 MB, free: 43.71 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.764e-05/0.2935, allocations: 10.34 kB / 401.1 MB, free: 43.71 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.107e-06/0.2936, allocations: 8.406 kB / 401.1 MB, free: 43.7 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002811/0.2939, allocations: 117.3 kB / 401.3 MB, free: 43.65 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001146/0.295, allocations: 0.7294 MB / 402 MB, free: 43.04 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007021/0.2957, allocations: 272.5 kB / 402.2 MB, free: 42.9 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000204/0.2959, allocations: 99.64 kB / 402.3 MB, free: 42.85 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.34e-05/0.296, allocations: 11.25 kB / 402.4 MB, free: 42.84 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003961/0.2964, allocations: 219.6 kB / 402.6 MB, free: 42.68 MB / 318.1 MB Notification: Performance of pre-optimization done (n=30): time 2.083e-06/0.2964, allocations: 0 / 402.6 MB, free: 42.68 MB / 318.1 MB Notification: Performance of matching and sorting (n=30): time 0.001005/0.2974, allocations: 452.1 kB / 403 MB, free: 42.46 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.787e-05/0.2975, allocations: 188.6 kB / 403.2 MB, free: 42.24 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001104/0.2986, allocations: 0.8951 MB / 404.1 MB, free: 41.78 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.434e-05/0.2987, allocations: 37.89 kB / 404.1 MB, free: 41.74 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001788/0.2988, allocations: 284.6 kB / 404.4 MB, free: 41.5 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.439e-05/0.2989, allocations: 71.7 kB / 404.5 MB, free: 41.44 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.842e-05/0.299, allocations: 72.47 kB / 404.5 MB, free: 41.39 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.471e-05/0.2991, allocations: 320.9 kB / 404.9 MB, free: 41.07 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001874/0.2993, allocations: 85.34 kB / 404.9 MB, free: 41.03 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002979/0.2996, allocations: 264.6 kB / 405.2 MB, free: 40.78 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004539/0.3, allocations: 305.5 kB / 405.5 MB, free: 40.55 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.709e-06/0.3001, allocations: 1.344 kB / 405.5 MB, free: 40.55 MB / 318.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0006771/0.3007, allocations: 377.7 kB / 405.9 MB, free: 40.34 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.911e-05/0.3008, allocations: 7.75 kB / 405.9 MB, free: 40.34 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.476e-06/0.3008, allocations: 3.125 kB / 405.9 MB, free: 40.34 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.431e-05/0.3008, allocations: 5.219 kB / 405.9 MB, free: 40.34 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001833/0.301, allocations: 55.28 kB / 405.9 MB, free: 40.33 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.229e-05/0.301, allocations: 9.781 kB / 405.9 MB, free: 40.32 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002762/0.3013, allocations: 39.92 kB / 406 MB, free: 40.3 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.61e-05/0.3013, allocations: 16.03 kB / 406 MB, free: 40.3 MB / 318.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.0003338/0.3017, allocations: 272.2 kB / 406.3 MB, free: 40.09 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.654e-05/0.3018, allocations: 70.19 kB / 406.3 MB, free: 40.05 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001119/0.3019, allocations: 66.47 kB / 406.4 MB, free: 40.01 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.1e-06/0.3019, allocations: 2.688 kB / 406.4 MB, free: 40.01 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.729e-06/0.3019, allocations: 5.469 kB / 406.4 MB, free: 40.01 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.089e-06/0.3019, allocations: 3.984 kB / 406.4 MB, free: 40 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004508/0.3024, allocations: 472.2 kB / 406.9 MB, free: 39.61 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/0.3024, allocations: 0 / 406.9 MB, free: 39.61 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.065e-05/0.3025, allocations: 21.17 kB / 406.9 MB, free: 39.6 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.537e-06/0.3025, allocations: 1.281 kB / 406.9 MB, free: 39.6 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.493e-05/0.3025, allocations: 7.625 kB / 406.9 MB, free: 39.59 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.248e-06/0.3025, allocations: 5.266 kB / 406.9 MB, free: 39.59 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.3025, allocations: 0 / 406.9 MB, free: 39.59 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006797/0.3032, allocations: 400 kB / 407.3 MB, free: 39.37 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001246/0.3033, allocations: 138.7 kB / 407.4 MB, free: 39.23 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.944e-05/0.3034, allocations: 12.06 kB / 407.4 MB, free: 39.22 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001557/0.3036, allocations: 23.28 kB / 407.5 MB, free: 39.21 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.905e-05/0.3037, allocations: 22.14 kB / 407.5 MB, free: 39.2 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.3e-05/0.3037, allocations: 15.55 kB / 407.5 MB, free: 39.2 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0007025/0.3044, allocations: 0.6557 MB / 408.2 MB, free: 38.86 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3044, allocations: 0 / 408.2 MB, free: 38.86 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005534/0.305, allocations: 111.6 kB / 408.3 MB, free: 38.84 MB / 318.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.001078/0.3061, allocations: 467.9 kB / 408.7 MB, free: 38.57 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004746/0.3066, allocations: 256.3 kB / 409 MB, free: 38.32 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.3066, allocations: 0 / 409 MB, free: 38.32 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002169/0.3068, allocations: 127.8 kB / 409.1 MB, free: 38.2 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006433/0.3075, allocations: 163.9 kB / 409.3 MB, free: 38.04 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001176/0.3086, allocations: 0.987 MB / 410.3 MB, free: 37.03 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003005/0.309, allocations: 0.8976 MB / 411.1 MB, free: 36.11 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002163/0.3092, allocations: 96.48 kB / 411.2 MB, free: 36.01 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.419e-05/0.3093, allocations: 55.36 kB / 411.3 MB, free: 35.96 MB / 318.1 MB Notification: Performance of SimCode: time 2.31e-07/0.3093, allocations: 0 / 411.3 MB, free: 35.96 MB / 318.1 MB Notification: Performance of Templates: time 0.01234/0.3216, allocations: 7.836 MB / 419.1 MB, free: 28.13 MB / 318.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 -s cvode -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN.pipe 2>&1)