Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_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.00189/0.00189, allocations: 91.61 kB / 20.96 MB, free: 3.465 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.002151/0.002151, allocations: 169.3 kB / 24.27 MB, free: 156 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.296/1.296, allocations: 158.6 MB / 186.1 MB, free: 2.914 MB / 170.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower master/package.mo): time 0.2966/0.2966, allocations: 36.34 MB / 274.7 MB, free: 10.71 MB / 266.7 MB " [Timeout remaining time 180] Using package ThermoPower with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower master/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_ThermoPower.Examples.HRB.Simulators.TestPI") translateModel(ThermoPower.Examples.HRB.Simulators.TestPI,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Examples.HRB.Simulators.TestPI") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.573e-06/1.573e-06, allocations: 0 / 353 MB, free: 3.809 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.765e-05/2.923e-05, allocations: 9.688 kB / 353 MB, free: 3.801 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ThermoPower.Examples.HRB.Simulators.TestPI): time 0.002172/0.002201, allocations: 1.655 MB / 354.7 MB, free: 2.125 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001018/0.00322, allocations: 0.6708 MB / 355.4 MB, free: 1.445 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.992e-05/0.003299, allocations: 0 / 355.4 MB, free: 1.445 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001786/0.003478, allocations: 55.73 kB / 355.4 MB, free: 1.391 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 7.582e-05/0.003554, allocations: 59.72 kB / 355.5 MB, free: 1.332 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003801/0.003934, allocations: 127.5 kB / 355.6 MB, free: 1.207 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001631/0.004097, allocations: 163.6 kB / 355.8 MB, free: 1.047 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.307e-05/0.00418, allocations: 17.62 kB / 355.8 MB, free: 1.023 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001167/0.004297, allocations: 91.78 kB / 355.9 MB, free: 0.9336 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001368/0.004434, allocations: 87.81 kB / 356 MB, free: 0.8477 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.845e-05/0.004462, allocations: 12 kB / 356 MB, free: 0.8359 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001117/0.004574, allocations: 83.86 kB / 356.1 MB, free: 0.7539 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.22e-05/0.004626, allocations: 31.84 kB / 356.1 MB, free: 0.7227 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 5.546e-05/0.004681, allocations: 43.84 kB / 356.1 MB, free: 0.6797 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002351/0.004917, allocations: 211.4 kB / 356.3 MB, free: 484 kB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.346e-06/0.00492, allocations: 0 / 356.3 MB, free: 484 kB / 282.7 MB Notification: Performance of FrontEnd: time 9.32e-07/0.004921, allocations: 8 kB / 356.3 MB, free: 476 kB / 282.7 MB Notification: Performance of Transformations before backend: time 4.839e-06/0.004926, allocations: 0 / 356.3 MB, free: 476 kB / 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.0007168/0.005642, allocations: 0.5534 MB / 356.9 MB, free: 15.86 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.394e-05/0.005676, allocations: 8.031 kB / 356.9 MB, free: 15.86 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.78e-05/0.005754, allocations: 24.84 kB / 356.9 MB, free: 15.83 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002928/0.006047, allocations: 184 kB / 357.1 MB, free: 15.62 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.966e-05/0.006067, allocations: 4.375 kB / 357.1 MB, free: 15.62 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.484e-05/0.006102, allocations: 20.36 kB / 357.1 MB, free: 15.6 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003729/0.006474, allocations: 182.9 kB / 357.3 MB, free: 15.4 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.021e-05/0.006485, allocations: 4.188 kB / 357.3 MB, free: 15.39 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.444e-05/0.006499, allocations: 384 / 357.3 MB, free: 15.39 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.003e-06/0.006506, allocations: 3.938 kB / 357.3 MB, free: 15.39 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002263/0.006732, allocations: 99.41 kB / 357.4 MB, free: 15.29 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008108/0.007543, allocations: 0.6223 MB / 358 MB, free: 14.62 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003236/0.007867, allocations: 148.6 kB / 358.2 MB, free: 14.46 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002006/0.008067, allocations: 93.36 kB / 358.3 MB, free: 14.36 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.375e-05/0.008101, allocations: 4 kB / 358.3 MB, free: 14.35 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003689/0.00847, allocations: 204.3 kB / 358.5 MB, free: 14.12 MB / 298.7 MB Notification: Performance of pre-optimization done (n=17): time 1.302e-06/0.008471, allocations: 0 / 358.5 MB, free: 14.12 MB / 298.7 MB Notification: Performance of matching and sorting (n=17): time 0.000872/0.009343, allocations: 393.8 kB / 358.9 MB, free: 13.72 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.816e-05/0.009421, allocations: 93.09 kB / 359 MB, free: 13.61 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002858/0.009707, allocations: 269.6 kB / 359.2 MB, free: 13.33 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.157e-05/0.009739, allocations: 33.69 kB / 359.2 MB, free: 13.29 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000148/0.009887, allocations: 171.1 kB / 359.4 MB, free: 13.12 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.024e-05/0.009937, allocations: 39.84 kB / 359.5 MB, free: 13.08 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.925e-05/0.01003, allocations: 55.3 kB / 359.5 MB, free: 13.02 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0003259/0.01035, allocations: 0.5119 MB / 360 MB, free: 12.49 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001818/0.01053, allocations: 89.47 kB / 360.1 MB, free: 12.4 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002207/0.01075, allocations: 140.1 kB / 360.2 MB, free: 12.23 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005603/0.01132, allocations: 319.3 kB / 360.6 MB, free: 11.88 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.01132, allocations: 0 / 360.6 MB, free: 11.88 MB / 298.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006348/0.01195, allocations: 312.8 kB / 360.9 MB, free: 11.56 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.61e-05/0.01201, allocations: 40.03 kB / 360.9 MB, free: 11.52 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.292e-06/0.01201, allocations: 0 / 360.9 MB, free: 11.52 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.683e-05/0.01203, allocations: 4 kB / 360.9 MB, free: 11.51 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001417/0.01217, allocations: 27.92 kB / 360.9 MB, free: 11.48 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.781e-06/0.01218, allocations: 0 / 360.9 MB, free: 11.48 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001172/0.0123, allocations: 19.94 kB / 361 MB, free: 11.46 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.92e-05/0.01232, allocations: 8 kB / 361 MB, free: 11.46 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.0002439/0.01256, allocations: 223.9 kB / 361.2 MB, free: 11.22 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.065e-05/0.01261, allocations: 27.89 kB / 361.2 MB, free: 11.2 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.265e-05/0.01265, allocations: 17.81 kB / 361.2 MB, free: 11.18 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.01265, allocations: 3.938 kB / 361.2 MB, free: 11.18 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.975e-06/0.01266, allocations: 4 kB / 361.2 MB, free: 11.17 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.293e-06/0.01267, allocations: 3.984 kB / 361.2 MB, free: 11.17 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00103/0.0137, allocations: 0.6528 MB / 361.9 MB, free: 10.46 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.0137, allocations: 0 / 361.9 MB, free: 10.46 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.525e-05/0.01376, allocations: 7.984 kB / 361.9 MB, free: 10.45 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.01376, allocations: 0 / 361.9 MB, free: 10.45 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.085e-05/0.01378, allocations: 8 kB / 361.9 MB, free: 10.45 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.01378, allocations: 0 / 361.9 MB, free: 10.45 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.01378, allocations: 3.938 kB / 361.9 MB, free: 10.44 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0011/0.01488, allocations: 0.6013 MB / 362.5 MB, free: 9.805 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.296e-05/0.01493, allocations: 27.83 kB / 362.5 MB, free: 9.777 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.767e-05/0.01496, allocations: 4 kB / 362.5 MB, free: 9.773 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001393/0.0151, allocations: 11.98 kB / 362.5 MB, free: 9.762 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.333e-05/0.01516, allocations: 11.98 kB / 362.6 MB, free: 9.75 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.862e-05/0.01518, allocations: 11.97 kB / 362.6 MB, free: 9.738 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001627/0.01535, allocations: 184.1 kB / 362.8 MB, free: 9.559 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01535, allocations: 0 / 362.8 MB, free: 9.559 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003119/0.01566, allocations: 55.94 kB / 362.8 MB, free: 9.504 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.0002547/0.01591, allocations: 134.8 kB / 362.9 MB, free: 9.367 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0005559/0.01647, allocations: 311.4 kB / 363.2 MB, free: 9.035 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.01647, allocations: 4.25 kB / 363.2 MB, free: 9.031 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002721/0.01674, allocations: 181 kB / 363.4 MB, free: 8.832 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003887/0.01713, allocations: 40.12 kB / 363.5 MB, free: 8.793 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007782/0.01791, allocations: 363.6 kB / 363.8 MB, free: 8.406 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001398/0.01805, allocations: 115.4 kB / 363.9 MB, free: 8.273 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 4.373e-05/0.01809, allocations: 8.641 kB / 363.9 MB, free: 8.266 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.516e-05/0.01813, allocations: 16.5 kB / 364 MB, free: 8.25 MB / 298.7 MB Notification: Performance of SimCode: time 8.72e-07/0.01813, allocations: 0 / 364 MB, free: 8.25 MB / 298.7 MB Notification: Performance of Templates: time 0.007204/0.02533, allocations: 2.481 MB / 366.4 MB, free: 5.773 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f ThermoPower_ThermoPower.Examples.HRB.Simulators.TestPI.makefile [Timeout 660] (rm -f ThermoPower_ThermoPower.Examples.HRB.Simulators.TestPI.pipe ; mkfifo ThermoPower_ThermoPower.Examples.HRB.Simulators.TestPI.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Examples.HRB.Simulators.TestPI.pipe >> ../files/ThermoPower_ThermoPower.Examples.HRB.Simulators.TestPI.sim & ./ThermoPower_ThermoPower.Examples.HRB.Simulators.TestPI -abortSlowSimulation -alarm=240 -lv LOG_STATS > ThermoPower_ThermoPower.Examples.HRB.Simulators.TestPI.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 4.805215143947862]