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.001161/0.001161, allocations: 108.7 kB / 16.41 MB, free: 6.469 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.001156/0.001156, allocations: 189.4 kB / 17.35 MB, free: 5.711 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 / 223.2 MB, free: 12.2 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.06013/0.06013, allocations: 10.75 MB / 281.3 MB, free: 1.277 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.001475/0.001475, allocations: 75.95 kB / 391.5 MB, free: 46 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06506/0.06655, allocations: 49.03 MB / 440.5 MB, free: 3.816 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN): time 0.002961/0.06954, allocations: 2.391 MB / 442.9 MB, free: 1.406 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001994/0.07155, allocations: 1.478 MB / 444.4 MB, free: 15.92 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002662/0.07184, allocations: 7.938 kB / 444.4 MB, free: 15.91 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001304/0.07317, allocations: 0.6118 MB / 445 MB, free: 15.3 MB / 334.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.0008296/0.07401, allocations: 410.4 kB / 445.4 MB, free: 14.9 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001207/0.07523, allocations: 0.5171 MB / 445.9 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007499/0.07599, allocations: 0.6702 MB / 446.6 MB, free: 13.72 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001879/0.07619, allocations: 105 kB / 446.7 MB, free: 13.61 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003912/0.07658, allocations: 290.9 kB / 447 MB, free: 13.33 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004013/0.07701, allocations: 314.8 kB / 447.3 MB, free: 13.02 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.771e-05/0.0771, allocations: 36 kB / 447.3 MB, free: 12.98 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003264/0.07743, allocations: 179.8 kB / 447.5 MB, free: 12.81 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001833/0.07763, allocations: 187.4 kB / 447.7 MB, free: 12.62 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002493/0.07788, allocations: 266.3 kB / 448 MB, free: 12.36 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007693/0.07866, allocations: 0.7274 MB / 448.7 MB, free: 11.63 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.885e-06/0.07867, allocations: 0 / 448.7 MB, free: 11.63 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.07868, allocations: 0 / 448.7 MB, free: 11.63 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.703e-05/0.0787, allocations: 0 / 448.7 MB, free: 11.63 MB / 334.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.001497/0.08021, allocations: 1.081 MB / 449.8 MB, free: 10.47 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.534e-05/0.08025, allocations: 11.89 kB / 449.8 MB, free: 10.46 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001279/0.08038, allocations: 68.52 kB / 449.8 MB, free: 10.39 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007186/0.08111, allocations: 0.5323 MB / 450.4 MB, free: 9.82 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.171e-05/0.08114, allocations: 16.69 kB / 450.4 MB, free: 9.805 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.864e-05/0.08119, allocations: 20.12 kB / 450.4 MB, free: 9.785 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004559/0.08165, allocations: 256.6 kB / 450.7 MB, free: 9.516 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.838e-06/0.08167, allocations: 0 / 450.7 MB, free: 9.516 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.794e-05/0.0817, allocations: 8 kB / 450.7 MB, free: 9.508 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.684e-06/0.08172, allocations: 4 kB / 450.7 MB, free: 9.504 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002847/0.08201, allocations: 119.9 kB / 450.8 MB, free: 9.387 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001007/0.08302, allocations: 0.7343 MB / 451.5 MB, free: 8.602 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000707/0.08374, allocations: 274.5 kB / 451.8 MB, free: 8.324 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002065/0.08396, allocations: 100.8 kB / 451.9 MB, free: 8.223 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.338e-05/0.08399, allocations: 3.938 kB / 451.9 MB, free: 8.219 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003838/0.08438, allocations: 225 kB / 452.1 MB, free: 7.98 MB / 334.1 MB Notification: Performance of pre-optimization done (n=30): time 1.663e-06/0.08439, allocations: 0 / 452.1 MB, free: 7.98 MB / 334.1 MB Notification: Performance of matching and sorting (n=30): time 0.0009145/0.08531, allocations: 450.3 kB / 452.6 MB, free: 7.535 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.846e-05/0.08541, allocations: 191.9 kB / 452.7 MB, free: 7.305 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000983/0.0864, allocations: 0.8948 MB / 453.6 MB, free: 6.402 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.294e-05/0.08644, allocations: 41.7 kB / 453.7 MB, free: 6.355 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000217/0.08666, allocations: 285.2 kB / 454 MB, free: 6.07 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.801e-05/0.08674, allocations: 79.39 kB / 454 MB, free: 5.992 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.44e-05/0.08684, allocations: 65.69 kB / 454.1 MB, free: 5.922 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.49e-05/0.08694, allocations: 322 kB / 454.4 MB, free: 5.602 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001938/0.08714, allocations: 87.91 kB / 454.5 MB, free: 5.516 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003072/0.08745, allocations: 271.4 kB / 454.8 MB, free: 5.18 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004918/0.08796, allocations: 303.8 kB / 455.1 MB, free: 4.84 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.516e-06/0.08797, allocations: 0 / 455.1 MB, free: 4.84 MB / 334.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0006833/0.08866, allocations: 376.8 kB / 455.4 MB, free: 4.465 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.502e-05/0.08868, allocations: 4 kB / 455.4 MB, free: 4.461 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.787e-06/0.0887, allocations: 4 kB / 455.4 MB, free: 4.457 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.444e-05/0.08872, allocations: 4.312 kB / 455.4 MB, free: 4.453 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001869/0.08891, allocations: 63.84 kB / 455.5 MB, free: 4.391 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.058e-05/0.08893, allocations: 8 kB / 455.5 MB, free: 4.383 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000223/0.08916, allocations: 39.77 kB / 455.6 MB, free: 4.344 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.535e-05/0.08919, allocations: 16 kB / 455.6 MB, free: 4.328 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.0002932/0.08949, allocations: 263 kB / 455.8 MB, free: 4.062 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.106e-05/0.08959, allocations: 75.47 kB / 455.9 MB, free: 3.988 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001043/0.0897, allocations: 70.48 kB / 456 MB, free: 3.918 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.877e-06/0.08971, allocations: 0 / 456 MB, free: 3.918 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.806e-06/0.08972, allocations: 3.984 kB / 456 MB, free: 3.914 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000116/0.08984, allocations: 144.6 kB / 456.1 MB, free: 3.754 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.132e-05/0.08993, allocations: 12 kB / 456.1 MB, free: 3.742 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001726/0.0901, allocations: 19.92 kB / 456.1 MB, free: 3.723 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.468e-05/0.09018, allocations: 27.97 kB / 456.2 MB, free: 3.695 MB / 334.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0006603/0.09085, allocations: 421 kB / 456.6 MB, free: 3.277 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0006872/0.09155, allocations: 0.5257 MB / 457.1 MB, free: 2.734 MB / 334.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002394/0.0918, allocations: 124.4 kB / 457.2 MB, free: 2.613 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0007134/0.09252, allocations: 0.6513 MB / 457.9 MB, free: 1.965 MB / 334.1 MB Notification: Performance of Backend: time 3.61e-07/0.09253, allocations: 7.938 kB / 457.9 MB, free: 1.957 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001676/0.09421, allocations: 0.651 MB / 458.5 MB, free: 1.422 MB / 334.1 MB Notification: Performance of SimCode: time 0.001672/0.09589, allocations: 1.458 MB / 460 MB, free: 15.91 MB / 350.1 MB Notification: Performance of Templates: time 0.01398/0.1099, allocations: 8.046 MB / 468 MB, free: 7.863 MB / 350.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)