Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5.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: "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical5,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical5",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical5,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical5",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001228/0.001228, allocations: 110.5 kB / 17.06 MB, free: 5.941 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.001145/0.001145, allocations: 200 kB / 18.01 MB, free: 5.031 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.323/1.323, allocations: 205.1 MB / 223.9 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2754/0.2754, 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.001522/0.001522, allocations: 71.91 kB / 450 MB, free: 9.059 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1011/0.1027, allocations: 59.15 MB / 0.4972 GB, free: 13.77 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical5): time 0.003604/0.1063, allocations: 2.65 MB / 0.4998 GB, free: 11.1 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001342/0.1077, allocations: 0.7564 MB / 0.5006 GB, free: 10.34 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002129/0.1079, allocations: 7.938 kB / 0.5006 GB, free: 10.33 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001606/0.1081, allocations: 43.47 kB / 0.5006 GB, free: 10.29 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003546/0.1085, allocations: 127 kB / 0.5007 GB, free: 10.16 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000265/0.1088, allocations: 83.83 kB / 0.5008 GB, free: 10.08 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004634/0.1092, allocations: 398.2 kB / 0.5012 GB, free: 9.688 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001901/0.1094, allocations: 93.55 kB / 0.5013 GB, free: 9.594 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002215/0.1097, allocations: 151.4 kB / 0.5014 GB, free: 9.445 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002287/0.1099, allocations: 163.1 kB / 0.5016 GB, free: 9.285 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.671e-05/0.11, allocations: 28 kB / 0.5016 GB, free: 9.258 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.157e-05/0.11, allocations: 24 kB / 0.5016 GB, free: 9.234 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.348e-05/0.1101, allocations: 71.69 kB / 0.5017 GB, free: 9.164 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001526/0.1103, allocations: 171 kB / 0.5019 GB, free: 8.996 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003759/0.1107, allocations: 326.4 kB / 0.5022 GB, free: 8.676 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.1107, allocations: 4 kB / 0.5022 GB, free: 8.672 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.1107, allocations: 0 / 0.5022 GB, free: 8.672 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.566e-06/0.1107, allocations: 0 / 0.5022 GB, free: 8.672 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: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.001065/0.1118, allocations: 0.6735 MB / 0.5028 GB, free: 7.949 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.712e-05/0.1118, allocations: 15.89 kB / 0.5029 GB, free: 7.934 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.617e-05/0.1119, allocations: 54.73 kB / 0.5029 GB, free: 7.871 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001152/0.112, allocations: 40.7 kB / 0.503 GB, free: 7.832 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004299/0.1124, allocations: 328.1 kB / 0.5033 GB, free: 7.477 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.783e-05/0.1125, allocations: 12.81 kB / 0.5033 GB, free: 7.465 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.985e-05/0.1125, allocations: 36.31 kB / 0.5033 GB, free: 7.43 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004371/0.113, allocations: 246.8 kB / 0.5035 GB, free: 7.172 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.511e-05/0.113, allocations: 0 / 0.5035 GB, free: 7.172 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.19e-05/0.113, allocations: 8 kB / 0.5036 GB, free: 7.164 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.793e-06/0.113, allocations: 4 kB / 0.5036 GB, free: 7.16 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003813/0.1134, allocations: 177.6 kB / 0.5037 GB, free: 6.984 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00115/0.1146, allocations: 0.8597 MB / 0.5046 GB, free: 6.062 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003201/0.1149, allocations: 190.5 kB / 0.5047 GB, free: 5.867 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001971/0.1151, allocations: 104.8 kB / 0.5048 GB, free: 5.762 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.927e-05/0.1151, allocations: 4 kB / 0.5049 GB, free: 5.758 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.527e-05/0.1152, allocations: 34.55 kB / 0.5049 GB, free: 5.715 MB / 398.1 MB Notification: Performance of pre-optimization done (n=25): time 1.403e-06/0.1152, allocations: 0 / 0.5049 GB, free: 5.715 MB / 398.1 MB Notification: Performance of matching and sorting (n=27): time 0.001398/0.1166, allocations: 0.7446 MB / 0.5056 GB, free: 4.922 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.196e-05/0.1166, allocations: 55.41 kB / 0.5057 GB, free: 4.855 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003068/0.1169, allocations: 300.5 kB / 0.506 GB, free: 4.547 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.197e-05/0.117, allocations: 33.64 kB / 0.506 GB, free: 4.508 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001219/0.1171, allocations: 184.8 kB / 0.5062 GB, free: 4.324 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.284e-05/0.1172, allocations: 107.1 kB / 0.5063 GB, free: 4.219 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.425e-05/0.1173, allocations: 49.7 kB / 0.5063 GB, free: 4.164 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001245/0.1174, allocations: 346.8 kB / 0.5066 GB, free: 3.816 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001752/0.1176, allocations: 71.95 kB / 0.5067 GB, free: 3.746 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001874/0.1178, allocations: 106.8 kB / 0.5068 GB, free: 3.633 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003539/0.1181, allocations: 196.1 kB / 0.507 GB, free: 3.434 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.1181, allocations: 0 / 0.507 GB, free: 3.434 MB / 398.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0006375/0.1188, allocations: 319.1 kB / 0.5073 GB, free: 3.113 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.543e-05/0.1188, allocations: 7.906 kB / 0.5073 GB, free: 3.105 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.572e-06/0.1188, allocations: 3.984 kB / 0.5073 GB, free: 3.102 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002655/0.1191, allocations: 56.81 kB / 0.5074 GB, free: 3.043 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003655/0.1195, allocations: 87.94 kB / 0.5075 GB, free: 2.957 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002534/0.122, allocations: 3.024 MB / 0.5104 GB, free: 15.65 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000223/0.1223, allocations: 15.97 kB / 0.5104 GB, free: 15.64 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.744e-05/0.1223, allocations: 8 kB / 0.5104 GB, free: 15.63 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001521/0.1225, allocations: 153.8 kB / 0.5106 GB, free: 15.47 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.364e-05/0.1225, allocations: 27.81 kB / 0.5106 GB, free: 15.44 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004706/0.123, allocations: 257.3 kB / 0.5108 GB, free: 15.18 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.892e-06/0.123, allocations: 4 kB / 0.5108 GB, free: 15.18 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.683e-06/0.123, allocations: 192 / 0.5108 GB, free: 15.18 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.722e-06/0.123, allocations: 7.922 kB / 0.5109 GB, free: 15.17 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009372/0.124, allocations: 0.6743 MB / 0.5115 GB, free: 14.44 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.265e-06/0.124, allocations: 0 / 0.5115 GB, free: 14.44 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003139/0.1243, allocations: 67.91 kB / 0.5116 GB, free: 14.38 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.886e-06/0.1243, allocations: 0 / 0.5116 GB, free: 14.38 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.969e-05/0.1244, allocations: 11.94 kB / 0.5116 GB, free: 14.36 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.666e-06/0.1244, allocations: 0 / 0.5116 GB, free: 14.36 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.1244, allocations: 3.938 kB / 0.5116 GB, free: 14.36 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006456/0.125, allocations: 452.7 kB / 0.512 GB, free: 13.9 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001201/0.1252, allocations: 124.9 kB / 0.5121 GB, free: 13.76 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.001e-05/0.1252, allocations: 7.938 kB / 0.5122 GB, free: 13.75 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001964/0.1254, allocations: 11.98 kB / 0.5122 GB, free: 13.74 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.85e-05/0.1255, allocations: 19.97 kB / 0.5122 GB, free: 13.72 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.249e-05/0.1255, allocations: 12 kB / 0.5122 GB, free: 13.71 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002016/0.1257, allocations: 211.1 kB / 0.5124 GB, free: 13.5 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1257, allocations: 0 / 0.5124 GB, free: 13.5 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003342/0.126, allocations: 76 kB / 0.5125 GB, free: 13.43 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (gen_a.phi,gen_a.omega_m,gen_a.omega_e_filt,gen_b.phi,gen_b.omega_m,gen_b.omega_e_filt) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.0009351/0.127, allocations: 0.9776 MB / 0.5134 GB, free: 12.42 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0008767/0.1279, allocations: 374.6 kB / 0.5138 GB, free: 12.04 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.1279, allocations: 0 / 0.5138 GB, free: 12.04 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002036/0.1281, allocations: 103.9 kB / 0.5139 GB, free: 11.94 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000448/0.1285, allocations: 53.06 kB / 0.5139 GB, free: 11.89 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004394/0.133, allocations: 3.378 MB / 0.5172 GB, free: 8.418 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003201/0.1333, allocations: 0.7953 MB / 0.518 GB, free: 7.594 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000134/0.1334, allocations: 30.97 kB / 0.518 GB, free: 7.559 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001607/0.1336, allocations: 115.4 kB / 0.5181 GB, free: 7.445 MB / 414.1 MB Notification: Performance of SimCode: time 7.61e-07/0.1336, allocations: 0 / 0.5181 GB, free: 7.445 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0273/0.1609, allocations: 6.977 MB / 0.525 GB, free: 420 kB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.742/9.903, allocations: 4.062 kB / 0.525 GB, free: 416 kB / 414.1 MB (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5.sim & python3 -m fmpy simulate --output-file ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5_res.csv --start-time 0 --stop-time 15 --timeout 50 --relative-tolerance 1e-07 --interface-type ModelExchange --solver CVode --output-interval 0.006 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical5.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5.pipe 2>&1)