Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.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.TestElectrical3,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical3,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical3",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.00146/0.00146, allocations: 107.8 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.001422/0.001422, allocations: 191 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.307/1.307, 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.2799/0.2799, allocations: 48.84 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.001564/0.001564, allocations: 67.91 kB / 450 MB, free: 9.078 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1012/0.1027, allocations: 59.16 MB / 0.4972 GB, free: 13.79 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical3): time 0.003498/0.1063, allocations: 2.296 MB / 0.4995 GB, free: 11.47 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001348/0.1077, allocations: 0.6397 MB / 0.5001 GB, free: 10.82 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000213/0.1079, allocations: 4 kB / 0.5001 GB, free: 10.82 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001929/0.1081, allocations: 39.59 kB / 0.5002 GB, free: 10.78 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003631/0.1085, allocations: 83.33 kB / 0.5002 GB, free: 10.7 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002332/0.1087, allocations: 59.86 kB / 0.5003 GB, free: 10.64 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004153/0.1092, allocations: 290.7 kB / 0.5006 GB, free: 10.35 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001854/0.1094, allocations: 73.31 kB / 0.5006 GB, free: 10.28 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002406/0.1096, allocations: 119.5 kB / 0.5008 GB, free: 10.16 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002159/0.1098, allocations: 115.4 kB / 0.5009 GB, free: 10.05 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.375e-05/0.1099, allocations: 20 kB / 0.5009 GB, free: 10.03 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.028e-05/0.11, allocations: 20 kB / 0.5009 GB, free: 10.01 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.362e-05/0.11, allocations: 51.78 kB / 0.5009 GB, free: 9.957 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001302/0.1102, allocations: 127.2 kB / 0.5011 GB, free: 9.832 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003431/0.1105, allocations: 234.9 kB / 0.5013 GB, free: 9.602 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.1105, allocations: 0 / 0.5013 GB, free: 9.602 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.1105, allocations: 0 / 0.5013 GB, free: 9.602 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.388e-06/0.1105, allocations: 0 / 0.5013 GB, free: 9.602 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: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.0009498/0.1115, allocations: 0.5721 MB / 0.5019 GB, free: 8.98 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.4e-05/0.1116, allocations: 15.89 kB / 0.5019 GB, free: 8.965 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.428e-05/0.1116, allocations: 50.73 kB / 0.5019 GB, free: 8.906 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001107/0.1117, allocations: 28.73 kB / 0.5019 GB, free: 8.879 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003914/0.1121, allocations: 270.9 kB / 0.5022 GB, free: 8.574 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.702e-05/0.1122, allocations: 46.19 kB / 0.5022 GB, free: 8.523 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.87e-05/0.1123, allocations: 24.12 kB / 0.5023 GB, free: 8.5 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003401/0.1126, allocations: 179.1 kB / 0.5024 GB, free: 8.312 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.21e-05/0.1126, allocations: 0 / 0.5024 GB, free: 8.312 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.94e-05/0.1126, allocations: 8 kB / 0.5024 GB, free: 8.305 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.842e-06/0.1127, allocations: 4 kB / 0.5025 GB, free: 8.301 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003138/0.113, allocations: 119.9 kB / 0.5026 GB, free: 8.184 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00111/0.1141, allocations: 0.6736 MB / 0.5032 GB, free: 7.449 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003887/0.1145, allocations: 150.3 kB / 0.5034 GB, free: 7.293 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001692/0.1147, allocations: 84.86 kB / 0.5034 GB, free: 7.207 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.451e-05/0.1147, allocations: 8 kB / 0.5035 GB, free: 7.199 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.091e-05/0.1147, allocations: 30.56 kB / 0.5035 GB, free: 7.16 MB / 398.1 MB Notification: Performance of pre-optimization done (n=18): time 1.402e-06/0.1147, allocations: 0 / 0.5035 GB, free: 7.16 MB / 398.1 MB Notification: Performance of matching and sorting (n=19): time 0.001196/0.1159, allocations: 0.5838 MB / 0.5041 GB, free: 6.523 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.618e-05/0.116, allocations: 55.41 kB / 0.5041 GB, free: 6.457 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002369/0.1162, allocations: 233 kB / 0.5043 GB, free: 6.223 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.352e-05/0.1163, allocations: 29.7 kB / 0.5044 GB, free: 6.188 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.44e-05/0.1164, allocations: 152.5 kB / 0.5045 GB, free: 6.035 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.895e-05/0.1164, allocations: 67.39 kB / 0.5046 GB, free: 5.969 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.997e-05/0.1165, allocations: 41.7 kB / 0.5046 GB, free: 5.922 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001213/0.1166, allocations: 338.8 kB / 0.5049 GB, free: 5.582 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001475/0.1168, allocations: 59.97 kB / 0.505 GB, free: 5.523 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001616/0.117, allocations: 82.27 kB / 0.5051 GB, free: 5.438 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002881/0.1173, allocations: 133.5 kB / 0.5052 GB, free: 5.301 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.032e-06/0.1173, allocations: 4 kB / 0.5052 GB, free: 5.297 MB / 398.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0004183/0.1177, allocations: 209.3 kB / 0.5054 GB, free: 5.086 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.622e-05/0.1177, allocations: 8 kB / 0.5054 GB, free: 5.078 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.002e-06/0.1177, allocations: 0 / 0.5054 GB, free: 5.078 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.351e-05/0.1178, allocations: 0 / 0.5054 GB, free: 5.078 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004369/0.1182, allocations: 71.95 kB / 0.5055 GB, free: 5.008 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.487e-06/0.1182, allocations: 11.92 kB / 0.5055 GB, free: 4.996 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001464/0.1184, allocations: 12.03 kB / 0.5055 GB, free: 4.984 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.368e-05/0.1184, allocations: 4 kB / 0.5055 GB, free: 4.98 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 1 (BreakerCommand.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 25 * 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 prepare postOptimizeDAE: time 0.0001202/0.1185, allocations: 142.2 kB / 0.5056 GB, free: 4.832 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.539e-05/0.1186, allocations: 23.86 kB / 0.5057 GB, free: 4.809 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.046e-05/0.1187, allocations: 26.17 kB / 0.5057 GB, free: 4.781 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.851e-06/0.1187, allocations: 7.984 kB / 0.5057 GB, free: 4.773 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.1187, allocations: 0 / 0.5057 GB, free: 4.773 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.1187, allocations: 3.984 kB / 0.5057 GB, free: 4.77 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007775/0.1195, allocations: 0.549 MB / 0.5062 GB, free: 4.164 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.385e-06/0.1195, allocations: 0 / 0.5062 GB, free: 4.164 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003866/0.1199, allocations: 63.91 kB / 0.5063 GB, free: 4.102 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.078e-06/0.1199, allocations: 7.938 kB / 0.5063 GB, free: 4.094 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.352e-05/0.1199, allocations: 0 / 0.5063 GB, free: 4.094 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.108e-06/0.1199, allocations: 3.938 kB / 0.5063 GB, free: 4.09 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.1199, allocations: 0 / 0.5063 GB, free: 4.09 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005507/0.1205, allocations: 363.5 kB / 0.5066 GB, free: 3.719 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001018/0.1206, allocations: 109 kB / 0.5068 GB, free: 3.594 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.578e-05/0.1206, allocations: 3.984 kB / 0.5068 GB, free: 3.59 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001621/0.1208, allocations: 11.94 kB / 0.5068 GB, free: 3.578 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.2e-05/0.1209, allocations: 11.98 kB / 0.5068 GB, free: 3.566 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.155e-05/0.1209, allocations: 12 kB / 0.5068 GB, free: 3.555 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001687/0.1211, allocations: 172.5 kB / 0.507 GB, free: 3.387 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1211, allocations: 0 / 0.507 GB, free: 3.387 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002883/0.1214, allocations: 44 kB / 0.507 GB, free: 3.344 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (generator.phi,generator.omega_m,generator.omega_e_filt,grid.port.theta) * Number of discrete variables: 1 (BreakerCommand.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 19 * 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.0007987/0.1222, allocations: 0.8763 MB / 0.5079 GB, free: 2.441 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003507/0.1225, allocations: 147.9 kB / 0.508 GB, free: 2.297 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.1225, allocations: 4 kB / 0.508 GB, free: 2.293 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001582/0.1227, allocations: 75.84 kB / 0.5081 GB, free: 2.219 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000409/0.1231, allocations: 36.36 kB / 0.5081 GB, free: 2.184 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003467/0.1266, allocations: 2.628 MB / 0.5107 GB, free: 15.47 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003234/0.1269, allocations: 0.7478 MB / 0.5114 GB, free: 14.7 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 9.982e-05/0.1271, allocations: 25.92 kB / 0.5114 GB, free: 14.67 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001169/0.1272, allocations: 67.42 kB / 0.5115 GB, free: 14.6 MB / 414.1 MB Notification: Performance of SimCode: time 4.81e-07/0.1272, allocations: 0 / 0.5115 GB, free: 14.6 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02319/0.1504, allocations: 4.523 MB / 0.5159 GB, free: 10.03 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.513/7.663, allocations: 7.891 kB / 0.5159 GB, free: 10.02 MB / 414.1 MB (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.sim & python3 -m fmpy simulate --output-file ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical3.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.pipe 2>&1)