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.005432/0.005432, allocations: 99.83 kB / 15.73 MB, free: 6.02 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.001185/0.001185, allocations: 193.5 kB / 16.67 MB, free: 5.934 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.381/1.381, allocations: 205.1 MB / 222.6 MB, free: 4.488 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05837/0.05836, allocations: 10.74 MB / 280.6 MB, free: 10.38 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.001619/0.001619, allocations: 64.12 kB / 390.8 MB, free: 5.027 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3217/0.3234, allocations: 49.03 MB / 439.9 MB, free: 5.344 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN): time 0.004109/0.3275, allocations: 2.394 MB / 442.3 MB, free: 3.652 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002527/0.3301, allocations: 1.475 MB / 443.7 MB, free: 2.641 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001951/0.3303, allocations: 8.062 kB / 443.7 MB, free: 2.637 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001445/0.3318, allocations: 0.6105 MB / 444.3 MB, free: 2.469 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.0008165/0.3326, allocations: 415.6 kB / 444.8 MB, free: 2.293 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001285/0.3339, allocations: 0.5101 MB / 445.3 MB, free: 2.027 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008632/0.3348, allocations: 0.6857 MB / 445.9 MB, free: 1.734 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001981/0.335, allocations: 88.7 kB / 446 MB, free: 1.691 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004209/0.3354, allocations: 304.3 kB / 446.3 MB, free: 1.562 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004084/0.3358, allocations: 301.9 kB / 446.6 MB, free: 1.453 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.663e-05/0.3359, allocations: 36.31 kB / 446.7 MB, free: 1.453 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004269/0.3363, allocations: 186.3 kB / 446.8 MB, free: 1.402 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002353/0.3366, allocations: 189.6 kB / 447 MB, free: 1.285 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000259/0.3368, allocations: 266.5 kB / 447.3 MB, free: 1.078 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000905/0.3378, allocations: 0.7305 MB / 448 MB, free: 0.5742 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.281e-06/0.3378, allocations: 3.984 kB / 448 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.3378, allocations: 0 / 448 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.818e-05/0.3378, allocations: 3.406 kB / 448 MB, free: 0.5703 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.001759/0.3396, allocations: 1.083 MB / 449.1 MB, free: 15.6 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.016e-05/0.3396, allocations: 13.17 kB / 449.1 MB, free: 15.59 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001516/0.3398, allocations: 68.39 kB / 449.2 MB, free: 15.56 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008706/0.3407, allocations: 0.5279 MB / 449.7 MB, free: 15.11 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.209e-05/0.3407, allocations: 21.45 kB / 449.7 MB, free: 15.09 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.667e-05/0.3408, allocations: 19.25 kB / 449.8 MB, free: 15.09 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004948/0.3413, allocations: 251.4 kB / 450 MB, free: 14.91 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.093e-05/0.3413, allocations: 0.6875 kB / 450 MB, free: 14.91 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.92e-05/0.3413, allocations: 6.344 kB / 450 MB, free: 14.9 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.486e-05/0.3414, allocations: 4.156 kB / 450 MB, free: 14.9 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002809/0.3416, allocations: 130 kB / 450.1 MB, free: 14.84 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001102/0.3428, allocations: 0.7443 MB / 450.9 MB, free: 14.21 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007566/0.3435, allocations: 280.4 kB / 451.2 MB, free: 14.07 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000208/0.3437, allocations: 90.75 kB / 451.2 MB, free: 14.02 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.32e-05/0.3438, allocations: 8.031 kB / 451.3 MB, free: 14.02 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004339/0.3442, allocations: 223.4 kB / 451.5 MB, free: 13.86 MB / 334.1 MB Notification: Performance of pre-optimization done (n=30): time 1.523e-06/0.3442, allocations: 1.75 kB / 451.5 MB, free: 13.86 MB / 334.1 MB Notification: Performance of matching and sorting (n=30): time 0.0009999/0.3452, allocations: 450.2 kB / 451.9 MB, free: 13.64 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001103/0.3454, allocations: 189.4 kB / 452.1 MB, free: 13.41 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001137/0.3465, allocations: 0.8949 MB / 453 MB, free: 12.95 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.549e-05/0.3466, allocations: 34.42 kB / 453 MB, free: 12.92 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002497/0.3468, allocations: 280.7 kB / 453.3 MB, free: 12.67 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.598e-05/0.3469, allocations: 84.23 kB / 453.4 MB, free: 12.6 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001159/0.347, allocations: 70.94 kB / 453.5 MB, free: 12.55 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001388/0.3472, allocations: 317.2 kB / 453.8 MB, free: 12.24 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002012/0.3474, allocations: 82.27 kB / 453.8 MB, free: 12.2 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003531/0.3477, allocations: 266.3 kB / 454.1 MB, free: 11.95 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000535/0.3483, allocations: 305.9 kB / 454.4 MB, free: 11.71 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.867e-06/0.3483, allocations: 1.125 kB / 454.4 MB, free: 11.71 MB / 334.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.000787/0.3491, allocations: 371.3 kB / 454.8 MB, free: 11.52 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.8e-05/0.3491, allocations: 9.25 kB / 454.8 MB, free: 11.52 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.176e-05/0.3491, allocations: 7.547 kB / 454.8 MB, free: 11.51 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.989e-05/0.3492, allocations: 5.938 kB / 454.8 MB, free: 11.51 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001947/0.3494, allocations: 50.33 kB / 454.8 MB, free: 11.5 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.728e-05/0.3494, allocations: 13.58 kB / 454.9 MB, free: 11.49 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002075/0.3496, allocations: 40.52 kB / 454.9 MB, free: 11.47 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.59e-05/0.3496, allocations: 11.81 kB / 454.9 MB, free: 11.47 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.000311/0.35, allocations: 271.9 kB / 455.2 MB, free: 11.27 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.491e-05/0.3501, allocations: 74 kB / 455.2 MB, free: 11.22 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001225/0.3502, allocations: 70.3 kB / 455.3 MB, free: 11.18 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.488e-06/0.3502, allocations: 4.062 kB / 455.3 MB, free: 11.18 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.264e-06/0.3502, allocations: 0 / 455.3 MB, free: 11.18 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.27e-06/0.3502, allocations: 0 / 455.3 MB, free: 11.18 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005259/0.3507, allocations: 476.6 kB / 455.8 MB, free: 10.78 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-06/0.3508, allocations: 4 kB / 455.8 MB, free: 10.77 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.137e-05/0.3508, allocations: 17.38 kB / 455.8 MB, free: 10.77 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.156e-06/0.3508, allocations: 1.25 kB / 455.8 MB, free: 10.77 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.391e-05/0.3509, allocations: 11.55 kB / 455.8 MB, free: 10.76 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.359e-06/0.3509, allocations: 1.344 kB / 455.8 MB, free: 10.76 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.133e-06/0.3509, allocations: 0 / 455.8 MB, free: 10.76 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007181/0.3516, allocations: 413 kB / 456.2 MB, free: 10.53 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001357/0.3518, allocations: 138.7 kB / 456.4 MB, free: 10.39 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.747e-05/0.3518, allocations: 16.39 kB / 456.4 MB, free: 10.38 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001683/0.352, allocations: 22.77 kB / 456.4 MB, free: 10.37 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.645e-05/0.3521, allocations: 22.19 kB / 456.4 MB, free: 10.36 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.148e-05/0.3521, allocations: 18.33 kB / 456.4 MB, free: 10.35 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0008472/0.353, allocations: 0.6443 MB / 457.1 MB, free: 10.02 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.353, allocations: 0 / 457.1 MB, free: 10.02 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004958/0.3535, allocations: 116.5 kB / 457.2 MB, free: 9.992 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.001088/0.3546, allocations: 467.4 kB / 457.6 MB, free: 9.691 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005618/0.3552, allocations: 254.9 kB / 457.9 MB, free: 9.586 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.3552, allocations: 1.719 kB / 457.9 MB, free: 9.586 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002421/0.3554, allocations: 131.1 kB / 458 MB, free: 9.527 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006559/0.3561, allocations: 155.8 kB / 458.2 MB, free: 9.445 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001432/0.3575, allocations: 1.004 MB / 459.2 MB, free: 8.844 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005297/0.3581, allocations: 0.8977 MB / 460.1 MB, free: 8.047 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002503/0.3583, allocations: 94.27 kB / 460.2 MB, free: 8.008 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001459/0.3585, allocations: 52.42 kB / 460.2 MB, free: 7.992 MB / 334.1 MB Notification: Performance of SimCode: time 4.91e-07/0.3585, allocations: 0 / 460.2 MB, free: 7.992 MB / 334.1 MB Notification: Performance of Templates: time 0.01395/0.3725, allocations: 7.904 MB / 468.1 MB, free: 284 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)