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.001064/0.001064, allocations: 114.3 kB / 17.07 MB, free: 6.016 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.001143/0.001143, allocations: 191 kB / 18 MB, free: 5.098 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.292/1.292, allocations: 205.1 MB / 223.9 MB, free: 12.29 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2737/0.2737, 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.001499/0.001499, allocations: 68.23 kB / 450.5 MB, free: 8.574 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1092/0.1107, allocations: 59.16 MB / 0.4977 GB, free: 13.28 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Examples.HRB.Simulators.TestPI): time 0.002714/0.1134, allocations: 1.646 MB / 0.4993 GB, free: 11.62 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001144/0.1146, allocations: 0.702 MB / 0.5 GB, free: 10.91 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.622e-05/0.1147, allocations: 7.938 kB / 0.5 GB, free: 10.9 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001968/0.1149, allocations: 47.81 kB / 0.5001 GB, free: 10.85 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 9.329e-05/0.115, allocations: 63.72 kB / 0.5001 GB, free: 10.79 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004843/0.1155, allocations: 119.7 kB / 0.5003 GB, free: 10.67 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002439/0.1158, allocations: 163.6 kB / 0.5004 GB, free: 10.51 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001153/0.1159, allocations: 25.42 kB / 0.5004 GB, free: 10.48 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.5e-05/0.116, allocations: 67.75 kB / 0.5005 GB, free: 10.41 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001699/0.1162, allocations: 99.64 kB / 0.5006 GB, free: 10.32 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.927e-05/0.1162, allocations: 12 kB / 0.5006 GB, free: 10.3 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001392/0.1163, allocations: 87.92 kB / 0.5007 GB, free: 10.22 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.96e-05/0.1164, allocations: 31.91 kB / 0.5007 GB, free: 10.19 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001018/0.1165, allocations: 71.58 kB / 0.5008 GB, free: 10.12 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003062/0.1168, allocations: 195.2 kB / 0.501 GB, free: 9.926 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.207e-06/0.1169, allocations: 0 / 0.501 GB, free: 9.926 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.116e-06/0.1169, allocations: 3.938 kB / 0.501 GB, free: 9.922 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.801e-06/0.1169, allocations: 3.938 kB / 0.501 GB, free: 9.918 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.0007594/0.1176, allocations: 0.5214 MB / 0.5015 GB, free: 9.336 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.614e-05/0.1177, allocations: 15.89 kB / 0.5015 GB, free: 9.32 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.487e-05/0.1177, allocations: 20.8 kB / 0.5015 GB, free: 9.301 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002994/0.118, allocations: 228 kB / 0.5017 GB, free: 9.039 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.923e-05/0.1181, allocations: 8.312 kB / 0.5018 GB, free: 9.031 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.212e-05/0.1181, allocations: 8.375 kB / 0.5018 GB, free: 9.023 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003547/0.1185, allocations: 176.5 kB / 0.5019 GB, free: 8.836 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.646e-06/0.1185, allocations: 0 / 0.5019 GB, free: 8.836 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.563e-05/0.1185, allocations: 0 / 0.5019 GB, free: 8.836 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.713e-06/0.1185, allocations: 4 kB / 0.5019 GB, free: 8.832 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002247/0.1188, allocations: 95.88 kB / 0.502 GB, free: 8.738 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006151/0.1194, allocations: 0.5283 MB / 0.5025 GB, free: 8.152 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003392/0.1197, allocations: 150.4 kB / 0.5027 GB, free: 7.996 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001928/0.1199, allocations: 100.8 kB / 0.5028 GB, free: 7.895 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.126e-05/0.12, allocations: 4 kB / 0.5028 GB, free: 7.891 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003409/0.1203, allocations: 188.9 kB / 0.503 GB, free: 7.688 MB / 398.1 MB Notification: Performance of pre-optimization done (n=17): time 3.176e-06/0.1203, allocations: 112 / 0.503 GB, free: 7.688 MB / 398.1 MB Notification: Performance of matching and sorting (n=17): time 0.0008761/0.1212, allocations: 427.1 kB / 0.5034 GB, free: 7.258 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.927e-05/0.1213, allocations: 85.09 kB / 0.5035 GB, free: 7.156 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001892/0.1215, allocations: 202.6 kB / 0.5036 GB, free: 6.945 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.076e-05/0.1215, allocations: 25.7 kB / 0.5037 GB, free: 6.914 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.005e-05/0.1216, allocations: 128.4 kB / 0.5038 GB, free: 6.785 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.079e-05/0.1216, allocations: 39.69 kB / 0.5038 GB, free: 6.746 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.301e-05/0.1217, allocations: 41.7 kB / 0.5039 GB, free: 6.699 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001257/0.1219, allocations: 334.8 kB / 0.5042 GB, free: 6.363 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000176/0.122, allocations: 79.95 kB / 0.5043 GB, free: 6.285 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002051/0.1223, allocations: 116.2 kB / 0.5044 GB, free: 6.156 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009769/0.1232, allocations: 486.8 kB / 0.5048 GB, free: 5.641 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.1233, allocations: 0 / 0.5048 GB, free: 5.641 MB / 398.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.00057/0.1238, allocations: 323.6 kB / 0.5051 GB, free: 5.312 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.024e-05/0.1239, allocations: 45.72 kB / 0.5052 GB, free: 5.262 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.085e-06/0.1239, allocations: 7.938 kB / 0.5052 GB, free: 5.254 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.987e-05/0.1239, allocations: 0 / 0.5052 GB, free: 5.254 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000177/0.1241, allocations: 39.92 kB / 0.5052 GB, free: 5.215 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.059e-05/0.1241, allocations: 0 / 0.5052 GB, free: 5.215 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001823/0.1243, allocations: 23.86 kB / 0.5053 GB, free: 5.191 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.411e-05/0.1244, allocations: 4 kB / 0.5053 GB, free: 5.188 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.0002947/0.1247, allocations: 191.4 kB / 0.5054 GB, free: 4.984 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.246e-05/0.1247, allocations: 23.88 kB / 0.5055 GB, free: 4.961 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.4e-05/0.1248, allocations: 25.81 kB / 0.5055 GB, free: 4.934 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.468e-06/0.1248, allocations: 0 / 0.5055 GB, free: 4.934 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.155e-06/0.1248, allocations: 0 / 0.5055 GB, free: 4.934 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.097e-06/0.1249, allocations: 3.938 kB / 0.5055 GB, free: 4.93 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001394/0.1263, allocations: 0.6835 MB / 0.5062 GB, free: 4.184 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.514e-06/0.1263, allocations: 4 kB / 0.5062 GB, free: 4.18 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.396e-05/0.1264, allocations: 4 kB / 0.5062 GB, free: 4.176 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.163e-06/0.1264, allocations: 0 / 0.5062 GB, free: 4.176 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.429e-05/0.1264, allocations: 15.86 kB / 0.5062 GB, free: 4.16 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.525e-06/0.1264, allocations: 0 / 0.5062 GB, free: 4.16 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.1264, allocations: 0 / 0.5062 GB, free: 4.16 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001382/0.1278, allocations: 0.5712 MB / 0.5067 GB, free: 3.566 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.699e-05/0.1279, allocations: 96.92 kB / 0.5068 GB, free: 3.453 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.866e-05/0.128, allocations: 11.98 kB / 0.5068 GB, free: 3.441 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002335/0.1282, allocations: 15.98 kB / 0.5069 GB, free: 3.426 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.587e-05/0.1283, allocations: 7.984 kB / 0.5069 GB, free: 3.418 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.915e-05/0.1284, allocations: 8 kB / 0.5069 GB, free: 3.41 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001864/0.1286, allocations: 151 kB / 0.507 GB, free: 3.262 MB / 398.1 MB Notification: Performance of sort global known variables: time 2e-07/0.1286, allocations: 0 / 0.507 GB, free: 3.262 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005715/0.1292, allocations: 63.88 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.0002699/0.1294, allocations: 127.2 kB / 0.5072 GB, free: 3.066 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008016/0.1302, allocations: 295.3 kB / 0.5075 GB, free: 2.766 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.1303, allocations: 4.062 kB / 0.5075 GB, free: 2.762 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004053/0.1307, allocations: 187.3 kB / 0.5077 GB, free: 2.566 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006113/0.1313, allocations: 35.97 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.001088/0.1324, allocations: 376.4 kB / 0.5081 GB, free: 2.141 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004091/0.1328, allocations: 0.7201 MB / 0.5088 GB, free: 1.395 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.377e-05/0.1329, allocations: 8.641 kB / 0.5088 GB, free: 1.387 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.704e-05/0.133, allocations: 19.44 kB / 0.5088 GB, free: 1.367 MB / 398.1 MB Notification: Performance of SimCode: time 1.213e-06/0.133, allocations: 0 / 0.5088 GB, free: 1.367 MB / 398.1 MB Notification: Performance of Templates: time 0.008274/0.1413, allocations: 2.308 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)