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.001436/0.001436, allocations: 84.73 kB / 19.44 MB, free: 344 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.001703/0.001703, allocations: 161.7 kB / 22.76 MB, free: 1.672 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 1.46/1.46, allocations: 177.1 MB / 203.1 MB, free: 5.59 MB / 186.7 MB " [Timeout remaining time 178] 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.06488/0.06488, allocations: 8.602 MB / 268.2 MB, free: 4.934 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.363e-06/1.363e-06, allocations: 0 / 340.1 MB, free: 8.73 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.397e-05/2.533e-05, allocations: 2.312 kB / 340.1 MB, free: 8.727 MB / 266.7 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN): time 0.002968/0.002994, allocations: 2.334 MB / 342.5 MB, free: 6.375 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002493/0.005487, allocations: 1.639 MB / 344.1 MB, free: 4.73 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000285/0.005772, allocations: 7.938 kB / 344.1 MB, free: 4.723 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001223/0.006995, allocations: 0.631 MB / 344.7 MB, free: 4.09 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009503/0.007945, allocations: 494.1 kB / 345.2 MB, free: 3.605 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009568/0.008902, allocations: 446.9 kB / 345.7 MB, free: 3.168 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006754/0.009578, allocations: 0.7323 MB / 346.4 MB, free: 2.434 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001641/0.009742, allocations: 53.92 kB / 346.5 MB, free: 2.375 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000502/0.01024, allocations: 399 kB / 346.8 MB, free: 1.984 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003365/0.01058, allocations: 303.2 kB / 347.1 MB, free: 1.688 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.808e-05/0.01065, allocations: 40 kB / 347.2 MB, free: 1.648 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003163/0.01096, allocations: 187.7 kB / 347.4 MB, free: 1.465 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001598/0.01112, allocations: 211.3 kB / 347.6 MB, free: 1.258 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001719/0.0113, allocations: 159.4 kB / 347.7 MB, free: 1.102 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007068/0.012, allocations: 0.7708 MB / 348.5 MB, free: 336 kB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.157e-06/0.01201, allocations: 0 / 348.5 MB, free: 336 kB / 266.7 MB Notification: Performance of FrontEnd: time 1.162e-06/0.01201, allocations: 0 / 348.5 MB, free: 336 kB / 266.7 MB Notification: Performance of Transformations before backend: time 1.608e-05/0.01202, allocations: 0 / 348.5 MB, free: 336 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.001903/0.01393, allocations: 1.014 MB / 349.5 MB, free: 15.25 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.167e-05/0.01397, allocations: 12.03 kB / 349.5 MB, free: 15.24 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002317/0.0142, allocations: 88.45 kB / 349.6 MB, free: 15.16 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001019/0.01522, allocations: 0.489 MB / 350.1 MB, free: 14.64 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.687e-05/0.01526, allocations: 20.69 kB / 350.1 MB, free: 14.62 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.294e-05/0.01531, allocations: 20.38 kB / 350.1 MB, free: 14.6 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005637/0.01587, allocations: 263.1 kB / 350.4 MB, free: 14.33 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.808e-06/0.01588, allocations: 0 / 350.4 MB, free: 14.33 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.715e-05/0.01591, allocations: 8 kB / 350.4 MB, free: 14.32 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.005e-06/0.01592, allocations: 4 kB / 350.4 MB, free: 14.32 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003627/0.01628, allocations: 136.5 kB / 350.5 MB, free: 14.18 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00155/0.01783, allocations: 0.617 MB / 351.2 MB, free: 13.54 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008758/0.01871, allocations: 272.8 kB / 351.4 MB, free: 13.26 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002438/0.01895, allocations: 88.81 kB / 351.5 MB, free: 13.17 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.356e-05/0.01897, allocations: 4 kB / 351.5 MB, free: 13.17 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005706/0.01955, allocations: 292.7 kB / 351.8 MB, free: 12.85 MB / 282.7 MB Notification: Performance of pre-optimization done (n=30): time 1.743e-06/0.01955, allocations: 0 / 351.8 MB, free: 12.85 MB / 282.7 MB Notification: Performance of matching and sorting (n=30): time 0.001162/0.02071, allocations: 481 kB / 352.3 MB, free: 12.38 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.642e-05/0.0208, allocations: 89.05 kB / 352.4 MB, free: 12.27 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001426/0.02222, allocations: 0.934 MB / 353.3 MB, free: 11.32 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.693e-05/0.02227, allocations: 33.7 kB / 353.3 MB, free: 11.29 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003079/0.02258, allocations: 293.2 kB / 353.6 MB, free: 11 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00011/0.02269, allocations: 87.36 kB / 353.7 MB, free: 10.91 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001231/0.02281, allocations: 65.69 kB / 353.8 MB, free: 10.84 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001838/0.02299, allocations: 322 kB / 354.1 MB, free: 10.52 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002346/0.02323, allocations: 83.95 kB / 354.2 MB, free: 10.44 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004686/0.0237, allocations: 369.3 kB / 354.5 MB, free: 9.988 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006532/0.02435, allocations: 319.8 kB / 354.8 MB, free: 9.633 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.333e-06/0.02436, allocations: 4 kB / 354.8 MB, free: 9.629 MB / 282.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0009127/0.02527, allocations: 409 kB / 355.2 MB, free: 9.223 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.42e-05/0.02529, allocations: 8 kB / 355.2 MB, free: 9.215 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.301e-05/0.02531, allocations: 4 kB / 355.2 MB, free: 9.211 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.101e-05/0.02534, allocations: 4 kB / 355.2 MB, free: 9.207 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002235/0.02556, allocations: 56.16 kB / 355.3 MB, free: 9.152 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.381e-05/0.02557, allocations: 7.938 kB / 355.3 MB, free: 9.145 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002869/0.02586, allocations: 39.83 kB / 355.3 MB, free: 9.105 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.3e-05/0.02589, allocations: 16 kB / 355.4 MB, free: 9.09 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.0004447/0.02634, allocations: 262.7 kB / 355.6 MB, free: 8.824 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001636/0.0265, allocations: 87.45 kB / 355.7 MB, free: 8.738 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000938/0.02744, allocations: 416.9 kB / 356.1 MB, free: 8.32 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.444e-06/0.02745, allocations: 7.984 kB / 356.1 MB, free: 8.312 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.119e-06/0.02745, allocations: 0 / 356.1 MB, free: 8.312 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.256e-06/0.02746, allocations: 4 kB / 356.1 MB, free: 8.309 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005593/0.02802, allocations: 365 kB / 356.5 MB, free: 7.922 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.02802, allocations: 0 / 356.5 MB, free: 7.922 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.824e-05/0.02812, allocations: 23.98 kB / 356.5 MB, free: 7.898 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.18e-05/0.02813, allocations: 11.94 kB / 356.5 MB, free: 7.887 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.866e-05/0.02816, allocations: 11.98 kB / 356.5 MB, free: 7.875 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.805e-06/0.02817, allocations: 0 / 356.5 MB, free: 7.875 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.937e-06/0.02817, allocations: 3.984 kB / 356.5 MB, free: 7.871 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008708/0.02904, allocations: 440.4 kB / 357 MB, free: 7.422 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001446/0.02919, allocations: 75.48 kB / 357 MB, free: 7.348 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.619e-05/0.02927, allocations: 15.94 kB / 357 MB, free: 7.332 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002005/0.02947, allocations: 23.97 kB / 357.1 MB, free: 7.309 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.705e-05/0.02956, allocations: 23.95 kB / 357.1 MB, free: 7.285 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.086e-05/0.0296, allocations: 19.98 kB / 357.1 MB, free: 7.266 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0009894/0.03059, allocations: 0.6825 MB / 357.8 MB, free: 6.59 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.03059, allocations: 0 / 357.8 MB, free: 6.59 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005186/0.03111, allocations: 119.8 kB / 357.9 MB, free: 6.473 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.002347/0.03346, allocations: 0.4897 MB / 358.4 MB, free: 6.156 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0006874/0.03414, allocations: 259.6 kB / 358.7 MB, free: 5.902 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.03414, allocations: 0 / 358.7 MB, free: 5.902 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002946/0.03444, allocations: 132.3 kB / 358.8 MB, free: 5.773 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008126/0.03525, allocations: 178.1 kB / 359 MB, free: 5.617 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001932/0.03718, allocations: 1.078 MB / 360 MB, free: 4.508 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004063/0.03759, allocations: 309.8 kB / 360.3 MB, free: 4.184 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0003061/0.0379, allocations: 104.5 kB / 360.4 MB, free: 4.078 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001521/0.03805, allocations: 60.48 kB / 360.5 MB, free: 4.02 MB / 282.7 MB Notification: Performance of SimCode: time 5.71e-07/0.03805, allocations: 0 / 360.5 MB, free: 4.02 MB / 282.7 MB Notification: Performance of Templates: time 0.01849/0.05654, allocations: 8.264 MB / 368.8 MB, free: 11.86 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=480 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.759158252971247]