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.001707/0.001707, allocations: 109 kB / 17.06 MB, free: 6.02 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.001809/0.001809, allocations: 189.4 kB / 18 MB, free: 5.102 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.422/1.422, 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.2868/0.2868, allocations: 48.85 MB / 320.1 MB, free: 11.01 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.002025/0.002025, allocations: 75.89 kB / 450 MB, free: 9.051 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1073/0.1093, allocations: 59.15 MB / 0.4973 GB, free: 13.77 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical6): time 0.004267/0.1136, allocations: 2.966 MB / 0.5001 GB, free: 10.78 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001454/0.1151, allocations: 0.8072 MB / 0.5009 GB, free: 9.965 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001345/0.1153, allocations: 8 kB / 0.5009 GB, free: 9.957 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001592/0.1154, allocations: 55.31 kB / 0.501 GB, free: 9.902 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003277/0.1158, allocations: 142.8 kB / 0.5011 GB, free: 9.762 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000232/0.116, allocations: 107.8 kB / 0.5012 GB, free: 9.656 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005234/0.1165, allocations: 0.4904 MB / 0.5017 GB, free: 9.164 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002293/0.1168, allocations: 136.1 kB / 0.5018 GB, free: 9.027 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002297/0.117, allocations: 179.3 kB / 0.502 GB, free: 8.852 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002835/0.1173, allocations: 214.9 kB / 0.5022 GB, free: 8.641 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.49e-05/0.1174, allocations: 32 kB / 0.5022 GB, free: 8.609 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.775e-05/0.1175, allocations: 36 kB / 0.5023 GB, free: 8.574 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.141e-05/0.1176, allocations: 87.61 kB / 0.5024 GB, free: 8.488 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001971/0.1178, allocations: 214.8 kB / 0.5026 GB, free: 8.277 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004684/0.1182, allocations: 414 kB / 0.503 GB, free: 7.871 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.1183, allocations: 0 / 0.503 GB, free: 7.871 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.1183, allocations: 0 / 0.503 GB, free: 7.871 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.722e-06/0.1183, allocations: 0 / 0.503 GB, free: 7.871 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.00129/0.1196, allocations: 0.7668 MB / 0.5037 GB, free: 7.055 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.872e-05/0.1196, allocations: 16.03 kB / 0.5037 GB, free: 7.039 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.866e-05/0.1197, allocations: 66.72 kB / 0.5038 GB, free: 6.965 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001302/0.1198, allocations: 56.55 kB / 0.5038 GB, free: 6.91 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004965/0.1203, allocations: 362.4 kB / 0.5042 GB, free: 6.516 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.478e-05/0.1204, allocations: 25.03 kB / 0.5042 GB, free: 6.492 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.132e-05/0.1205, allocations: 40.08 kB / 0.5043 GB, free: 6.453 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004975/0.121, allocations: 297.7 kB / 0.5045 GB, free: 6.145 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.982e-05/0.121, allocations: 7.984 kB / 0.5045 GB, free: 6.137 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.507e-05/0.121, allocations: 8 kB / 0.5046 GB, free: 6.129 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.02e-05/0.121, allocations: 8 kB / 0.5046 GB, free: 6.121 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003978/0.1214, allocations: 206.1 kB / 0.5048 GB, free: 5.922 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001675/0.1231, allocations: 1.101 MB / 0.5058 GB, free: 4.746 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004026/0.1235, allocations: 252.2 kB / 0.5061 GB, free: 4.492 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002077/0.1237, allocations: 116.8 kB / 0.5062 GB, free: 4.375 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.472e-05/0.1238, allocations: 4 kB / 0.5062 GB, free: 4.371 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.804e-05/0.1238, allocations: 35.03 kB / 0.5062 GB, free: 4.328 MB / 398.1 MB Notification: Performance of pre-optimization done (n=31): time 1.273e-06/0.1238, allocations: 0 / 0.5062 GB, free: 4.328 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.001776/0.1256, allocations: 0.9376 MB / 0.5071 GB, free: 3.32 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.392e-05/0.1257, allocations: 55.41 kB / 0.5072 GB, free: 3.254 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004111/0.1261, allocations: 361.6 kB / 0.5075 GB, free: 2.891 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.638e-05/0.1261, allocations: 29.7 kB / 0.5076 GB, free: 2.855 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001666/0.1263, allocations: 212.7 kB / 0.5078 GB, free: 2.645 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001053/0.1264, allocations: 130.9 kB / 0.5079 GB, free: 2.516 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001008/0.1265, allocations: 62.08 kB / 0.508 GB, free: 2.445 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001728/0.1267, allocations: 354.7 kB / 0.5083 GB, free: 2.09 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001769/0.1269, allocations: 88.64 kB / 0.5084 GB, free: 2.004 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002048/0.1271, allocations: 137.7 kB / 0.5085 GB, free: 1.855 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004044/0.1275, allocations: 235.8 kB / 0.5087 GB, free: 1.609 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.436e-06/0.1275, allocations: 0 / 0.5087 GB, free: 1.609 MB / 398.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0009279/0.1284, allocations: 425.4 kB / 0.5091 GB, free: 1.184 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.691e-05/0.1285, allocations: 11.91 kB / 0.5091 GB, free: 1.172 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.1285, allocations: 0 / 0.5091 GB, free: 1.172 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005791/0.1291, allocations: 124.8 kB / 0.5093 GB, free: 1.047 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004118/0.1295, allocations: 95.88 kB / 0.5094 GB, free: 0.9531 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003501/0.133, allocations: 3.336 MB / 0.5126 GB, free: 13.33 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002108/0.1332, allocations: 23.94 kB / 0.5126 GB, free: 13.3 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.39e-05/0.1333, allocations: 12 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.0001614/0.1334, allocations: 149.7 kB / 0.5128 GB, free: 13.14 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.794e-05/0.1335, allocations: 39.77 kB / 0.5128 GB, free: 13.1 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005138/0.134, allocations: 301.9 kB / 0.5131 GB, free: 12.8 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.891e-06/0.134, allocations: 4 kB / 0.5131 GB, free: 12.79 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.145e-06/0.1341, allocations: 3.938 kB / 0.5131 GB, free: 12.79 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.502e-06/0.1341, allocations: 7.984 kB / 0.5131 GB, free: 12.78 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001042/0.1351, allocations: 0.7488 MB / 0.5139 GB, free: 11.98 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/0.1351, allocations: 0 / 0.5139 GB, free: 11.98 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003768/0.1355, allocations: 79.89 kB / 0.5139 GB, free: 11.9 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.348e-06/0.1355, allocations: 4 kB / 0.5139 GB, free: 11.89 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.935e-05/0.1355, allocations: 4 kB / 0.514 GB, free: 11.89 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.807e-06/0.1356, allocations: 4 kB / 0.514 GB, free: 11.89 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.1356, allocations: 0 / 0.514 GB, free: 11.89 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006914/0.1363, allocations: 0.5037 MB / 0.5144 GB, free: 11.37 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001507/0.1364, allocations: 132.8 kB / 0.5146 GB, free: 11.22 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.53e-05/0.1365, allocations: 8 kB / 0.5146 GB, free: 11.21 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002002/0.1367, allocations: 8 kB / 0.5146 GB, free: 11.2 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.27e-05/0.1367, allocations: 19.97 kB / 0.5146 GB, free: 11.18 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.787e-05/0.1368, allocations: 12 kB / 0.5146 GB, free: 11.17 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002701/0.137, allocations: 251.2 kB / 0.5149 GB, free: 10.93 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.137, allocations: 8.281 kB / 0.5149 GB, free: 10.92 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003413/0.1374, allocations: 88 kB / 0.5149 GB, free: 10.83 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.001004/0.1384, allocations: 1.041 MB / 0.516 GB, free: 9.766 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0008926/0.1393, allocations: 442.2 kB / 0.5164 GB, free: 9.32 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.1393, allocations: 0 / 0.5164 GB, free: 9.32 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002026/0.1395, allocations: 119.8 kB / 0.5165 GB, free: 9.203 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004791/0.14, allocations: 78.08 kB / 0.5166 GB, free: 9.129 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005657/0.1457, allocations: 3.975 MB / 0.5205 GB, free: 5.035 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004536/0.1462, allocations: 0.8198 MB / 0.5213 GB, free: 4.191 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001407/0.1463, allocations: 38.95 kB / 0.5213 GB, free: 4.156 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002194/0.1465, allocations: 151.3 kB / 0.5214 GB, free: 4.008 MB / 414.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1465, allocations: 0 / 0.5214 GB, free: 4.008 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2328/0.3793, allocations: 8.755 MB / 0.53 GB, free: 30.73 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.12/12.5, allocations: 1.375 kB / 0.53 GB, free: 30.73 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)