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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo", uses=false) Using package ThermoPower with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ThermoPower.Examples.HRB.Simulators.TestPI,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Examples.HRB.Simulators.TestPI") translateModel(ThermoPower.Examples.HRB.Simulators.TestPI,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Examples.HRB.Simulators.TestPI") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001055/0.001055, allocations: 104.5 kB / 16.51 MB, free: 6.715 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00101/0.00101, allocations: 186.5 kB / 17.42 MB, free: 6.074 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.306/1.306, allocations: 205.1 MB / 223.3 MB, free: 12.48 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2617/0.2617, allocations: 48.84 MB / 319.5 MB, free: 11.31 MB / 270.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001324/0.001324, allocations: 67.09 kB / 389.4 MB, free: 48.98 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09538/0.09672, allocations: 59.16 MB / 448.5 MB, free: 10.27 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Examples.HRB.Simulators.TestPI): time 0.00302/0.09977, allocations: 1.706 MB / 450.2 MB, free: 8.543 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001144/0.1009, allocations: 0.7139 MB / 450.9 MB, free: 7.82 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.339e-05/0.101, allocations: 7.938 kB / 450.9 MB, free: 7.812 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002033/0.1013, allocations: 47.8 kB / 451 MB, free: 7.766 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.001e-05/0.1014, allocations: 55.8 kB / 451 MB, free: 7.711 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003568/0.1017, allocations: 91.83 kB / 451.1 MB, free: 7.621 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001658/0.1019, allocations: 147.6 kB / 451.3 MB, free: 7.477 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.383e-05/0.102, allocations: 21.45 kB / 451.3 MB, free: 7.457 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.41e-05/0.1021, allocations: 63.75 kB / 451.4 MB, free: 7.395 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000155/0.1022, allocations: 87.7 kB / 451.4 MB, free: 7.309 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.399e-05/0.1023, allocations: 11.94 kB / 451.5 MB, free: 7.297 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001261/0.1024, allocations: 79.86 kB / 451.5 MB, free: 7.219 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.925e-05/0.1025, allocations: 31.86 kB / 451.6 MB, free: 7.188 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.055e-05/0.1026, allocations: 71.59 kB / 451.6 MB, free: 7.117 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002348/0.1028, allocations: 187.6 kB / 451.8 MB, free: 6.934 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.1028, allocations: 0 / 451.8 MB, free: 6.934 MB / 334.1 MB Notification: Performance of FrontEnd: time 8.92e-07/0.1028, allocations: 0 / 451.8 MB, free: 6.934 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.088e-06/0.1028, allocations: 0 / 451.8 MB, free: 6.934 MB / 334.1 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.0007452/0.1036, allocations: 0.5176 MB / 452.3 MB, free: 6.355 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.636e-05/0.1036, allocations: 12.03 kB / 452.4 MB, free: 6.344 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.786e-05/0.1037, allocations: 20.75 kB / 452.4 MB, free: 6.324 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002346/0.1039, allocations: 231.7 kB / 452.6 MB, free: 6.059 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.826e-05/0.104, allocations: 4.375 kB / 452.6 MB, free: 6.055 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.123e-05/0.104, allocations: 12.36 kB / 452.6 MB, free: 6.043 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003376/0.1043, allocations: 165.3 kB / 452.8 MB, free: 5.867 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.586e-06/0.1044, allocations: 0 / 452.8 MB, free: 5.867 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.613e-05/0.1044, allocations: 4 kB / 452.8 MB, free: 5.863 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.911e-06/0.1044, allocations: 7.984 kB / 452.8 MB, free: 5.855 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002124/0.1046, allocations: 95.88 kB / 452.9 MB, free: 5.762 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006155/0.1052, allocations: 0.532 MB / 453.4 MB, free: 5.172 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002948/0.1055, allocations: 146.5 kB / 453.6 MB, free: 5.02 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001969/0.1057, allocations: 104.8 kB / 453.7 MB, free: 4.914 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.739e-05/0.1058, allocations: 0 / 453.7 MB, free: 4.914 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003252/0.1061, allocations: 189 kB / 453.8 MB, free: 4.711 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 1.483e-06/0.1061, allocations: 4 kB / 453.8 MB, free: 4.707 MB / 334.1 MB Notification: Performance of matching and sorting (n=17): time 0.0007976/0.1069, allocations: 426.9 kB / 454.3 MB, free: 4.277 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.758e-05/0.107, allocations: 81.11 kB / 454.3 MB, free: 4.18 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001731/0.1072, allocations: 202.8 kB / 454.5 MB, free: 3.969 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.051e-05/0.1072, allocations: 25.7 kB / 454.6 MB, free: 3.938 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.779e-05/0.1073, allocations: 120.4 kB / 454.7 MB, free: 3.816 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.55e-05/0.1073, allocations: 39.59 kB / 454.7 MB, free: 3.777 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.323e-05/0.1074, allocations: 41.7 kB / 454.8 MB, free: 3.73 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001102/0.1075, allocations: 334.8 kB / 455.1 MB, free: 3.395 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001828/0.1077, allocations: 79.95 kB / 455.2 MB, free: 3.316 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001769/0.1079, allocations: 121.3 kB / 455.3 MB, free: 3.184 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000892/0.1088, allocations: 493.8 kB / 455.8 MB, free: 2.664 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.1088, allocations: 0 / 455.8 MB, free: 2.664 MB / 334.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005175/0.1093, allocations: 322.9 kB / 456.1 MB, free: 2.336 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.325e-05/0.1094, allocations: 33.7 kB / 456.1 MB, free: 2.297 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.939e-06/0.1094, allocations: 0 / 456.1 MB, free: 2.297 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.452e-05/0.1094, allocations: 4 kB / 456.1 MB, free: 2.293 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001444/0.1095, allocations: 40.03 kB / 456.2 MB, free: 2.254 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.163e-06/0.1096, allocations: 7.938 kB / 456.2 MB, free: 2.246 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001335/0.1097, allocations: 15.89 kB / 456.2 MB, free: 2.23 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.852e-05/0.1097, allocations: 11.94 kB / 456.2 MB, free: 2.219 MB / 334.1 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.0001836/0.1099, allocations: 183.4 kB / 456.4 MB, free: 2.023 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.498e-05/0.11, allocations: 19.81 kB / 456.4 MB, free: 2.004 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.204e-05/0.11, allocations: 25.86 kB / 456.4 MB, free: 1.984 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-06/0.11, allocations: 4 kB / 456.4 MB, free: 1.98 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.9e-06/0.11, allocations: 0 / 456.4 MB, free: 1.98 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.11, allocations: 0 / 456.4 MB, free: 1.98 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008647/0.1109, allocations: 0.6921 MB / 457.1 MB, free: 1.227 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.754e-06/0.1109, allocations: 0 / 457.1 MB, free: 1.227 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.951e-05/0.111, allocations: 4 kB / 457.1 MB, free: 1.223 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.286e-06/0.111, allocations: 8 kB / 457.1 MB, free: 1.215 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.918e-05/0.111, allocations: 4 kB / 457.1 MB, free: 1.211 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.916e-06/0.111, allocations: 3.938 kB / 457.1 MB, free: 1.207 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.111, allocations: 0 / 457.1 MB, free: 1.207 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008454/0.1119, allocations: 0.578 MB / 457.7 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.041e-05/0.1119, allocations: 92.89 kB / 457.8 MB, free: 0.5 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.869e-05/0.112, allocations: 11.98 kB / 457.8 MB, free: 500 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001593/0.1121, allocations: 15.92 kB / 457.8 MB, free: 484 kB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.895e-05/0.1122, allocations: 7.984 kB / 457.8 MB, free: 476 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.967e-05/0.1122, allocations: 23.92 kB / 457.9 MB, free: 452 kB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001184/0.1124, allocations: 152 kB / 458 MB, free: 300 kB / 334.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.1124, allocations: 0 / 458 MB, free: 300 kB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003034/0.1127, allocations: 52 kB / 458.1 MB, free: 248 kB / 334.1 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.0001833/0.1129, allocations: 139.2 kB / 458.2 MB, free: 96 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005234/0.1134, allocations: 295.2 kB / 458.5 MB, free: 15.79 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.1134, allocations: 0 / 458.5 MB, free: 15.79 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002526/0.1137, allocations: 195.5 kB / 458.7 MB, free: 15.59 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003582/0.114, allocations: 31.97 kB / 458.7 MB, free: 15.56 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007179/0.1148, allocations: 397.7 kB / 459.1 MB, free: 15.14 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002899/0.1151, allocations: 0.7243 MB / 459.8 MB, free: 14.39 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.025e-05/0.1151, allocations: 12.64 kB / 459.8 MB, free: 14.38 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.805e-05/0.1152, allocations: 15.44 kB / 459.8 MB, free: 14.37 MB / 350.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1152, allocations: 0 / 459.8 MB, free: 14.37 MB / 350.1 MB Notification: Performance of Templates: time 0.004951/0.1201, allocations: 2.14 MB / 462 MB, free: 12.23 MB / 350.1 MB make -j1 -f ThermoPower_ThermoPower.Examples.HRB.Simulators.TestPI.makefile (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=480 -lv LOG_STATS > ThermoPower_ThermoPower.Examples.HRB.Simulators.TestPI.pipe 2>&1)