Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_4.0.0-dev_ThermoPower.Examples.HRB.Simulators.TestPI.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.000938/0.000938, allocations: 71.77 kB / 21.69 MB, free: 2.859 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.0009331/0.0009331, allocations: 165.9 kB / 24.99 MB, free: 8.336 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.8799/0.8799, allocations: 177.1 MB / 205.3 MB, free: 5.637 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 4.0.0-dev/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 4.0.0-dev/package.mo): time 0.08576/0.08576, allocations: 19.74 MB / 281.5 MB, free: 9.332 MB / 266.7 MB " [Timeout remaining time 180] Using package ThermoPower with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 4.0.0-dev/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(ThermoPower.Examples.HRB.Simulators.TestPI,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoPower_4.0.0-dev_ThermoPower.Examples.HRB.Simulators.TestPI") translateModel(ThermoPower.Examples.HRB.Simulators.TestPI,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoPower_4.0.0-dev_ThermoPower.Examples.HRB.Simulators.TestPI") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.463e-06/1.463e-06, allocations: 0 / 357.9 MB, free: 6.961 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.758e-05/1.905e-05, allocations: 6.25 kB / 357.9 MB, free: 6.953 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ThermoPower.Examples.HRB.Simulators.TestPI): time 0.001938/0.001957, allocations: 1.691 MB / 359.6 MB, free: 5.246 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008936/0.002851, allocations: 0.6466 MB / 360.3 MB, free: 4.594 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.695e-05/0.002918, allocations: 0 / 360.3 MB, free: 4.594 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001787/0.003096, allocations: 55.75 kB / 360.3 MB, free: 4.539 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 6.447e-05/0.003161, allocations: 59.67 kB / 360.4 MB, free: 4.48 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003552/0.003516, allocations: 127.5 kB / 360.5 MB, free: 4.355 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001713/0.003687, allocations: 155.6 kB / 360.7 MB, free: 4.203 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.317e-05/0.00377, allocations: 13.62 kB / 360.7 MB, free: 4.188 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.024e-05/0.003861, allocations: 95.78 kB / 360.8 MB, free: 4.094 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001261/0.003987, allocations: 91.81 kB / 360.9 MB, free: 4.004 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.002e-05/0.004007, allocations: 8 kB / 360.9 MB, free: 3.996 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.457e-05/0.004101, allocations: 79.92 kB / 360.9 MB, free: 3.918 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.344e-05/0.004155, allocations: 39.84 kB / 361 MB, free: 3.879 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 5.463e-05/0.004209, allocations: 35.84 kB / 361 MB, free: 3.844 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002067/0.004416, allocations: 179.4 kB / 361.2 MB, free: 3.668 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.864e-06/0.004418, allocations: 0 / 361.2 MB, free: 3.668 MB / 282.7 MB Notification: Performance of FrontEnd: time 5.11e-07/0.004418, allocations: 0 / 361.2 MB, free: 3.668 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.576e-06/0.004422, allocations: 0 / 361.2 MB, free: 3.668 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: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0005168/0.004939, allocations: 0.5499 MB / 361.7 MB, free: 3.07 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.062e-05/0.004969, allocations: 8.031 kB / 361.8 MB, free: 3.062 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.295e-05/0.005022, allocations: 28.8 kB / 361.8 MB, free: 3.035 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001671/0.00519, allocations: 173.7 kB / 362 MB, free: 2.84 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.684e-05/0.005206, allocations: 8.375 kB / 362 MB, free: 2.832 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.339e-05/0.00523, allocations: 12.36 kB / 362 MB, free: 2.82 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001956/0.005425, allocations: 178.6 kB / 362.1 MB, free: 2.621 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.243e-06/0.005433, allocations: 4.125 kB / 362.2 MB, free: 2.617 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.203e-05/0.005445, allocations: 8.375 kB / 362.2 MB, free: 2.609 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.235e-06/0.005453, allocations: 7.938 kB / 362.2 MB, free: 2.602 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.76e-05/0.005531, allocations: 69.66 kB / 362.2 MB, free: 2.527 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000412/0.005943, allocations: 0.599 MB / 362.8 MB, free: 1.883 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001247/0.006067, allocations: 108.7 kB / 362.9 MB, free: 1.758 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.464e-05/0.006132, allocations: 69.36 kB / 363 MB, free: 1.68 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.212e-05/0.006144, allocations: 0 / 363 MB, free: 1.68 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001606/0.006305, allocations: 176.4 kB / 363.2 MB, free: 1.48 MB / 282.7 MB Notification: Performance of pre-optimization done (n=17): time 1.232e-06/0.006306, allocations: 4 kB / 363.2 MB, free: 1.477 MB / 282.7 MB Notification: Performance of matching and sorting (n=17): time 0.0003684/0.006674, allocations: 318.7 kB / 363.5 MB, free: 1.141 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.007e-05/0.006714, allocations: 89.09 kB / 363.6 MB, free: 1.035 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001306/0.006845, allocations: 245.6 kB / 363.8 MB, free: 0.7773 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.428e-05/0.006859, allocations: 29.7 kB / 363.9 MB, free: 0.7422 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.867e-05/0.006928, allocations: 171.1 kB / 364 MB, free: 0.5703 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.704e-05/0.006955, allocations: 39.83 kB / 364.1 MB, free: 0.5312 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.872e-05/0.007004, allocations: 47.36 kB / 364.1 MB, free: 488 kB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001157/0.007119, allocations: 0.5001 MB / 364.6 MB, free: 15.96 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.657e-05/0.007176, allocations: 61.69 kB / 364.7 MB, free: 15.9 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.891e-05/0.007255, allocations: 116 kB / 364.8 MB, free: 15.76 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001836/0.007438, allocations: 242 kB / 365 MB, free: 15.48 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.00744, allocations: 0 / 365 MB, free: 15.48 MB / 298.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002582/0.007699, allocations: 256.6 kB / 365.3 MB, free: 15.21 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.701e-05/0.007726, allocations: 41.69 kB / 365.3 MB, free: 15.17 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.569e-06/0.00773, allocations: 0 / 365.3 MB, free: 15.17 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.162e-05/0.007742, allocations: 8.125 kB / 365.3 MB, free: 15.16 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.282e-05/0.007825, allocations: 23.98 kB / 365.3 MB, free: 15.14 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.95e-06/0.00783, allocations: 0 / 365.3 MB, free: 15.14 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.83e-05/0.007888, allocations: 15.94 kB / 365.4 MB, free: 15.12 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.219e-05/0.0079, allocations: 15.92 kB / 365.4 MB, free: 15.11 MB / 298.7 MB Warning: Assuming fixed start value for the following 1 variables: digitalPI.e_int:DISCRETE(start = digitalPI.CSstart / digitalPI.Kp * digitalPI.Ti fixed = true ) \"Integrated error\" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 18 (digitalPI.firstTrigger,$PRE.digitalPI.firstTrigger,digitalPI.sampleTrigger,$whenCondition1,$PRE.digitalPI.e_int,timeTable.nextEventScaled,timeTable.nextEvent,$PRE.timeTable.nextEvent,timeTable.last,timeTable.b,timeTable.a,digitalPI.CS,digitalPI.CSwind,digitalPI.e_int_wind,digitalPI.e_int,digitalPI.e,$whenCondition2,integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 1 * 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.000127/0.008027, allocations: 210.2 kB / 365.6 MB, free: 14.88 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.63e-05/0.008053, allocations: 27.84 kB / 365.6 MB, free: 14.86 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.366e-05/0.008077, allocations: 13.81 kB / 365.6 MB, free: 14.84 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.008079, allocations: 8 kB / 365.6 MB, free: 14.83 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.345e-06/0.008081, allocations: 0 / 365.6 MB, free: 14.83 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.406e-06/0.008084, allocations: 0 / 365.6 MB, free: 14.83 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004614/0.008546, allocations: 0.596 MB / 366.2 MB, free: 14.18 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.008547, allocations: 0 / 366.2 MB, free: 14.18 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.485e-05/0.008582, allocations: 4 kB / 366.2 MB, free: 14.18 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.236e-06/0.008585, allocations: 4 kB / 366.2 MB, free: 14.18 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.433e-05/0.008599, allocations: 4 kB / 366.2 MB, free: 14.17 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.236e-06/0.008603, allocations: 4 kB / 366.2 MB, free: 14.17 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.714e-06/0.008604, allocations: 7.922 kB / 366.2 MB, free: 14.16 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003656/0.00897, allocations: 0.4957 MB / 366.7 MB, free: 13.63 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.892e-05/0.008989, allocations: 31.91 kB / 366.8 MB, free: 13.6 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.197e-05/0.009011, allocations: 0 / 366.8 MB, free: 13.6 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.249e-05/0.009083, allocations: 11.98 kB / 366.8 MB, free: 13.59 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.504e-05/0.009118, allocations: 15.98 kB / 366.8 MB, free: 13.57 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.176e-05/0.00914, allocations: 11.94 kB / 366.8 MB, free: 13.56 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.859e-05/0.009209, allocations: 176.1 kB / 367 MB, free: 13.39 MB / 298.7 MB Notification: Performance of sort global known variables: time 7e-08/0.009209, allocations: 0 / 367 MB, free: 13.39 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001998/0.009409, allocations: 59.89 kB / 367 MB, free: 13.33 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (integrator.y) * Number of discrete variables: 14 (digitalPI.sampleTrigger,$whenCondition1,$whenCondition2,digitalPI.firstTrigger,digitalPI.e,digitalPI.e_int,digitalPI.e_int_wind,digitalPI.CSwind,digitalPI.CS,timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent,timeTable.nextEventScaled) * Number of discrete states: 7 (timeTable.nextEvent,timeTable.last,timeTable.nextEventScaled,timeTable.b,timeTable.a,$whenCondition2,digitalPI.e_int) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 6 * 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.0001288/0.009537, allocations: 135.2 kB / 367.2 MB, free: 13.19 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002202/0.009758, allocations: 244.4 kB / 367.4 MB, free: 12.92 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.403e-06/0.009759, allocations: 0 / 367.4 MB, free: 12.92 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 9.788e-05/0.009857, allocations: 156.7 kB / 367.6 MB, free: 12.75 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002434/0.0101, allocations: 43.7 kB / 367.6 MB, free: 12.7 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003957/0.0105, allocations: 336.4 kB / 367.9 MB, free: 12.34 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.961e-05/0.01054, allocations: 80.08 kB / 368 MB, free: 12.24 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 2.647e-05/0.01056, allocations: 8.656 kB / 368 MB, free: 12.23 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.716e-05/0.01059, allocations: 24.42 kB / 368 MB, free: 12.21 MB / 298.7 MB Notification: Performance of SimCode: time 4.91e-07/0.01059, allocations: 0 / 368 MB, free: 12.21 MB / 298.7 MB Notification: Performance of Templates: time 0.003871/0.01446, allocations: 2.467 MB / 370.5 MB, free: 9.777 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f ThermoPower_4.0.0-dev_ThermoPower.Examples.HRB.Simulators.TestPI.makefile [Timeout 660] (rm -f ThermoPower_4.0.0-dev_ThermoPower.Examples.HRB.Simulators.TestPI.pipe ; mkfifo ThermoPower_4.0.0-dev_ThermoPower.Examples.HRB.Simulators.TestPI.pipe ; head -c 1048576 < ThermoPower_4.0.0-dev_ThermoPower.Examples.HRB.Simulators.TestPI.pipe >> ../files/ThermoPower_4.0.0-dev_ThermoPower.Examples.HRB.Simulators.TestPI.sim & ./ThermoPower_4.0.0-dev_ThermoPower.Examples.HRB.Simulators.TestPI -abortSlowSimulation -alarm=240 -lv LOG_STATS > ThermoPower_4.0.0-dev_ThermoPower.Examples.HRB.Simulators.TestPI.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 2.6576984759885818]