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.001216/0.001216, allocations: 108.6 kB / 17.06 MB, free: 6.098 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.001189/0.001189, allocations: 200.1 kB / 18 MB, free: 5.172 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.35/1.35, allocations: 205.1 MB / 223.9 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2697/0.2697, allocations: 48.85 MB / 320.1 MB, free: 11 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.001555/0.001555, allocations: 67.91 kB / 450.5 MB, free: 8.555 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1068/0.1084, allocations: 59.15 MB / 0.4977 GB, free: 13.27 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Examples.HRB.Simulators.TestPI): time 0.003048/0.1115, allocations: 1.654 MB / 0.4993 GB, free: 11.6 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001258/0.1128, allocations: 0.7097 MB / 0.5 GB, free: 10.88 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001093/0.1129, allocations: 0 / 0.5 GB, free: 10.88 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002108/0.1131, allocations: 55.75 kB / 0.5001 GB, free: 10.83 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001137/0.1133, allocations: 51.73 kB / 0.5001 GB, free: 10.78 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006755/0.114, allocations: 123.7 kB / 0.5003 GB, free: 10.66 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003705/0.1144, allocations: 171.5 kB / 0.5004 GB, free: 10.49 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000128/0.1145, allocations: 25.38 kB / 0.5004 GB, free: 10.46 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001422/0.1146, allocations: 75.8 kB / 0.5005 GB, free: 10.38 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001909/0.1148, allocations: 91.67 kB / 0.5006 GB, free: 10.29 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.176e-05/0.1149, allocations: 15.98 kB / 0.5006 GB, free: 10.28 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001704/0.1151, allocations: 91.86 kB / 0.5007 GB, free: 10.19 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.082e-05/0.1151, allocations: 27.91 kB / 0.5007 GB, free: 10.16 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001013/0.1153, allocations: 67.61 kB / 0.5008 GB, free: 10.09 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003586/0.1156, allocations: 187.4 kB / 0.501 GB, free: 9.91 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.017e-06/0.1156, allocations: 4 kB / 0.501 GB, free: 9.906 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.1156, allocations: 0 / 0.501 GB, free: 9.906 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.371e-05/0.1157, allocations: 0 / 0.501 GB, free: 9.906 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.0008834/0.1166, allocations: 0.5253 MB / 0.5015 GB, free: 9.32 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.065e-05/0.1166, allocations: 15.89 kB / 0.5015 GB, free: 9.305 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.199e-05/0.1167, allocations: 16.75 kB / 0.5015 GB, free: 9.289 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00033/0.117, allocations: 219.9 kB / 0.5017 GB, free: 9.035 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.018e-05/0.117, allocations: 8.375 kB / 0.5017 GB, free: 9.027 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.151e-05/0.1171, allocations: 12.36 kB / 0.5017 GB, free: 9.016 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003764/0.1175, allocations: 172.4 kB / 0.5019 GB, free: 8.832 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.636e-06/0.1175, allocations: 0 / 0.5019 GB, free: 8.832 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.914e-05/0.1175, allocations: 4 kB / 0.5019 GB, free: 8.828 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.312e-06/0.1175, allocations: 4 kB / 0.5019 GB, free: 8.824 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000234/0.1178, allocations: 95.88 kB / 0.502 GB, free: 8.73 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006281/0.1184, allocations: 0.5321 MB / 0.5025 GB, free: 8.141 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003259/0.1187, allocations: 150.4 kB / 0.5027 GB, free: 7.984 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002057/0.119, allocations: 100.8 kB / 0.5028 GB, free: 7.883 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.351e-05/0.119, allocations: 11.92 kB / 0.5028 GB, free: 7.871 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003097/0.1193, allocations: 176.9 kB / 0.503 GB, free: 7.68 MB / 398.1 MB Notification: Performance of pre-optimization done (n=17): time 1.733e-06/0.1193, allocations: 0 / 0.503 GB, free: 7.68 MB / 398.1 MB Notification: Performance of matching and sorting (n=17): time 0.0008484/0.1202, allocations: 431 kB / 0.5034 GB, free: 7.246 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.537e-05/0.1202, allocations: 81.11 kB / 0.5034 GB, free: 7.148 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001833/0.1204, allocations: 202.6 kB / 0.5036 GB, free: 6.938 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.198e-05/0.1205, allocations: 29.64 kB / 0.5037 GB, free: 6.902 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.388e-05/0.1205, allocations: 120.4 kB / 0.5038 GB, free: 6.781 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.409e-05/0.1206, allocations: 47.44 kB / 0.5038 GB, free: 6.734 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.856e-05/0.1207, allocations: 45.7 kB / 0.5039 GB, free: 6.684 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001184/0.1208, allocations: 334.8 kB / 0.5042 GB, free: 6.348 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001802/0.121, allocations: 75.95 kB / 0.5043 GB, free: 6.273 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002218/0.1212, allocations: 120.2 kB / 0.5044 GB, free: 6.141 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009521/0.1222, allocations: 482.8 kB / 0.5048 GB, free: 5.629 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.1222, allocations: 0 / 0.5048 GB, free: 5.629 MB / 398.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005749/0.1228, allocations: 319.6 kB / 0.5051 GB, free: 5.305 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.147e-05/0.1228, allocations: 45.59 kB / 0.5052 GB, free: 5.254 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.556e-06/0.1228, allocations: 4 kB / 0.5052 GB, free: 5.25 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.39e-05/0.1229, allocations: 3.938 kB / 0.5052 GB, free: 5.246 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001515/0.123, allocations: 35.97 kB / 0.5052 GB, free: 5.211 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.626e-06/0.123, allocations: 3.938 kB / 0.5052 GB, free: 5.207 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001355/0.1232, allocations: 27.83 kB / 0.5053 GB, free: 5.18 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.563e-05/0.1232, allocations: 4.062 kB / 0.5053 GB, free: 5.176 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.0001979/0.1234, allocations: 187.5 kB / 0.5054 GB, free: 4.977 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.221e-05/0.1235, allocations: 15.81 kB / 0.5054 GB, free: 4.961 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.759e-05/0.1235, allocations: 21.86 kB / 0.5055 GB, free: 4.938 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.1235, allocations: 0 / 0.5055 GB, free: 4.938 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.1235, allocations: 0 / 0.5055 GB, free: 4.938 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.362e-06/0.1235, allocations: 3.938 kB / 0.5055 GB, free: 4.934 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009471/0.1245, allocations: 0.6873 MB / 0.5061 GB, free: 4.184 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.1245, allocations: 4 kB / 0.5061 GB, free: 4.18 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.298e-05/0.1246, allocations: 8 kB / 0.5062 GB, free: 4.172 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.1246, allocations: 0 / 0.5062 GB, free: 4.172 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.138e-05/0.1246, allocations: 7.938 kB / 0.5062 GB, free: 4.164 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.314e-06/0.1246, allocations: 0 / 0.5062 GB, free: 4.164 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.031e-06/0.1246, allocations: 0 / 0.5062 GB, free: 4.164 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009266/0.1255, allocations: 0.5827 MB / 0.5067 GB, free: 3.559 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.252e-05/0.1256, allocations: 96.83 kB / 0.5068 GB, free: 3.445 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.041e-05/0.1257, allocations: 4 kB / 0.5068 GB, free: 3.441 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001571/0.1258, allocations: 19.92 kB / 0.5068 GB, free: 3.422 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.957e-05/0.1259, allocations: 16.05 kB / 0.5069 GB, free: 3.406 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.755e-05/0.1259, allocations: 4 kB / 0.5069 GB, free: 3.402 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001193/0.126, allocations: 151 kB / 0.507 GB, free: 3.254 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.126, allocations: 0 / 0.507 GB, free: 3.254 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003556/0.1264, allocations: 56 kB / 0.5071 GB, free: 3.199 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.0001929/0.1266, allocations: 123.2 kB / 0.5072 GB, free: 3.07 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000563/0.1272, allocations: 303.2 kB / 0.5075 GB, free: 2.762 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.1272, allocations: 0 / 0.5075 GB, free: 2.762 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002716/0.1275, allocations: 191.3 kB / 0.5077 GB, free: 2.562 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003759/0.1279, allocations: 32.86 kB / 0.5077 GB, free: 2.531 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00071/0.1286, allocations: 376.1 kB / 0.508 GB, free: 2.141 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002915/0.1289, allocations: 0.7201 MB / 0.5087 GB, free: 1.395 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 4.821e-05/0.1289, allocations: 12.64 kB / 0.5088 GB, free: 1.383 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.224e-05/0.129, allocations: 15.38 kB / 0.5088 GB, free: 1.367 MB / 398.1 MB Notification: Performance of SimCode: time 2.2e-07/0.129, allocations: 0 / 0.5088 GB, free: 1.367 MB / 398.1 MB Notification: Performance of Templates: time 0.005911/0.1349, allocations: 2.312 MB / 0.511 GB, free: 15.05 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)