Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.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.TestElectrical7,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical7",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical7,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical7",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.001601/0.001601, allocations: 107.9 kB / 17.06 MB, free: 6.004 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.001766/0.001767, allocations: 191 kB / 18 MB, free: 5.09 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.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.2671/0.2671, allocations: 48.85 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.001448/0.001448, allocations: 67.91 kB / 450 MB, free: 9.074 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09878/0.1002, allocations: 59.16 MB / 0.4973 GB, free: 13.79 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical7): time 0.004233/0.1045, allocations: 3.134 MB / 0.5003 GB, free: 10.62 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001589/0.1061, allocations: 0.8304 MB / 0.5011 GB, free: 9.785 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002886/0.1064, allocations: 7.938 kB / 0.5011 GB, free: 9.777 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002027/0.1066, allocations: 59.33 kB / 0.5012 GB, free: 9.719 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004409/0.1071, allocations: 162.7 kB / 0.5013 GB, free: 9.559 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002955/0.1074, allocations: 123.8 kB / 0.5015 GB, free: 9.438 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005717/0.108, allocations: 0.514 MB / 0.502 GB, free: 8.922 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002724/0.1083, allocations: 145.4 kB / 0.5021 GB, free: 8.773 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003073/0.1086, allocations: 211.1 kB / 0.5023 GB, free: 8.566 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003051/0.1089, allocations: 218.8 kB / 0.5025 GB, free: 8.352 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.34e-05/0.109, allocations: 36 kB / 0.5025 GB, free: 8.316 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.6e-05/0.1091, allocations: 44 kB / 0.5026 GB, free: 8.273 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.622e-05/0.1092, allocations: 95.59 kB / 0.5027 GB, free: 8.18 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002113/0.1094, allocations: 230.6 kB / 0.5029 GB, free: 7.953 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004733/0.1099, allocations: 445.8 kB / 0.5033 GB, free: 7.516 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.1099, allocations: 0 / 0.5033 GB, free: 7.516 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.1099, allocations: 0 / 0.5033 GB, free: 7.516 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.082e-05/0.1099, allocations: 4 kB / 0.5033 GB, free: 7.512 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: 77 * Number of variables: 77 Notification: Performance of Generate backend data structure: time 0.001509/0.1114, allocations: 0.8058 MB / 0.5041 GB, free: 6.656 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.373e-05/0.1115, allocations: 11.89 kB / 0.5041 GB, free: 6.645 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.651e-05/0.1116, allocations: 66.66 kB / 0.5042 GB, free: 6.57 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001593/0.1117, allocations: 56.61 kB / 0.5042 GB, free: 6.516 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005925/0.1123, allocations: 382.3 kB / 0.5046 GB, free: 6.102 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.873e-05/0.1124, allocations: 33.02 kB / 0.5046 GB, free: 6.07 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.127e-05/0.1125, allocations: 40.33 kB / 0.5047 GB, free: 6.031 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005589/0.113, allocations: 314 kB / 0.505 GB, free: 5.707 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.103e-05/0.1131, allocations: 0 / 0.505 GB, free: 5.707 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.049e-05/0.1131, allocations: 12 kB / 0.505 GB, free: 5.695 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.056e-05/0.1131, allocations: 8 kB / 0.505 GB, free: 5.688 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004241/0.1135, allocations: 218.4 kB / 0.5052 GB, free: 5.477 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001787/0.1153, allocations: 1.168 MB / 0.5063 GB, free: 4.234 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004716/0.1158, allocations: 261.1 kB / 0.5066 GB, free: 3.973 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002077/0.116, allocations: 129.4 kB / 0.5067 GB, free: 3.844 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.659e-05/0.1161, allocations: 4.266 kB / 0.5067 GB, free: 3.84 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.073e-05/0.1161, allocations: 38.84 kB / 0.5068 GB, free: 3.793 MB / 398.1 MB Notification: Performance of pre-optimization done (n=33): time 1.443e-06/0.1161, allocations: 0 / 0.5068 GB, free: 3.793 MB / 398.1 MB Notification: Performance of matching and sorting (n=35): time 0.002145/0.1183, allocations: 1.092 MB / 0.5078 GB, free: 2.613 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.234e-05/0.1183, allocations: 55.41 kB / 0.5079 GB, free: 2.547 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003914/0.1187, allocations: 377.6 kB / 0.5082 GB, free: 2.172 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.725e-05/0.1188, allocations: 33.7 kB / 0.5083 GB, free: 2.133 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001614/0.1189, allocations: 224.9 kB / 0.5085 GB, free: 1.91 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.403e-05/0.119, allocations: 134.8 kB / 0.5086 GB, free: 1.777 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001181/0.1191, allocations: 74.12 kB / 0.5087 GB, free: 1.699 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001434/0.1193, allocations: 346.8 kB / 0.509 GB, free: 1.352 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000197/0.1195, allocations: 96.83 kB / 0.5091 GB, free: 1.258 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002078/0.1197, allocations: 144.6 kB / 0.5092 GB, free: 1.102 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004088/0.1201, allocations: 256 kB / 0.5095 GB, free: 0.8359 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.313e-06/0.1201, allocations: 0 / 0.5095 GB, free: 0.8359 MB / 398.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0005588/0.1207, allocations: 349.1 kB / 0.5098 GB, free: 500 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.057e-05/0.1207, allocations: 12.03 kB / 0.5098 GB, free: 488 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.338e-05/0.1208, allocations: 11.97 kB / 0.5098 GB, free: 476 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.472e-05/0.1208, allocations: 0 / 0.5098 GB, free: 476 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007109/0.1215, allocations: 143.8 kB / 0.51 GB, free: 332 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001265/0.1228, allocations: 1.441 MB / 0.5114 GB, free: 14.74 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002684/0.1231, allocations: 16.2 kB / 0.5114 GB, free: 14.73 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.741e-05/0.1231, allocations: 20 kB / 0.5114 GB, free: 14.71 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 (48): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * 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: Performance of prepare postOptimizeDAE: time 0.0001717/0.1233, allocations: 153.7 kB / 0.5116 GB, free: 14.55 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.288e-05/0.1234, allocations: 47.66 kB / 0.5116 GB, free: 14.5 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005277/0.1239, allocations: 317.9 kB / 0.5119 GB, free: 14.18 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.4e-06/0.1239, allocations: 4 kB / 0.5119 GB, free: 14.18 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.496e-06/0.1239, allocations: 0 / 0.5119 GB, free: 14.18 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.409e-06/0.1239, allocations: 3.938 kB / 0.5119 GB, free: 14.18 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001095/0.125, allocations: 0.7876 MB / 0.5127 GB, free: 13.33 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.394e-06/0.125, allocations: 0 / 0.5127 GB, free: 13.33 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004227/0.1255, allocations: 79.91 kB / 0.5128 GB, free: 13.25 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.729e-06/0.1255, allocations: 0 / 0.5128 GB, free: 13.25 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.926e-05/0.1255, allocations: 11.98 kB / 0.5128 GB, free: 13.24 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.294e-06/0.1255, allocations: 0 / 0.5128 GB, free: 13.24 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.193e-06/0.1255, allocations: 0 / 0.5128 GB, free: 13.24 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007082/0.1262, allocations: 0.5246 MB / 0.5133 GB, free: 12.7 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001526/0.1264, allocations: 136.8 kB / 0.5134 GB, free: 12.55 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.611e-05/0.1265, allocations: 12 kB / 0.5134 GB, free: 12.54 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002363/0.1267, allocations: 15.94 kB / 0.5135 GB, free: 12.52 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.102e-05/0.1268, allocations: 15.97 kB / 0.5135 GB, free: 12.5 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.715e-05/0.1268, allocations: 12 kB / 0.5135 GB, free: 12.49 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002679/0.1271, allocations: 263.2 kB / 0.5137 GB, free: 12.23 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1271, allocations: 0 / 0.5137 GB, free: 12.23 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003618/0.1274, allocations: 95.94 kB / 0.5138 GB, free: 12.14 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 9 (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,secondaryController.powerOffset) * 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 (36): * Single equations (assignments): 36 * 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.00101/0.1285, allocations: 1.053 MB / 0.5148 GB, free: 11.06 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0006925/0.1292, allocations: 292.2 kB / 0.5151 GB, free: 10.77 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.1292, allocations: 0 / 0.5151 GB, free: 10.77 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002218/0.1294, allocations: 131.8 kB / 0.5153 GB, free: 10.64 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005291/0.1299, allocations: 85.77 kB / 0.5153 GB, free: 10.56 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005057/0.135, allocations: 3.987 MB / 0.5192 GB, free: 6.469 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003713/0.1354, allocations: 0.8235 MB / 0.52 GB, free: 5.621 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001873/0.1356, allocations: 47.25 kB / 0.5201 GB, free: 5.57 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002223/0.1358, allocations: 151.4 kB / 0.5202 GB, free: 5.422 MB / 414.1 MB Notification: Performance of SimCode: time 6.42e-07/0.1358, allocations: 0 / 0.5202 GB, free: 5.422 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2077/0.3435, allocations: 8.6 MB / 0.5286 GB, free: 31.27 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.328/8.671, allocations: 12.83 kB / 0.5286 GB, free: 31.26 MB / 414.1 MB (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.sim & python3 -m fmpy simulate --output-file ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7_res.csv --start-time 0 --stop-time 300 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.12 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical7.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.pipe 2>&1)