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.001478/0.001478, allocations: 77.09 kB / 20.66 MB, free: 3.844 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.001204/0.001204, allocations: 169 kB / 24.06 MB, free: 456 kB / 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 1.101/1.101, allocations: 177.1 MB / 204.5 MB, free: 5.5 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.03732/0.03732, allocations: 8.616 MB / 269.6 MB, free: 4.762 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.193e-06/1.193e-06, allocations: 0 / 342.1 MB, free: 8.117 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.096e-05/1.215e-05, allocations: 2.312 kB / 342.1 MB, free: 8.113 MB / 266.7 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN): time 0.002286/0.002298, allocations: 2.409 MB / 344.5 MB, free: 5.691 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001704/0.004002, allocations: 1.66 MB / 346.2 MB, free: 4.023 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001726/0.004175, allocations: 7.938 kB / 346.2 MB, free: 4.016 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000763/0.004938, allocations: 0.6428 MB / 346.8 MB, free: 3.371 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005255/0.005464, allocations: 0.4903 MB / 347.3 MB, free: 2.879 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000633/0.006097, allocations: 442.9 kB / 347.7 MB, free: 2.445 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005279/0.006624, allocations: 0.7245 MB / 348.5 MB, free: 1.719 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001334/0.006758, allocations: 69.84 kB / 348.5 MB, free: 1.645 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003137/0.007072, allocations: 391 kB / 348.9 MB, free: 1.262 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002102/0.007282, allocations: 307.2 kB / 349.2 MB, free: 0.9609 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.832e-05/0.00732, allocations: 36 kB / 349.2 MB, free: 0.9258 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002239/0.007544, allocations: 195.7 kB / 349.4 MB, free: 0.7344 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001178/0.007662, allocations: 199.4 kB / 349.6 MB, free: 0.5391 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 9.167e-05/0.007753, allocations: 159.4 kB / 349.8 MB, free: 392 kB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004292/0.008183, allocations: 0.5564 MB / 350.3 MB, free: 15.82 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.154e-06/0.008185, allocations: 0 / 350.3 MB, free: 15.82 MB / 282.7 MB Notification: Performance of FrontEnd: time 5.31e-07/0.008185, allocations: 0 / 350.3 MB, free: 15.82 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.3e-06/0.008191, allocations: 0 / 350.3 MB, free: 15.82 MB / 282.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.0009631/0.009154, allocations: 1.117 MB / 351.5 MB, free: 14.64 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.712e-05/0.009191, allocations: 12.03 kB / 351.5 MB, free: 14.63 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001053/0.009296, allocations: 88.45 kB / 351.6 MB, free: 14.54 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004734/0.00977, allocations: 468.3 kB / 352 MB, free: 14.05 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.471e-05/0.009794, allocations: 12.7 kB / 352 MB, free: 14.04 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.373e-05/0.009818, allocations: 20.36 kB / 352 MB, free: 14.02 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002242/0.01004, allocations: 188.1 kB / 352.2 MB, free: 13.82 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.171e-05/0.01005, allocations: 3.938 kB / 352.2 MB, free: 13.82 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.842e-05/0.01007, allocations: 15.98 kB / 352.2 MB, free: 13.8 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.394e-06/0.01008, allocations: 4 kB / 352.3 MB, free: 13.8 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.398e-05/0.01016, allocations: 56.48 kB / 352.3 MB, free: 13.75 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007495/0.01091, allocations: 0.5543 MB / 352.9 MB, free: 13.16 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000357/0.01127, allocations: 186.2 kB / 353 MB, free: 12.97 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.578e-05/0.01135, allocations: 51.62 kB / 353.1 MB, free: 12.92 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.367e-05/0.01136, allocations: 4 kB / 353.1 MB, free: 12.91 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003269/0.01463, allocations: 244.1 kB / 353.3 MB, free: 12.64 MB / 282.7 MB Notification: Performance of pre-optimization done (n=30): time 1.623e-06/0.01463, allocations: 0 / 353.3 MB, free: 12.64 MB / 282.7 MB Notification: Performance of matching and sorting (n=30): time 0.0004925/0.01512, allocations: 333.1 kB / 353.7 MB, free: 12.31 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.624e-05/0.01517, allocations: 89.05 kB / 353.8 MB, free: 12.2 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006333/0.0158, allocations: 0.7061 MB / 354.5 MB, free: 11.48 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.754e-05/0.01583, allocations: 33.7 kB / 354.5 MB, free: 11.44 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002384/0.01607, allocations: 367.2 kB / 354.8 MB, free: 11.07 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.454e-05/0.01613, allocations: 83.33 kB / 354.9 MB, free: 10.99 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.19e-05/0.01622, allocations: 79.3 kB / 355 MB, free: 10.91 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001192/0.01634, allocations: 496.4 kB / 355.5 MB, free: 10.41 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.732e-05/0.0164, allocations: 27.97 kB / 355.5 MB, free: 10.39 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002021/0.0166, allocations: 350.4 kB / 355.9 MB, free: 9.934 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002417/0.01685, allocations: 239.3 kB / 356.1 MB, free: 9.641 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.896e-06/0.01685, allocations: 4 kB / 356.1 MB, free: 9.637 MB / 282.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0003722/0.01722, allocations: 292.9 kB / 356.4 MB, free: 9.344 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.521e-05/0.01724, allocations: 8 kB / 356.4 MB, free: 9.336 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.536e-06/0.01724, allocations: 7.938 kB / 356.4 MB, free: 9.328 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.267e-05/0.01726, allocations: 4 kB / 356.4 MB, free: 9.324 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001433/0.0174, allocations: 56.16 kB / 356.5 MB, free: 9.27 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.181e-06/0.01741, allocations: 8 kB / 356.5 MB, free: 9.262 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003169/0.02057, allocations: 39.83 kB / 356.5 MB, free: 9.223 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.881e-05/0.02059, allocations: 12 kB / 356.5 MB, free: 9.211 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.000188/0.02078, allocations: 209.6 kB / 356.7 MB, free: 8.996 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.819e-05/0.02087, allocations: 91.52 kB / 356.8 MB, free: 8.906 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004064/0.02128, allocations: 304.2 kB / 357.1 MB, free: 8.602 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.45e-06/0.02128, allocations: 4 kB / 357.1 MB, free: 8.598 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.756e-06/0.02128, allocations: 3.938 kB / 357.1 MB, free: 8.594 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.27e-06/0.02129, allocations: 3.984 kB / 357.1 MB, free: 8.59 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000314/0.0216, allocations: 296.8 kB / 357.4 MB, free: 8.273 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.346e-06/0.02161, allocations: 3.984 kB / 357.4 MB, free: 8.27 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.27e-05/0.02167, allocations: 27.94 kB / 357.4 MB, free: 8.242 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.026e-06/0.02167, allocations: 0 / 357.4 MB, free: 8.242 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.679e-05/0.02169, allocations: 11.98 kB / 357.5 MB, free: 8.23 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.02169, allocations: 4 kB / 357.5 MB, free: 8.227 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.02169, allocations: 3.984 kB / 357.5 MB, free: 8.223 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003984/0.02209, allocations: 355.7 kB / 357.8 MB, free: 7.852 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.74e-05/0.02217, allocations: 67.44 kB / 357.9 MB, free: 7.785 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.138e-05/0.02223, allocations: 15.98 kB / 357.9 MB, free: 7.77 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000115/0.02235, allocations: 19.98 kB / 357.9 MB, free: 7.75 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.926e-05/0.0224, allocations: 31.89 kB / 357.9 MB, free: 7.719 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.466e-05/0.02243, allocations: 11.98 kB / 358 MB, free: 7.707 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0003759/0.02281, allocations: 442.8 kB / 358.4 MB, free: 7.277 MB / 282.7 MB Notification: Performance of sort global known variables: time 8e-08/0.02281, allocations: 4 kB / 358.4 MB, free: 7.273 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003874/0.02319, allocations: 115.8 kB / 358.5 MB, free: 7.16 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.004064/0.02726, allocations: 460.9 kB / 359 MB, free: 6.84 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0002707/0.02753, allocations: 160 kB / 359.1 MB, free: 6.68 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.02753, allocations: 0 / 359.1 MB, free: 6.68 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000122/0.02765, allocations: 103.4 kB / 359.2 MB, free: 6.574 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005136/0.02816, allocations: 178.5 kB / 359.4 MB, free: 6.418 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001004/0.02917, allocations: 0.869 MB / 360.3 MB, free: 5.512 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001163/0.02929, allocations: 154.5 kB / 360.4 MB, free: 5.344 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.003193/0.03248, allocations: 81 kB / 360.5 MB, free: 5.266 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002538/0.03273, allocations: 186.1 kB / 360.7 MB, free: 5.082 MB / 282.7 MB Notification: Performance of SimCode: time 9.52e-07/0.03273, allocations: 0 / 360.7 MB, free: 5.082 MB / 282.7 MB Notification: Performance of Templates: time 0.0255/0.05823, allocations: 9.177 MB / 369.8 MB, free: 12.01 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.2465528319589794]