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.001514/0.001514, allocations: 108.3 kB / 17.06 MB, free: 6.023 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.001808/0.001808, allocations: 192 kB / 17.99 MB, free: 5.109 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.281/1.281, allocations: 205.1 MB / 223.9 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2519/0.2519, allocations: 48.84 MB / 320.1 MB, free: 11.02 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.001511/0.001511, allocations: 67.91 kB / 450.5 MB, free: 8.582 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09533/0.09685, allocations: 59.17 MB / 0.4977 GB, free: 13.29 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Examples.HRB.Simulators.TestPI): time 0.002914/0.09982, allocations: 1.65 MB / 0.4993 GB, free: 11.62 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001282/0.1011, allocations: 0.6981 MB / 0.5 GB, free: 10.91 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001167/0.1013, allocations: 3.938 kB / 0.5 GB, free: 10.91 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001943/0.1015, allocations: 51.8 kB / 0.5001 GB, free: 10.86 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001106/0.1016, allocations: 63.72 kB / 0.5001 GB, free: 10.79 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005084/0.1022, allocations: 119.7 kB / 0.5003 GB, free: 10.68 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000248/0.1024, allocations: 163.6 kB / 0.5004 GB, free: 10.52 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001097/0.1025, allocations: 37.34 kB / 0.5004 GB, free: 10.47 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001117/0.1027, allocations: 67.77 kB / 0.5005 GB, free: 10.41 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000169/0.1028, allocations: 95.64 kB / 0.5006 GB, free: 10.31 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.933e-05/0.1029, allocations: 12 kB / 0.5006 GB, free: 10.3 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001495/0.103, allocations: 87.92 kB / 0.5007 GB, free: 10.21 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.696e-05/0.1031, allocations: 31.91 kB / 0.5007 GB, free: 10.18 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 7.988e-05/0.1032, allocations: 67.59 kB / 0.5008 GB, free: 10.12 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002759/0.1035, allocations: 191.4 kB / 0.501 GB, free: 9.93 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.1035, allocations: 0 / 0.501 GB, free: 9.93 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.417e-06/0.1035, allocations: 4 kB / 0.501 GB, free: 9.926 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.462e-06/0.1035, allocations: 3.938 kB / 0.501 GB, free: 9.922 MB / 398.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.0007698/0.1043, allocations: 0.5137 MB / 0.5015 GB, free: 9.348 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.64e-05/0.1043, allocations: 15.89 kB / 0.5015 GB, free: 9.332 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.877e-05/0.1044, allocations: 16.75 kB / 0.5015 GB, free: 9.316 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000285/0.1047, allocations: 231.8 kB / 0.5017 GB, free: 9.051 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.899e-05/0.1047, allocations: 8.375 kB / 0.5017 GB, free: 9.043 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.415e-05/0.1047, allocations: 16.31 kB / 0.5018 GB, free: 9.027 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003426/0.1051, allocations: 168.5 kB / 0.5019 GB, free: 8.848 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.917e-06/0.1051, allocations: 0 / 0.5019 GB, free: 8.848 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.665e-05/0.1051, allocations: 0 / 0.5019 GB, free: 8.848 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.234e-06/0.1052, allocations: 4 kB / 0.5019 GB, free: 8.844 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002283/0.1054, allocations: 103.9 kB / 0.502 GB, free: 8.742 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006155/0.106, allocations: 0.532 MB / 0.5025 GB, free: 8.152 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003207/0.1063, allocations: 142.5 kB / 0.5027 GB, free: 8.004 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000191/0.1065, allocations: 96.81 kB / 0.5028 GB, free: 7.906 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.349e-05/0.1066, allocations: 7.984 kB / 0.5028 GB, free: 7.898 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003283/0.1069, allocations: 184.9 kB / 0.503 GB, free: 7.699 MB / 398.1 MB Notification: Performance of pre-optimization done (n=17): time 4.208e-06/0.1069, allocations: 112 / 0.503 GB, free: 7.699 MB / 398.1 MB Notification: Performance of matching and sorting (n=17): time 0.0008368/0.1078, allocations: 426.9 kB / 0.5034 GB, free: 7.27 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.84e-05/0.1079, allocations: 89.09 kB / 0.5034 GB, free: 7.164 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001893/0.108, allocations: 198.6 kB / 0.5036 GB, free: 6.957 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.384e-05/0.1081, allocations: 29.7 kB / 0.5037 GB, free: 6.922 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.46e-05/0.1082, allocations: 124.4 kB / 0.5038 GB, free: 6.797 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.631e-05/0.1082, allocations: 35.47 kB / 0.5038 GB, free: 6.762 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.721e-05/0.1083, allocations: 41.7 kB / 0.5039 GB, free: 6.715 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001132/0.1084, allocations: 334.8 kB / 0.5042 GB, free: 6.379 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001796/0.1086, allocations: 79.95 kB / 0.5042 GB, free: 6.301 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000203/0.1088, allocations: 120.2 kB / 0.5044 GB, free: 6.168 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000958/0.1098, allocations: 490.8 kB / 0.5048 GB, free: 5.648 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.016e-06/0.1098, allocations: 0 / 0.5048 GB, free: 5.648 MB / 398.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005632/0.1104, allocations: 319.6 kB / 0.5051 GB, free: 5.324 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.766e-05/0.1104, allocations: 45.59 kB / 0.5052 GB, free: 5.273 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.566e-06/0.1104, allocations: 7.938 kB / 0.5052 GB, free: 5.266 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.853e-05/0.1105, allocations: 0 / 0.5052 GB, free: 5.266 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001522/0.1106, allocations: 31.92 kB / 0.5052 GB, free: 5.234 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.954e-06/0.1106, allocations: 0 / 0.5052 GB, free: 5.234 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001313/0.1108, allocations: 27.95 kB / 0.5052 GB, free: 5.207 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.805e-05/0.1108, allocations: 8 kB / 0.5053 GB, free: 5.199 MB / 398.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.0002014/0.111, allocations: 187.4 kB / 0.5054 GB, free: 5 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.573e-05/0.1111, allocations: 19.81 kB / 0.5055 GB, free: 4.98 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.076e-05/0.1111, allocations: 21.86 kB / 0.5055 GB, free: 4.957 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.106e-06/0.1111, allocations: 0 / 0.5055 GB, free: 4.957 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.1111, allocations: 0 / 0.5055 GB, free: 4.957 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.959e-06/0.1111, allocations: 7.938 kB / 0.5055 GB, free: 4.949 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000917/0.112, allocations: 0.6756 MB / 0.5061 GB, free: 4.211 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.475e-06/0.1121, allocations: 4 kB / 0.5061 GB, free: 4.207 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.293e-05/0.1121, allocations: 11.94 kB / 0.5062 GB, free: 4.195 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.365e-06/0.1121, allocations: 3.938 kB / 0.5062 GB, free: 4.191 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.431e-05/0.1122, allocations: 11.92 kB / 0.5062 GB, free: 4.18 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.1122, allocations: 0 / 0.5062 GB, free: 4.18 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.1122, allocations: 4 kB / 0.5062 GB, free: 4.176 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009225/0.1131, allocations: 0.5749 MB / 0.5067 GB, free: 3.578 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.951e-05/0.1132, allocations: 96.83 kB / 0.5068 GB, free: 3.465 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.98e-05/0.1133, allocations: 8 kB / 0.5068 GB, free: 3.457 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001544/0.1134, allocations: 24.03 kB / 0.5069 GB, free: 3.434 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.242e-05/0.1135, allocations: 4 kB / 0.5069 GB, free: 3.43 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.891e-05/0.1135, allocations: 11.98 kB / 0.5069 GB, free: 3.418 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001194/0.1136, allocations: 147 kB / 0.507 GB, free: 3.273 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1136, allocations: 0 / 0.507 GB, free: 3.273 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003421/0.114, allocations: 56 kB / 0.5071 GB, free: 3.219 MB / 398.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.0001824/0.1142, allocations: 127.2 kB / 0.5072 GB, free: 3.086 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005294/0.1147, allocations: 299.2 kB / 0.5075 GB, free: 2.781 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.1147, allocations: 0 / 0.5075 GB, free: 2.781 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002473/0.115, allocations: 191.3 kB / 0.5077 GB, free: 2.582 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003635/0.1154, allocations: 41.09 kB / 0.5077 GB, free: 2.543 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006914/0.1161, allocations: 367.8 kB / 0.508 GB, free: 2.16 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002616/0.1163, allocations: 0.7201 MB / 0.5087 GB, free: 1.414 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 4.822e-05/0.1164, allocations: 12.64 kB / 0.5088 GB, free: 1.402 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.919e-05/0.1164, allocations: 15.44 kB / 0.5088 GB, free: 1.387 MB / 398.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1164, allocations: 0 / 0.5088 GB, free: 1.387 MB / 398.1 MB Notification: Performance of Templates: time 0.005997/0.1224, allocations: 2.308 MB / 0.511 GB, free: 15.08 MB / 414.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)