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.001025/0.001025, allocations: 115.3 kB / 16.42 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.001117/0.001117, allocations: 186.1 kB / 17.35 MB, free: 5.633 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.299/1.299, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05941/0.05941, allocations: 10.75 MB / 281.3 MB, free: 1.293 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.001373/0.001373, allocations: 65.23 kB / 391.5 MB, free: 45.99 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0697/0.07108, allocations: 49.04 MB / 440.5 MB, free: 3.84 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN): time 0.002916/0.07402, allocations: 2.387 MB / 442.9 MB, free: 1.434 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00174/0.07579, allocations: 1.478 MB / 444.4 MB, free: 15.95 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001467/0.07595, allocations: 7.938 kB / 444.4 MB, free: 15.94 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001213/0.07719, allocations: 0.6114 MB / 445 MB, free: 15.33 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.0007036/0.0779, allocations: 406.6 kB / 445.4 MB, free: 14.93 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001133/0.07905, allocations: 0.5129 MB / 445.9 MB, free: 14.43 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000609/0.07966, allocations: 0.6936 MB / 446.6 MB, free: 13.73 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001713/0.07984, allocations: 105 kB / 446.7 MB, free: 13.62 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002958/0.08015, allocations: 287 kB / 447 MB, free: 13.34 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002907/0.08045, allocations: 306.8 kB / 447.3 MB, free: 13.04 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.58e-05/0.08052, allocations: 40 kB / 447.3 MB, free: 13 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002981/0.08083, allocations: 183.8 kB / 447.5 MB, free: 12.82 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001817/0.08102, allocations: 199.3 kB / 447.7 MB, free: 12.63 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002176/0.08124, allocations: 266.3 kB / 448 MB, free: 12.37 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006503/0.0819, allocations: 0.7202 MB / 448.7 MB, free: 11.64 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.908e-06/0.08192, allocations: 0 / 448.7 MB, free: 11.64 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.08192, allocations: 0 / 448.7 MB, free: 11.64 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.644e-06/0.08194, allocations: 0 / 448.7 MB, free: 11.64 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.00137/0.08331, allocations: 1.046 MB / 449.7 MB, free: 10.52 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.6e-05/0.08335, allocations: 11.89 kB / 449.8 MB, free: 10.51 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001161/0.08348, allocations: 72.08 kB / 449.8 MB, free: 10.44 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006965/0.08418, allocations: 0.5278 MB / 450.4 MB, free: 9.867 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.343e-05/0.08421, allocations: 12.7 kB / 450.4 MB, free: 9.855 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.558e-05/0.08425, allocations: 24.11 kB / 450.4 MB, free: 9.832 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004467/0.08471, allocations: 256.7 kB / 450.6 MB, free: 9.562 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.296e-06/0.08473, allocations: 0 / 450.6 MB, free: 9.562 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.72e-05/0.08476, allocations: 11.98 kB / 450.7 MB, free: 9.551 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.303e-06/0.08477, allocations: 8 kB / 450.7 MB, free: 9.543 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002745/0.08505, allocations: 115.9 kB / 450.8 MB, free: 9.43 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009739/0.08603, allocations: 0.738 MB / 451.5 MB, free: 8.641 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006877/0.08673, allocations: 270.5 kB / 451.8 MB, free: 8.367 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001953/0.08694, allocations: 96.81 kB / 451.9 MB, free: 8.27 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.271e-05/0.08697, allocations: 8.562 kB / 451.9 MB, free: 8.262 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003759/0.08735, allocations: 225 kB / 452.1 MB, free: 8.023 MB / 334.1 MB Notification: Performance of pre-optimization done (n=30): time 1.583e-06/0.08736, allocations: 0 / 452.1 MB, free: 8.023 MB / 334.1 MB Notification: Performance of matching and sorting (n=30): time 0.0008455/0.08821, allocations: 449.9 kB / 452.5 MB, free: 7.578 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.251e-05/0.08831, allocations: 183.9 kB / 452.7 MB, free: 7.355 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009359/0.08925, allocations: 0.8909 MB / 453.6 MB, free: 6.457 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.302e-05/0.08929, allocations: 37.7 kB / 453.6 MB, free: 6.414 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002066/0.0895, allocations: 288.5 kB / 453.9 MB, free: 6.125 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.6e-05/0.08958, allocations: 82.98 kB / 454 MB, free: 6.043 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.355e-05/0.08968, allocations: 69.69 kB / 454.1 MB, free: 5.969 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.543e-05/0.08978, allocations: 322 kB / 454.4 MB, free: 5.648 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000182/0.08997, allocations: 83.91 kB / 454.5 MB, free: 5.566 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002976/0.09027, allocations: 267.4 kB / 454.7 MB, free: 5.234 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004709/0.09075, allocations: 299.7 kB / 455 MB, free: 4.898 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.09076, allocations: 4 kB / 455 MB, free: 4.895 MB / 334.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0006306/0.0914, allocations: 376.4 kB / 455.4 MB, free: 4.52 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.485e-05/0.09143, allocations: 8 kB / 455.4 MB, free: 4.512 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.745e-06/0.09144, allocations: 4 kB / 455.4 MB, free: 4.508 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.505e-05/0.09146, allocations: 4 kB / 455.4 MB, free: 4.504 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001858/0.09165, allocations: 68.14 kB / 455.5 MB, free: 4.438 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.009e-05/0.09167, allocations: 8.078 kB / 455.5 MB, free: 4.43 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002128/0.09189, allocations: 39.67 kB / 455.5 MB, free: 4.391 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.288e-05/0.09192, allocations: 16 kB / 455.5 MB, free: 4.375 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.0002884/0.09221, allocations: 262.9 kB / 455.8 MB, free: 4.109 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.307e-05/0.09231, allocations: 71.09 kB / 455.9 MB, free: 4.039 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.746e-05/0.09241, allocations: 70.48 kB / 455.9 MB, free: 3.969 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.967e-06/0.09242, allocations: 0 / 455.9 MB, free: 3.969 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.562e-06/0.09243, allocations: 0 / 455.9 MB, free: 3.969 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001309/0.09256, allocations: 140.3 kB / 456.1 MB, free: 3.812 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.765e-05/0.09264, allocations: 19.92 kB / 456.1 MB, free: 3.793 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001756/0.09283, allocations: 19.98 kB / 456.1 MB, free: 3.773 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.967e-05/0.09289, allocations: 19.97 kB / 456.1 MB, free: 3.754 MB / 334.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0006347/0.09354, allocations: 421 kB / 456.5 MB, free: 3.336 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0006669/0.09421, allocations: 0.5253 MB / 457.1 MB, free: 2.793 MB / 334.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.000223/0.09445, allocations: 124.4 kB / 457.2 MB, free: 2.672 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0006838/0.09514, allocations: 0.6513 MB / 457.8 MB, free: 2.023 MB / 334.1 MB Notification: Performance of Backend: time 4.6e-07/0.09515, allocations: 3.938 kB / 457.8 MB, free: 2.02 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001647/0.0968, allocations: 0.6476 MB / 458.5 MB, free: 1.48 MB / 334.1 MB Notification: Performance of SimCode: time 0.001729/0.09854, allocations: 1.444 MB / 459.9 MB, free: 15.98 MB / 350.1 MB Notification: Performance of Templates: time 0.0137/0.1123, allocations: 8.058 MB / 468 MB, free: 7.922 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)