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.0009617/0.0009617, allocations: 92.22 kB / 19.65 MB, free: 276 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.001052/0.001052, allocations: 173 kB / 23.03 MB, free: 1.543 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.9546/0.9546, allocations: 177.1 MB / 203.4 MB, free: 5.633 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.04846/0.04846, allocations: 8.609 MB / 268.6 MB, free: 4.91 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.343e-06/1.343e-06, allocations: 0 / 340.9 MB, free: 8.402 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.601e-05/1.735e-05, allocations: 2.312 kB / 340.9 MB, free: 8.398 MB / 266.7 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN): time 0.002632/0.00265, allocations: 2.45 MB / 343.3 MB, free: 5.934 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001956/0.004605, allocations: 1.664 MB / 345 MB, free: 4.262 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001333/0.004739, allocations: 3.938 kB / 345 MB, free: 4.258 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008877/0.005626, allocations: 0.6466 MB / 345.6 MB, free: 3.609 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005729/0.006199, allocations: 0.4903 MB / 346.1 MB, free: 3.117 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005887/0.006788, allocations: 442.8 kB / 346.6 MB, free: 2.684 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004748/0.007263, allocations: 0.7285 MB / 347.3 MB, free: 1.953 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001283/0.007391, allocations: 65.86 kB / 347.4 MB, free: 1.883 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003062/0.007697, allocations: 395 kB / 347.7 MB, free: 1.496 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002313/0.007929, allocations: 299.2 kB / 348 MB, free: 1.203 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.085e-05/0.00798, allocations: 40 kB / 348.1 MB, free: 1.164 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000233/0.008213, allocations: 191.8 kB / 348.3 MB, free: 0.9766 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000132/0.008345, allocations: 207.3 kB / 348.5 MB, free: 0.7734 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001208/0.008465, allocations: 163.4 kB / 348.6 MB, free: 0.6133 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000451/0.008916, allocations: 0.5525 MB / 349.2 MB, free: 60 kB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.024e-06/0.008918, allocations: 0 / 349.2 MB, free: 60 kB / 266.7 MB Notification: Performance of FrontEnd: time 6.41e-07/0.008919, allocations: 0 / 349.2 MB, free: 60 kB / 266.7 MB Notification: Performance of Transformations before backend: time 4.629e-06/0.008924, allocations: 0 / 349.2 MB, free: 60 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.001149/0.01007, allocations: 1.117 MB / 350.3 MB, free: 14.87 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.234e-05/0.0101, allocations: 12.03 kB / 350.3 MB, free: 14.86 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001233/0.01023, allocations: 88.45 kB / 350.4 MB, free: 14.77 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005535/0.01078, allocations: 476.3 kB / 350.9 MB, free: 14.28 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.907e-05/0.01081, allocations: 20.69 kB / 350.9 MB, free: 14.26 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.759e-05/0.01084, allocations: 16.38 kB / 350.9 MB, free: 14.24 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003024/0.01114, allocations: 208.1 kB / 351.1 MB, free: 14.02 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.999e-06/0.01115, allocations: 3.938 kB / 351.1 MB, free: 14.02 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.274e-05/0.01117, allocations: 11.98 kB / 351.1 MB, free: 14.01 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.808e-06/0.01118, allocations: 4 kB / 351.1 MB, free: 14 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001416/0.01132, allocations: 72.53 kB / 351.2 MB, free: 13.93 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008265/0.01215, allocations: 0.6553 MB / 351.8 MB, free: 13.24 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004172/0.01257, allocations: 184 kB / 352 MB, free: 13.05 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001006/0.01267, allocations: 59.64 kB / 352.1 MB, free: 12.99 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.419e-05/0.01268, allocations: 8 kB / 352.1 MB, free: 12.98 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002876/0.01297, allocations: 256.1 kB / 352.3 MB, free: 12.7 MB / 282.7 MB Notification: Performance of pre-optimization done (n=30): time 1.403e-06/0.01297, allocations: 0 / 352.3 MB, free: 12.7 MB / 282.7 MB Notification: Performance of matching and sorting (n=30): time 0.0005739/0.01355, allocations: 361.1 kB / 352.7 MB, free: 12.34 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.918e-05/0.0136, allocations: 85.05 kB / 352.8 MB, free: 12.23 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007165/0.01431, allocations: 0.7299 MB / 353.5 MB, free: 11.48 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.874e-05/0.01434, allocations: 41.7 kB / 353.5 MB, free: 11.44 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002212/0.01456, allocations: 355.3 kB / 353.9 MB, free: 11.09 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.258e-05/0.01462, allocations: 80.03 kB / 354 MB, free: 11.01 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.598e-05/0.01471, allocations: 75.34 kB / 354 MB, free: 10.93 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001149/0.01483, allocations: 496.4 kB / 354.5 MB, free: 10.43 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.606e-05/0.01491, allocations: 43.97 kB / 354.6 MB, free: 10.39 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002115/0.01512, allocations: 350.5 kB / 354.9 MB, free: 9.938 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002806/0.0154, allocations: 259.3 kB / 355.2 MB, free: 9.625 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.01541, allocations: 0 / 355.2 MB, free: 9.625 MB / 282.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0004043/0.01581, allocations: 313 kB / 355.5 MB, free: 9.312 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.545e-05/0.01583, allocations: 11.98 kB / 355.5 MB, free: 9.301 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.282e-06/0.01583, allocations: 4 kB / 355.5 MB, free: 9.297 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.551e-05/0.01585, allocations: 7.938 kB / 355.5 MB, free: 9.289 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001372/0.01599, allocations: 51.92 kB / 355.5 MB, free: 9.238 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.769e-06/0.016, allocations: 11.92 kB / 355.6 MB, free: 9.227 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001491/0.01614, allocations: 40.14 kB / 355.6 MB, free: 9.188 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.966e-05/0.01616, allocations: 16 kB / 355.6 MB, free: 9.172 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.0001792/0.01634, allocations: 205.6 kB / 355.8 MB, free: 8.961 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.312e-05/0.01643, allocations: 83.53 kB / 355.9 MB, free: 8.879 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004435/0.01687, allocations: 332.1 kB / 356.2 MB, free: 8.547 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.849e-06/0.01687, allocations: 11.94 kB / 356.2 MB, free: 8.535 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.176e-06/0.01688, allocations: 0 / 356.2 MB, free: 8.535 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.037e-06/0.01688, allocations: 0 / 356.2 MB, free: 8.535 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003536/0.01724, allocations: 392.2 kB / 356.6 MB, free: 8.117 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/0.01724, allocations: 0 / 356.6 MB, free: 8.117 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.116e-05/0.0173, allocations: 27.98 kB / 356.6 MB, free: 8.09 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.0173, allocations: 0 / 356.6 MB, free: 8.09 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.773e-05/0.01732, allocations: 11.98 kB / 356.6 MB, free: 8.078 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.01732, allocations: 0 / 356.6 MB, free: 8.078 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.886e-06/0.01732, allocations: 7.938 kB / 356.7 MB, free: 8.07 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004257/0.01775, allocations: 375.7 kB / 357 MB, free: 7.68 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.742e-05/0.01783, allocations: 71.48 kB / 357.1 MB, free: 7.609 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.594e-05/0.01788, allocations: 12 kB / 357.1 MB, free: 7.598 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001078/0.01799, allocations: 19.97 kB / 357.1 MB, free: 7.578 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.321e-05/0.01805, allocations: 31.89 kB / 357.2 MB, free: 7.547 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.617e-05/0.01808, allocations: 16 kB / 357.2 MB, free: 7.531 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0004501/0.01853, allocations: 482.9 kB / 357.6 MB, free: 7.062 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01853, allocations: 0 / 357.6 MB, free: 7.062 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003623/0.01889, allocations: 119.8 kB / 357.8 MB, free: 6.945 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.0009866/0.01988, allocations: 459 kB / 358.2 MB, free: 6.633 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0003156/0.02019, allocations: 191.9 kB / 358.4 MB, free: 6.441 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.0202, allocations: 4 kB / 358.4 MB, free: 6.438 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001389/0.02034, allocations: 103.4 kB / 358.5 MB, free: 6.332 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004983/0.02083, allocations: 182.3 kB / 358.7 MB, free: 6.168 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001004/0.02184, allocations: 0.8813 MB / 359.6 MB, free: 5.25 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001094/0.02195, allocations: 150.5 kB / 359.7 MB, free: 5.086 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.000169/0.02212, allocations: 84.98 kB / 359.8 MB, free: 5.004 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001038/0.02222, allocations: 52.48 kB / 359.8 MB, free: 4.953 MB / 282.7 MB Notification: Performance of SimCode: time 6.22e-07/0.02222, allocations: 0 / 359.8 MB, free: 4.953 MB / 282.7 MB Notification: Performance of Templates: time 0.01258/0.0348, allocations: 8.861 MB / 368.7 MB, free: 12.2 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: 2.9981707870028913]