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.0009732/0.0009732, allocations: 81.17 kB / 19.87 MB, free: 4.621 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.00178/0.00178, allocations: 169 kB / 23.27 MB, free: 1.223 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.9446/0.9446, allocations: 177.2 MB / 203.7 MB, free: 5.512 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.05101/0.05101, allocations: 8.62 MB / 268.9 MB, free: 4.773 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 2.355e-06/2.355e-06, allocations: 3.984 kB / 341.3 MB, free: 9.188 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.363e-05/1.598e-05, allocations: 2.312 kB / 341.3 MB, free: 9.184 MB / 314.7 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN): time 0.01014/0.01016, allocations: 2.404 MB / 343.7 MB, free: 6.762 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.008382/0.01854, allocations: 1.663 MB / 345.4 MB, free: 5.094 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001973/0.01874, allocations: 7.938 kB / 345.4 MB, free: 5.086 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001052/0.01979, allocations: 0.6388 MB / 346 MB, free: 4.445 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007542/0.02055, allocations: 0.4903 MB / 346.5 MB, free: 3.953 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008201/0.02137, allocations: 450.8 kB / 347 MB, free: 3.512 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008089/0.02217, allocations: 0.7284 MB / 347.7 MB, free: 2.781 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001621/0.02234, allocations: 61.86 kB / 347.7 MB, free: 2.723 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000515/0.02285, allocations: 395 kB / 348.1 MB, free: 2.336 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003061/0.02316, allocations: 299.1 kB / 348.4 MB, free: 2.043 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 5.222e-05/0.02321, allocations: 44 kB / 348.5 MB, free: 2 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002746/0.02348, allocations: 191.7 kB / 348.7 MB, free: 1.812 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001523/0.02364, allocations: 207.3 kB / 348.9 MB, free: 1.609 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001179/0.02375, allocations: 159.5 kB / 349 MB, free: 1.453 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005141/0.02427, allocations: 0.5448 MB / 349.6 MB, free: 0.9062 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.02427, allocations: 0 / 349.6 MB, free: 0.9062 MB / 314.7 MB Notification: Performance of FrontEnd: time 9.72e-07/0.02427, allocations: 0 / 349.6 MB, free: 0.9062 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.8e-06/0.02428, allocations: 0 / 349.6 MB, free: 0.9062 MB / 314.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.0009963/0.02528, allocations: 1.121 MB / 350.7 MB, free: 15.72 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.452e-05/0.02531, allocations: 8.031 kB / 350.7 MB, free: 15.71 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001046/0.02541, allocations: 92.45 kB / 350.8 MB, free: 15.62 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004113/0.02583, allocations: 468.3 kB / 351.2 MB, free: 15.13 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.035e-05/0.02585, allocations: 12.7 kB / 351.2 MB, free: 15.12 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.195e-05/0.02587, allocations: 20.38 kB / 351.3 MB, free: 15.1 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002111/0.02608, allocations: 196.1 kB / 351.5 MB, free: 14.89 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.276e-06/0.02609, allocations: 3.938 kB / 351.5 MB, free: 14.89 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.506e-05/0.0261, allocations: 7.984 kB / 351.5 MB, free: 14.88 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.982e-06/0.02611, allocations: 4 kB / 351.5 MB, free: 14.88 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.732e-05/0.02619, allocations: 60.53 kB / 351.5 MB, free: 14.82 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006104/0.0268, allocations: 0.5504 MB / 352.1 MB, free: 14.24 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002991/0.0271, allocations: 179.9 kB / 352.3 MB, free: 14.05 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.246e-05/0.02716, allocations: 51.59 kB / 352.3 MB, free: 14 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.848e-05/0.02718, allocations: 8 kB / 352.3 MB, free: 13.99 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002312/0.02741, allocations: 240.2 kB / 352.5 MB, free: 13.72 MB / 330.7 MB Notification: Performance of pre-optimization done (n=30): time 1.312e-06/0.02741, allocations: 0 / 352.5 MB, free: 13.72 MB / 330.7 MB Notification: Performance of matching and sorting (n=30): time 0.0003882/0.0278, allocations: 337 kB / 352.9 MB, free: 13.38 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.328e-05/0.02784, allocations: 92.98 kB / 353 MB, free: 13.27 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004893/0.02833, allocations: 0.6983 MB / 353.7 MB, free: 12.56 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.766e-05/0.02836, allocations: 37.69 kB / 353.7 MB, free: 12.52 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001887/0.02855, allocations: 363.2 kB / 354.1 MB, free: 12.16 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.295e-05/0.0286, allocations: 83.39 kB / 354.1 MB, free: 12.07 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.604e-05/0.02868, allocations: 79.06 kB / 354.2 MB, free: 11.99 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001245/0.0288, allocations: 0.4926 MB / 354.7 MB, free: 11.49 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.373e-05/0.02884, allocations: 27.98 kB / 354.7 MB, free: 11.46 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001672/0.02901, allocations: 350.4 kB / 355.1 MB, free: 11.01 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001952/0.02921, allocations: 243.4 kB / 355.3 MB, free: 10.71 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.574e-06/0.02921, allocations: 4 kB / 355.3 MB, free: 10.71 MB / 330.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0002961/0.0295, allocations: 292.8 kB / 355.6 MB, free: 10.41 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.302e-05/0.02952, allocations: 6.5 kB / 355.6 MB, free: 10.41 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.344e-06/0.02952, allocations: 4 kB / 355.6 MB, free: 10.41 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.532e-05/0.02954, allocations: 8 kB / 355.6 MB, free: 10.4 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001043/0.02964, allocations: 55.78 kB / 355.7 MB, free: 10.34 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.73e-06/0.02965, allocations: 8 kB / 355.7 MB, free: 10.34 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001118/0.02976, allocations: 40.14 kB / 355.7 MB, free: 10.3 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.232e-05/0.02977, allocations: 16 kB / 355.7 MB, free: 10.28 MB / 330.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.0001762/0.02995, allocations: 205.7 kB / 355.9 MB, free: 10.07 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.695e-05/0.03002, allocations: 75.53 kB / 356 MB, free: 9.992 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003447/0.03036, allocations: 320.1 kB / 356.3 MB, free: 9.668 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.03036, allocations: 4 kB / 356.3 MB, free: 9.664 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.965e-06/0.03037, allocations: 7.938 kB / 356.3 MB, free: 9.656 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.497e-06/0.03037, allocations: 3.938 kB / 356.3 MB, free: 9.652 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002537/0.03062, allocations: 300.8 kB / 356.6 MB, free: 9.332 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.03063, allocations: 4 kB / 356.6 MB, free: 9.328 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.698e-05/0.03067, allocations: 23.98 kB / 356.7 MB, free: 9.305 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.03068, allocations: 0 / 356.7 MB, free: 9.305 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.38e-05/0.03069, allocations: 15.92 kB / 356.7 MB, free: 9.289 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.497e-06/0.03069, allocations: 4 kB / 356.7 MB, free: 9.285 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.03069, allocations: 0 / 356.7 MB, free: 9.285 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003006/0.031, allocations: 351.7 kB / 357 MB, free: 8.918 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.442e-05/0.03106, allocations: 71.5 kB / 357.1 MB, free: 8.848 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.288e-05/0.0311, allocations: 12 kB / 357.1 MB, free: 8.836 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.682e-05/0.03119, allocations: 19.97 kB / 357.1 MB, free: 8.816 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.838e-05/0.03124, allocations: 31.95 kB / 357.2 MB, free: 8.785 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.95e-05/0.03126, allocations: 8 kB / 357.2 MB, free: 8.777 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002886/0.03155, allocations: 450.8 kB / 357.6 MB, free: 8.344 MB / 330.7 MB Notification: Performance of sort global known variables: time 6e-08/0.03155, allocations: 0 / 357.6 MB, free: 8.344 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003184/0.03186, allocations: 119.8 kB / 357.7 MB, free: 8.227 MB / 330.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.0009218/0.03279, allocations: 453.8 kB / 358.2 MB, free: 7.918 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002293/0.03302, allocations: 179.9 kB / 358.3 MB, free: 7.738 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.03302, allocations: 0 / 358.3 MB, free: 7.738 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 9.638e-05/0.03311, allocations: 91.44 kB / 358.4 MB, free: 7.645 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004172/0.03353, allocations: 189.9 kB / 358.6 MB, free: 7.465 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008545/0.03439, allocations: 0.8585 MB / 359.5 MB, free: 6.574 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.143e-05/0.03448, allocations: 158.4 kB / 359.6 MB, free: 6.402 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001488/0.03463, allocations: 80.5 kB / 359.7 MB, free: 6.32 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002129/0.03484, allocations: 186.1 kB / 359.9 MB, free: 6.137 MB / 330.7 MB Notification: Performance of SimCode: time 3.41e-07/0.03484, allocations: 0 / 359.9 MB, free: 6.137 MB / 330.7 MB Notification: Performance of Templates: time 0.01212/0.04696, allocations: 9.031 MB / 368.9 MB, free: 13.25 MB / 346.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.9968595318496227]