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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001099/0.001099, allocations: 93.06 kB / 19.65 MB, free: 280 kB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001147/0.001147, allocations: 169.3 kB / 23.02 MB, free: 1.555 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.984/0.984, allocations: 177.1 MB / 203.4 MB, free: 5.637 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo): time 0.03722/0.03722, allocations: 8.607 MB / 268.5 MB, free: 4.922 MB / 250.7 MB " [Timeout remaining time 180] Using package IndustrialControlSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN") translateModel(IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.633e-06/1.633e-06, allocations: 0 / 340.9 MB, free: 8.406 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.341e-05/2.505e-05, allocations: 9.125 kB / 340.9 MB, free: 8.398 MB / 266.7 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN): time 0.002519/0.002545, allocations: 2.431 MB / 343.3 MB, free: 5.949 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001962/0.004506, allocations: 1.672 MB / 345 MB, free: 4.27 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000167/0.004673, allocations: 11.88 kB / 345 MB, free: 4.258 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009164/0.00559, allocations: 0.6389 MB / 345.6 MB, free: 3.617 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005996/0.006189, allocations: 0.4942 MB / 346.1 MB, free: 3.121 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006567/0.006846, allocations: 442.9 kB / 346.6 MB, free: 2.688 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000543/0.007389, allocations: 0.7245 MB / 347.3 MB, free: 1.961 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001578/0.007547, allocations: 65.86 kB / 347.3 MB, free: 1.891 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003061/0.007853, allocations: 395 kB / 347.7 MB, free: 1.504 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002118/0.008065, allocations: 307.2 kB / 348 MB, free: 1.203 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.362e-05/0.008108, allocations: 36 kB / 348.1 MB, free: 1.168 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002423/0.008351, allocations: 191.8 kB / 348.2 MB, free: 0.9805 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001265/0.008477, allocations: 203.4 kB / 348.4 MB, free: 0.7812 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001031/0.00858, allocations: 159.5 kB / 348.6 MB, free: 0.625 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004557/0.009036, allocations: 0.5564 MB / 349.2 MB, free: 68 kB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.00904, allocations: 0 / 349.2 MB, free: 68 kB / 266.7 MB Notification: Performance of FrontEnd: time 1.373e-06/0.009041, allocations: 0 / 349.2 MB, free: 68 kB / 266.7 MB Notification: Performance of Transformations before backend: time 7.785e-06/0.009049, allocations: 0 / 349.2 MB, free: 68 kB / 266.7 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.00115/0.0102, allocations: 1.129 MB / 350.3 MB, free: 14.87 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.783e-05/0.01024, allocations: 8.031 kB / 350.3 MB, free: 14.86 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001237/0.01036, allocations: 88.45 kB / 350.4 MB, free: 14.77 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005049/0.01087, allocations: 480.3 kB / 350.9 MB, free: 14.27 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.581e-05/0.01089, allocations: 20.69 kB / 350.9 MB, free: 14.25 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.663e-05/0.01092, allocations: 16.38 kB / 350.9 MB, free: 14.24 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002784/0.0112, allocations: 208.1 kB / 351.1 MB, free: 14.02 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.202e-05/0.01121, allocations: 3.938 kB / 351.1 MB, free: 14.02 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.756e-05/0.01123, allocations: 11.98 kB / 351.1 MB, free: 14 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.678e-06/0.01124, allocations: 4 kB / 351.1 MB, free: 14 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001189/0.01135, allocations: 72.53 kB / 351.2 MB, free: 13.93 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007485/0.0121, allocations: 0.6475 MB / 351.8 MB, free: 13.25 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003603/0.01246, allocations: 198.9 kB / 352 MB, free: 13.04 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.321e-05/0.01255, allocations: 51.66 kB / 352.1 MB, free: 12.99 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.861e-05/0.01257, allocations: 4 kB / 352.1 MB, free: 12.98 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000248/0.01281, allocations: 256.7 kB / 352.3 MB, free: 12.7 MB / 282.7 MB Notification: Performance of pre-optimization done (n=30): time 2.986e-06/0.01282, allocations: 3.984 kB / 352.3 MB, free: 12.7 MB / 282.7 MB Notification: Performance of matching and sorting (n=30): time 0.0004828/0.0133, allocations: 357.1 kB / 352.7 MB, free: 12.34 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.323e-05/0.01335, allocations: 93.03 kB / 352.8 MB, free: 12.23 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005751/0.01393, allocations: 0.7299 MB / 353.5 MB, free: 11.48 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.677e-05/0.01395, allocations: 37.7 kB / 353.5 MB, free: 11.44 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001937/0.01415, allocations: 351.3 kB / 353.9 MB, free: 11.09 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.617e-05/0.0142, allocations: 79.41 kB / 354 MB, free: 11.01 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.424e-05/0.01428, allocations: 79.34 kB / 354 MB, free: 10.93 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.000115/0.01439, allocations: 496.4 kB / 354.5 MB, free: 10.43 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.463e-05/0.01447, allocations: 39.97 kB / 354.6 MB, free: 10.39 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001991/0.01467, allocations: 350.5 kB / 354.9 MB, free: 9.941 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002511/0.01492, allocations: 267.2 kB / 355.2 MB, free: 9.621 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.566e-06/0.01492, allocations: 4 kB / 355.2 MB, free: 9.617 MB / 282.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.000357/0.01528, allocations: 312.9 kB / 355.5 MB, free: 9.305 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.024e-05/0.0153, allocations: 4 kB / 355.5 MB, free: 9.301 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.723e-06/0.01531, allocations: 4 kB / 355.5 MB, free: 9.297 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002449/0.01555, allocations: 11.94 kB / 355.5 MB, free: 9.285 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001142/0.01566, allocations: 56.22 kB / 355.5 MB, free: 9.23 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.548e-06/0.01567, allocations: 11.94 kB / 355.6 MB, free: 9.219 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001112/0.01579, allocations: 35.83 kB / 355.6 MB, free: 9.184 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.61e-05/0.0158, allocations: 16 kB / 355.6 MB, free: 9.168 MB / 282.7 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.000192/0.01599, allocations: 205.7 kB / 355.8 MB, free: 8.957 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.242e-05/0.01606, allocations: 83.53 kB / 355.9 MB, free: 8.875 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003775/0.01643, allocations: 340.1 kB / 356.2 MB, free: 8.535 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.13e-06/0.01644, allocations: 7.938 kB / 356.2 MB, free: 8.527 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.486e-06/0.01644, allocations: 0 / 356.2 MB, free: 8.527 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.977e-06/0.01645, allocations: 0 / 356.2 MB, free: 8.527 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002988/0.01674, allocations: 388.2 kB / 356.6 MB, free: 8.113 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.01675, allocations: 0 / 356.6 MB, free: 8.113 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.991e-05/0.0168, allocations: 23.98 kB / 356.6 MB, free: 8.09 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.016e-06/0.0168, allocations: 4 kB / 356.6 MB, free: 8.086 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.505e-05/0.01681, allocations: 11.98 kB / 356.6 MB, free: 8.074 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.803e-06/0.01682, allocations: 4 kB / 356.7 MB, free: 8.07 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.01682, allocations: 3.938 kB / 356.7 MB, free: 8.066 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003559/0.01717, allocations: 371.8 kB / 357 MB, free: 7.68 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.648e-05/0.01724, allocations: 67.5 kB / 357.1 MB, free: 7.613 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.647e-05/0.01729, allocations: 12 kB / 357.1 MB, free: 7.602 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.582e-05/0.01737, allocations: 19.97 kB / 357.1 MB, free: 7.582 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.728e-05/0.01744, allocations: 31.89 kB / 357.1 MB, free: 7.551 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.176e-05/0.01746, allocations: 12 kB / 357.2 MB, free: 7.539 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0003772/0.01784, allocations: 482.9 kB / 357.6 MB, free: 7.07 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01784, allocations: 4 kB / 357.6 MB, free: 7.066 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003204/0.01816, allocations: 127.8 kB / 357.8 MB, free: 6.941 MB / 282.7 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,countUP.combiTimeTable.nextTimeEvent,countDOWN.combiTimeTable.nextTimeEvent,set.combiTimeTable.nextTimeEvent,reset.combiTimeTable.nextTimeEvent,countUP.combiTimeTable.nextTimeEventScaled,countDOWN.combiTimeTable.nextTimeEventScaled,set.combiTimeTable.nextTimeEventScaled,reset.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 21 * 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.0008949/0.01906, allocations: 459.3 kB / 358.2 MB, free: 6.629 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0002799/0.01934, allocations: 191.9 kB / 358.4 MB, free: 6.438 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.01934, allocations: 0 / 358.4 MB, free: 6.438 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001174/0.01945, allocations: 107.5 kB / 358.5 MB, free: 6.328 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000412/0.01987, allocations: 172.2 kB / 358.7 MB, free: 6.172 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000948/0.02081, allocations: 0.8807 MB / 359.5 MB, free: 5.254 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.477e-05/0.02091, allocations: 150.5 kB / 359.7 MB, free: 5.09 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001458/0.02106, allocations: 88.98 kB / 359.8 MB, free: 5.004 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.534e-05/0.02114, allocations: 56.48 kB / 359.8 MB, free: 4.949 MB / 282.7 MB Notification: Performance of SimCode: time 5.81e-07/0.02114, allocations: 0 / 359.8 MB, free: 4.949 MB / 282.7 MB Notification: Performance of Templates: time 0.01047/0.03161, allocations: 8.274 MB / 368.1 MB, free: 12.78 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN.makefile [Timeout 660] (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=240 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.055400737095624]