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.008944/0.008944, allocations: 99.95 kB / 15.73 MB, free: 6.062 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.001625/0.001625, allocations: 189.3 kB / 16.67 MB, free: 5.973 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.517/1.517, allocations: 205.1 MB / 222.5 MB, free: 4.379 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05803/0.05803, allocations: 10.74 MB / 280.7 MB, free: 10.25 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.001432/0.001432, allocations: 70.94 kB / 390.8 MB, free: 4.988 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3306/0.332, allocations: 49.01 MB / 439.9 MB, free: 5.328 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN): time 0.004048/0.3361, allocations: 2.394 MB / 442.2 MB, free: 3.637 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002528/0.3387, allocations: 1.479 MB / 443.7 MB, free: 2.621 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002255/0.3389, allocations: 8.062 kB / 443.7 MB, free: 2.617 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001563/0.3405, allocations: 0.6111 MB / 444.3 MB, free: 2.449 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.001043/0.3416, allocations: 414.7 kB / 444.7 MB, free: 2.273 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001735/0.3433, allocations: 0.509 MB / 445.3 MB, free: 2.008 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001368/0.3447, allocations: 0.6899 MB / 445.9 MB, free: 1.711 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002502/0.345, allocations: 84.53 kB / 446 MB, free: 1.672 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004128/0.3454, allocations: 294.9 kB / 446.3 MB, free: 1.551 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003909/0.3458, allocations: 306.1 kB / 446.6 MB, free: 1.438 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.149e-05/0.3459, allocations: 38.91 kB / 446.7 MB, free: 1.434 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004778/0.3463, allocations: 186.2 kB / 446.8 MB, free: 1.387 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000238/0.3466, allocations: 193 kB / 447 MB, free: 1.285 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002216/0.3468, allocations: 274.1 kB / 447.3 MB, free: 1.07 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007924/0.3476, allocations: 0.7273 MB / 448 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.96e-06/0.3476, allocations: 4 kB / 448 MB, free: 0.5664 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.3476, allocations: 0 / 448 MB, free: 0.5664 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.375e-05/0.3477, allocations: 0 / 448 MB, free: 0.5664 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.001586/0.3493, allocations: 1.078 MB / 449.1 MB, free: 15.6 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.025e-05/0.3493, allocations: 12.83 kB / 449.1 MB, free: 15.6 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001583/0.3495, allocations: 73.12 kB / 449.2 MB, free: 15.56 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007777/0.3503, allocations: 0.5286 MB / 449.7 MB, free: 15.11 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.805e-05/0.3503, allocations: 11.86 kB / 449.7 MB, free: 15.1 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.595e-05/0.3504, allocations: 29.77 kB / 449.8 MB, free: 15.09 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005024/0.3509, allocations: 245.5 kB / 450 MB, free: 14.91 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.213e-05/0.3509, allocations: 7.938 kB / 450 MB, free: 14.91 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.644e-05/0.3509, allocations: 7.984 kB / 450 MB, free: 14.9 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.218e-06/0.3509, allocations: 3.938 kB / 450 MB, free: 14.9 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002756/0.3512, allocations: 125.5 kB / 450.1 MB, free: 14.84 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001121/0.3523, allocations: 0.7328 MB / 450.9 MB, free: 14.23 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008216/0.3532, allocations: 272.7 kB / 451.1 MB, free: 14.09 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002089/0.3534, allocations: 95.62 kB / 451.2 MB, free: 14.04 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.673e-05/0.3535, allocations: 11.97 kB / 451.2 MB, free: 14.03 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000423/0.3539, allocations: 223.2 kB / 451.5 MB, free: 13.87 MB / 334.1 MB Notification: Performance of pre-optimization done (n=30): time 1.523e-06/0.3539, allocations: 0 / 451.5 MB, free: 13.87 MB / 334.1 MB Notification: Performance of matching and sorting (n=30): time 0.0009515/0.3549, allocations: 451.1 kB / 451.9 MB, free: 13.65 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001184/0.355, allocations: 190.4 kB / 452.1 MB, free: 13.43 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001178/0.3562, allocations: 0.8909 MB / 453 MB, free: 12.97 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.716e-05/0.3562, allocations: 38.06 kB / 453 MB, free: 12.93 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002632/0.3565, allocations: 276.3 kB / 453.3 MB, free: 12.69 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.148e-05/0.3566, allocations: 88.52 kB / 453.4 MB, free: 12.61 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001301/0.3567, allocations: 70.91 kB / 453.4 MB, free: 12.57 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001236/0.3568, allocations: 321.6 kB / 453.8 MB, free: 12.25 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002032/0.3571, allocations: 85.7 kB / 453.8 MB, free: 12.21 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004075/0.3575, allocations: 259.4 kB / 454.1 MB, free: 11.96 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005527/0.358, allocations: 309.2 kB / 454.4 MB, free: 11.72 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.368e-06/0.358, allocations: 1.219 kB / 454.4 MB, free: 11.72 MB / 334.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0006937/0.3587, allocations: 374.8 kB / 454.8 MB, free: 11.52 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.898e-05/0.3588, allocations: 5.688 kB / 454.8 MB, free: 11.52 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.491e-05/0.3588, allocations: 3.406 kB / 454.8 MB, free: 11.52 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.167e-05/0.3588, allocations: 8.719 kB / 454.8 MB, free: 11.52 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001856/0.359, allocations: 59.47 kB / 454.8 MB, free: 11.5 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.201e-05/0.359, allocations: 5.156 kB / 454.8 MB, free: 11.5 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002653/0.3593, allocations: 40.73 kB / 454.9 MB, free: 11.48 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.087e-05/0.3594, allocations: 16.69 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.0003746/0.3597, allocations: 271.5 kB / 455.2 MB, free: 11.27 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.866e-05/0.3598, allocations: 74.59 kB / 455.2 MB, free: 11.23 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001271/0.36, allocations: 73.41 kB / 455.3 MB, free: 11.18 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.909e-06/0.36, allocations: 2.75 kB / 455.3 MB, free: 11.18 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.096e-06/0.36, allocations: 5.406 kB / 455.3 MB, free: 11.18 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.36, allocations: 0 / 455.3 MB, free: 11.18 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005229/0.3605, allocations: 472.2 kB / 455.8 MB, free: 10.78 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/0.3605, allocations: 0 / 455.8 MB, free: 10.78 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.751e-05/0.3606, allocations: 12.78 kB / 455.8 MB, free: 10.78 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.486e-06/0.3606, allocations: 9.656 kB / 455.8 MB, free: 10.77 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.43e-05/0.3607, allocations: 8.125 kB / 455.8 MB, free: 10.77 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.915e-06/0.3607, allocations: 0.875 kB / 455.8 MB, free: 10.77 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.006e-06/0.3607, allocations: 0.9688 kB / 455.8 MB, free: 10.77 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006762/0.3614, allocations: 411.1 kB / 456.2 MB, free: 10.54 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001277/0.3615, allocations: 139.2 kB / 456.3 MB, free: 10.4 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.361e-05/0.3616, allocations: 16.77 kB / 456.4 MB, free: 10.39 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001614/0.3617, allocations: 18.86 kB / 456.4 MB, free: 10.38 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.612e-05/0.3618, allocations: 27.22 kB / 456.4 MB, free: 10.36 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.576e-05/0.3619, allocations: 17.95 kB / 456.4 MB, free: 10.36 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000879/0.3628, allocations: 0.6479 MB / 457.1 MB, free: 10.02 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3628, allocations: 0 / 457.1 MB, free: 10.02 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004795/0.3633, allocations: 115.6 kB / 457.2 MB, free: 9.996 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.001054/0.3643, allocations: 468.7 kB / 457.6 MB, free: 9.691 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005538/0.3649, allocations: 251.8 kB / 457.9 MB, free: 9.59 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.3649, allocations: 0 / 457.9 MB, free: 9.59 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000248/0.3651, allocations: 127.7 kB / 458 MB, free: 9.535 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007014/0.3659, allocations: 155.3 kB / 458.2 MB, free: 9.453 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001508/0.3674, allocations: 1.005 MB / 459.2 MB, free: 8.852 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005374/0.3679, allocations: 0.9004 MB / 460.1 MB, free: 8.051 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002504/0.3682, allocations: 98.92 kB / 460.2 MB, free: 8.008 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001192/0.3683, allocations: 51.61 kB / 460.2 MB, free: 7.992 MB / 334.1 MB Notification: Performance of SimCode: time 4.61e-07/0.3683, allocations: 1.156 kB / 460.2 MB, free: 7.992 MB / 334.1 MB Notification: Performance of Templates: time 0.01485/0.3832, allocations: 7.893 MB / 468.1 MB, free: 296 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)