Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.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.TestElectrical6,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical6",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical6,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical6",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.001089/0.001089, allocations: 113.8 kB / 17.07 MB, free: 5.969 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.001208/0.001209, allocations: 194.8 kB / 18.01 MB, free: 5.051 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.297/1.297, 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.2623/0.2623, 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.001455/0.001455, allocations: 79.84 kB / 450 MB, free: 9.059 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09814/0.09961, allocations: 59.15 MB / 0.4972 GB, free: 13.78 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical6): time 0.004115/0.1038, allocations: 2.969 MB / 0.5001 GB, free: 10.78 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001548/0.1053, allocations: 0.7995 MB / 0.5009 GB, free: 9.977 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002704/0.1056, allocations: 7.938 kB / 0.5009 GB, free: 9.969 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002044/0.1059, allocations: 59.31 kB / 0.501 GB, free: 9.91 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004401/0.1063, allocations: 154.8 kB / 0.5011 GB, free: 9.758 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002757/0.1066, allocations: 107.8 kB / 0.5012 GB, free: 9.652 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004839/0.1071, allocations: 494.3 kB / 0.5017 GB, free: 9.168 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002274/0.1073, allocations: 136.1 kB / 0.5018 GB, free: 9.031 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002208/0.1076, allocations: 195.1 kB / 0.502 GB, free: 8.84 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002511/0.1078, allocations: 207 kB / 0.5022 GB, free: 8.637 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.586e-05/0.1079, allocations: 32 kB / 0.5023 GB, free: 8.605 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.841e-05/0.108, allocations: 36 kB / 0.5023 GB, free: 8.57 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.998e-05/0.1081, allocations: 87.61 kB / 0.5024 GB, free: 8.484 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000197/0.1083, allocations: 222.7 kB / 0.5026 GB, free: 8.266 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004359/0.1087, allocations: 409.9 kB / 0.503 GB, free: 7.863 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.487e-06/0.1087, allocations: 0 / 0.503 GB, free: 7.863 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.1087, allocations: 0 / 0.503 GB, free: 7.863 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.173e-06/0.1087, allocations: 0 / 0.503 GB, free: 7.863 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: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.00121/0.11, allocations: 0.7707 MB / 0.5037 GB, free: 7.043 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.511e-05/0.11, allocations: 12.03 kB / 0.5037 GB, free: 7.031 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.909e-05/0.1101, allocations: 66.73 kB / 0.5038 GB, free: 6.957 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001123/0.1102, allocations: 56.59 kB / 0.5039 GB, free: 6.902 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004785/0.1107, allocations: 358.4 kB / 0.5042 GB, free: 6.512 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.712e-05/0.1107, allocations: 21.03 kB / 0.5042 GB, free: 6.492 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.004e-05/0.1108, allocations: 44.08 kB / 0.5043 GB, free: 6.449 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004722/0.1113, allocations: 305.7 kB / 0.5046 GB, free: 6.133 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.514e-05/0.1113, allocations: 0 / 0.5046 GB, free: 6.133 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.518e-05/0.1113, allocations: 12 kB / 0.5046 GB, free: 6.121 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.624e-06/0.1113, allocations: 4 kB / 0.5046 GB, free: 6.117 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000377/0.1117, allocations: 202.1 kB / 0.5048 GB, free: 5.922 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001613/0.1133, allocations: 1.109 MB / 0.5058 GB, free: 4.738 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003806/0.1137, allocations: 244.2 kB / 0.5061 GB, free: 4.492 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001921/0.1139, allocations: 120.8 kB / 0.5062 GB, free: 4.371 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.3e-05/0.114, allocations: 0 / 0.5062 GB, free: 4.371 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.257e-05/0.114, allocations: 39.09 kB / 0.5062 GB, free: 4.324 MB / 398.1 MB Notification: Performance of pre-optimization done (n=31): time 2.494e-06/0.114, allocations: 0 / 0.5062 GB, free: 4.324 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.001649/0.1157, allocations: 0.9336 MB / 0.5071 GB, free: 3.32 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.794e-05/0.1157, allocations: 55.41 kB / 0.5072 GB, free: 3.254 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003492/0.1161, allocations: 361.6 kB / 0.5075 GB, free: 2.891 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.177e-05/0.1161, allocations: 33.7 kB / 0.5076 GB, free: 2.852 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001437/0.1163, allocations: 216.7 kB / 0.5078 GB, free: 2.637 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.05e-05/0.1164, allocations: 122.9 kB / 0.5079 GB, free: 2.516 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.381e-05/0.1165, allocations: 70.06 kB / 0.508 GB, free: 2.438 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001429/0.1166, allocations: 354.7 kB / 0.5083 GB, free: 2.082 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001696/0.1168, allocations: 84.72 kB / 0.5084 GB, free: 2 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001977/0.117, allocations: 141.7 kB / 0.5085 GB, free: 1.848 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00037/0.1174, allocations: 235.8 kB / 0.5087 GB, free: 1.602 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.1174, allocations: 0 / 0.5087 GB, free: 1.602 MB / 398.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0008823/0.1183, allocations: 425.4 kB / 0.5091 GB, free: 1.176 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.615e-05/0.1183, allocations: 7.906 kB / 0.5092 GB, free: 1.168 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.913e-06/0.1183, allocations: 4 kB / 0.5092 GB, free: 1.164 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005544/0.1189, allocations: 124.7 kB / 0.5093 GB, free: 1.039 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004268/0.1193, allocations: 95.88 kB / 0.5094 GB, free: 0.9453 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003267/0.1226, allocations: 3.336 MB / 0.5126 GB, free: 13.32 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002492/0.1228, allocations: 15.95 kB / 0.5126 GB, free: 13.3 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.709e-05/0.1229, allocations: 20 kB / 0.5127 GB, free: 13.29 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (36): * Single equations (assignments): 34 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0001688/0.1231, allocations: 149.7 kB / 0.5128 GB, free: 13.13 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.656e-05/0.1231, allocations: 39.77 kB / 0.5128 GB, free: 13.09 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004904/0.1236, allocations: 301.9 kB / 0.5131 GB, free: 12.79 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.112e-06/0.1236, allocations: 7.984 kB / 0.5131 GB, free: 12.78 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.905e-06/0.1237, allocations: 3.938 kB / 0.5131 GB, free: 12.78 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.967e-06/0.1237, allocations: 4 kB / 0.5131 GB, free: 12.77 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001037/0.1247, allocations: 0.7488 MB / 0.5139 GB, free: 11.97 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.1247, allocations: 0 / 0.5139 GB, free: 11.97 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003832/0.1251, allocations: 79.89 kB / 0.514 GB, free: 11.89 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/0.1251, allocations: 0 / 0.514 GB, free: 11.89 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.402e-05/0.1252, allocations: 8 kB / 0.514 GB, free: 11.88 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.168e-06/0.1252, allocations: 0 / 0.514 GB, free: 11.88 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.1252, allocations: 3.938 kB / 0.514 GB, free: 11.88 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006459/0.1258, allocations: 0.5002 MB / 0.5145 GB, free: 11.36 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000149/0.126, allocations: 140.8 kB / 0.5146 GB, free: 11.21 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.157e-05/0.126, allocations: 4 kB / 0.5146 GB, free: 11.2 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002145/0.1263, allocations: 11.94 kB / 0.5146 GB, free: 11.19 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.327e-05/0.1263, allocations: 15.97 kB / 0.5146 GB, free: 11.18 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.737e-05/0.1263, allocations: 15.98 kB / 0.5146 GB, free: 11.16 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002543/0.1266, allocations: 251.2 kB / 0.5149 GB, free: 10.91 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.1266, allocations: 4 kB / 0.5149 GB, free: 10.91 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003893/0.127, allocations: 92 kB / 0.515 GB, free: 10.82 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (gen_a.phi,gen_a.omega_m,gen_a.omega_e_filt,gen_b.phi,gen_b.omega_m,gen_b.omega_e_filt,torqueGen_a.y,torqueGen_b.y) * 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 (34): * Single equations (assignments): 34 * 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.0009123/0.1279, allocations: 1.033 MB / 0.516 GB, free: 9.762 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0009632/0.1289, allocations: 442.2 kB / 0.5164 GB, free: 9.316 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.1289, allocations: 0 / 0.5164 GB, free: 9.316 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000203/0.1291, allocations: 123.8 kB / 0.5165 GB, free: 9.195 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005253/0.1297, allocations: 73.77 kB / 0.5166 GB, free: 9.125 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005632/0.1353, allocations: 3.975 MB / 0.5205 GB, free: 5.031 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000417/0.1357, allocations: 0.8198 MB / 0.5213 GB, free: 4.188 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000186/0.1359, allocations: 43.25 kB / 0.5213 GB, free: 4.148 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002209/0.1362, allocations: 143.3 kB / 0.5214 GB, free: 4.008 MB / 414.1 MB Notification: Performance of SimCode: time 9.32e-07/0.1362, allocations: 0 / 0.5214 GB, free: 4.008 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2118/0.348, allocations: 8.754 MB / 0.53 GB, free: 30.7 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.82/12.17, allocations: 9.109 kB / 0.53 GB, free: 30.69 MB / 414.1 MB (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.sim & python3 -m fmpy simulate --output-file ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6_res.csv --start-time 0 --stop-time 40 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.016 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical6.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.pipe 2>&1)