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.0009222/0.0009222, allocations: 92.2 kB / 20.19 MB, free: 4.355 MB / 18.57 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.0009481/0.0009481, allocations: 173 kB / 23.49 MB, free: 1.051 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.9526/0.9526, allocations: 177.1 MB / 203.8 MB, free: 5.625 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.04115/0.04115, allocations: 8.613 MB / 268.9 MB, free: 4.973 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.463e-06/1.463e-06, allocations: 0 / 340.9 MB, free: 8.711 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.5e-05/1.646e-05, allocations: 4.703 kB / 340.9 MB, free: 8.707 MB / 266.7 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN): time 0.002165/0.002182, allocations: 2.435 MB / 343.3 MB, free: 6.254 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001722/0.003904, allocations: 1.664 MB / 345 MB, free: 4.586 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001414/0.004045, allocations: 7.938 kB / 345 MB, free: 4.578 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005768/0.004622, allocations: 0.6427 MB / 345.6 MB, free: 3.934 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004678/0.00509, allocations: 498 kB / 346.1 MB, free: 3.445 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005239/0.005614, allocations: 442.9 kB / 346.6 MB, free: 3.012 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004098/0.006024, allocations: 0.7323 MB / 347.3 MB, free: 2.277 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.86e-05/0.006112, allocations: 69.84 kB / 347.4 MB, free: 2.203 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002627/0.006375, allocations: 391 kB / 347.7 MB, free: 1.82 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001967/0.006572, allocations: 299.2 kB / 348 MB, free: 1.527 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.592e-05/0.006608, allocations: 40 kB / 348.1 MB, free: 1.488 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002051/0.006813, allocations: 187.8 kB / 348.2 MB, free: 1.305 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001137/0.006926, allocations: 207.3 kB / 348.4 MB, free: 1.102 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 9.352e-05/0.00702, allocations: 159.5 kB / 348.6 MB, free: 0.9453 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003788/0.007399, allocations: 0.5564 MB / 349.2 MB, free: 396 kB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.733e-06/0.0074, allocations: 0 / 349.2 MB, free: 396 kB / 266.7 MB Notification: Performance of FrontEnd: time 1.002e-06/0.007401, allocations: 4 kB / 349.2 MB, free: 392 kB / 266.7 MB Notification: Performance of Transformations before backend: time 6.082e-06/0.007408, allocations: 4 kB / 349.2 MB, free: 388 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.0008132/0.008221, allocations: 1.113 MB / 350.3 MB, free: 15.2 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.802e-05/0.008249, allocations: 16.02 kB / 350.3 MB, free: 15.18 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.422e-05/0.008343, allocations: 88.47 kB / 350.4 MB, free: 15.1 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004224/0.008765, allocations: 484.2 kB / 350.9 MB, free: 14.59 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.696e-05/0.008782, allocations: 16.7 kB / 350.9 MB, free: 14.58 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.927e-05/0.008812, allocations: 20.38 kB / 350.9 MB, free: 14.56 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002289/0.009041, allocations: 212.1 kB / 351.1 MB, free: 14.34 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.612e-06/0.009047, allocations: 3.938 kB / 351.1 MB, free: 14.33 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.544e-05/0.009063, allocations: 8 kB / 351.1 MB, free: 14.32 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.1e-06/0.009068, allocations: 4 kB / 351.1 MB, free: 14.32 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001146/0.009182, allocations: 68.53 kB / 351.2 MB, free: 14.25 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006535/0.009836, allocations: 0.6475 MB / 351.8 MB, free: 13.57 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003123/0.01015, allocations: 193.6 kB / 352 MB, free: 13.37 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.84e-05/0.01023, allocations: 55.66 kB / 352.1 MB, free: 13.31 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.388e-06/0.01024, allocations: 4 kB / 352.1 MB, free: 13.31 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002175/0.01045, allocations: 264.1 kB / 352.3 MB, free: 13.02 MB / 282.7 MB Notification: Performance of pre-optimization done (n=30): time 1.122e-06/0.01045, allocations: 0 / 352.3 MB, free: 13.02 MB / 282.7 MB Notification: Performance of matching and sorting (n=30): time 0.0004341/0.01089, allocations: 357.1 kB / 352.7 MB, free: 12.66 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.9e-05/0.01093, allocations: 89.03 kB / 352.8 MB, free: 12.55 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005643/0.01149, allocations: 0.726 MB / 353.5 MB, free: 11.81 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.452e-05/0.01152, allocations: 45.69 kB / 353.5 MB, free: 11.76 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001886/0.0117, allocations: 352 kB / 353.9 MB, free: 11.41 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.345e-05/0.01176, allocations: 71.44 kB / 354 MB, free: 11.34 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.988e-05/0.01183, allocations: 75.34 kB / 354 MB, free: 11.26 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001188/0.01195, allocations: 0.4887 MB / 354.5 MB, free: 10.76 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.868e-05/0.01202, allocations: 43.97 kB / 354.6 MB, free: 10.72 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001754/0.01219, allocations: 350.5 kB / 354.9 MB, free: 10.27 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002223/0.01241, allocations: 267.2 kB / 355.2 MB, free: 9.945 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.01242, allocations: 0 / 355.2 MB, free: 9.945 MB / 282.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0003382/0.01275, allocations: 308.9 kB / 355.5 MB, free: 9.637 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.03e-05/0.01276, allocations: 8.312 kB / 355.5 MB, free: 9.629 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.01277, allocations: 8 kB / 355.5 MB, free: 9.621 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.031e-05/0.01278, allocations: 7.938 kB / 355.5 MB, free: 9.613 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001023/0.01288, allocations: 55.91 kB / 355.5 MB, free: 9.559 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.502e-06/0.01289, allocations: 7.938 kB / 355.6 MB, free: 9.551 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001098/0.013, allocations: 35.83 kB / 355.6 MB, free: 9.516 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.623e-05/0.01301, allocations: 16 kB / 355.6 MB, free: 9.5 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.000154/0.01317, allocations: 213.7 kB / 355.8 MB, free: 9.281 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.627e-05/0.01323, allocations: 87.52 kB / 355.9 MB, free: 9.195 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003541/0.01359, allocations: 324.1 kB / 356.2 MB, free: 8.871 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.839e-06/0.01359, allocations: 7.938 kB / 356.2 MB, free: 8.863 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.244e-06/0.0136, allocations: 0 / 356.2 MB, free: 8.863 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.428e-06/0.0136, allocations: 3.984 kB / 356.2 MB, free: 8.859 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000302/0.0139, allocations: 388.2 kB / 356.6 MB, free: 8.445 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.374e-06/0.0139, allocations: 3.984 kB / 356.6 MB, free: 8.441 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.536e-05/0.01395, allocations: 28 kB / 356.6 MB, free: 8.414 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.543e-06/0.01395, allocations: 0 / 356.6 MB, free: 8.414 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.454e-05/0.01397, allocations: 11.98 kB / 356.6 MB, free: 8.402 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-06/0.01397, allocations: 0 / 356.6 MB, free: 8.402 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.425e-06/0.01397, allocations: 7.938 kB / 356.7 MB, free: 8.395 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003387/0.01431, allocations: 367.8 kB / 357 MB, free: 8.012 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.196e-05/0.01437, allocations: 67.5 kB / 357.1 MB, free: 7.945 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.706e-05/0.01442, allocations: 15.98 kB / 357.1 MB, free: 7.93 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.31e-05/0.0145, allocations: 15.98 kB / 357.1 MB, free: 7.914 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.469e-05/0.01454, allocations: 35.89 kB / 357.1 MB, free: 7.879 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.355e-05/0.01457, allocations: 19.98 kB / 357.2 MB, free: 7.859 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0003835/0.01495, allocations: 482.9 kB / 357.6 MB, free: 7.391 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01495, allocations: 3.938 kB / 357.6 MB, free: 7.387 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002848/0.01524, allocations: 115.8 kB / 357.8 MB, free: 7.273 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.000881/0.01612, allocations: 466.2 kB / 358.2 MB, free: 6.949 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0002489/0.01637, allocations: 183.9 kB / 358.4 MB, free: 6.766 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.01637, allocations: 4 kB / 358.4 MB, free: 6.762 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001143/0.01648, allocations: 100.1 kB / 358.5 MB, free: 6.66 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004117/0.01689, allocations: 179.9 kB / 358.7 MB, free: 6.496 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009215/0.01782, allocations: 0.8768 MB / 359.5 MB, free: 5.582 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.911e-05/0.01791, allocations: 154.5 kB / 359.7 MB, free: 5.414 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001432/0.01805, allocations: 88.98 kB / 359.8 MB, free: 5.328 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.646e-05/0.01812, allocations: 52.48 kB / 359.8 MB, free: 5.277 MB / 282.7 MB Notification: Performance of SimCode: time 5.31e-07/0.01813, allocations: 0 / 359.8 MB, free: 5.277 MB / 282.7 MB Notification: Performance of Templates: time 0.009876/0.028, allocations: 8.278 MB / 368.1 MB, free: 13.11 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.079383319010958]