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.001479/0.001479, allocations: 107.8 kB / 17.06 MB, free: 5.82 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.001673/0.001673, allocations: 195.9 kB / 18 MB, free: 4.965 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.462/1.462, 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.2611/0.2611, 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.001416/0.001416, allocations: 75.84 kB / 450 MB, free: 9.074 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1002/0.1016, allocations: 59.15 MB / 0.4972 GB, free: 13.79 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical5): time 0.003434/0.1051, allocations: 2.65 MB / 0.4998 GB, free: 11.12 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001194/0.1063, allocations: 0.7487 MB / 0.5006 GB, free: 10.36 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001404/0.1064, allocations: 7.938 kB / 0.5006 GB, free: 10.36 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000175/0.1066, allocations: 43.45 kB / 0.5006 GB, free: 10.31 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003354/0.107, allocations: 135 kB / 0.5007 GB, free: 10.18 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001994/0.1072, allocations: 75.91 kB / 0.5008 GB, free: 10.11 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003854/0.1076, allocations: 398.2 kB / 0.5012 GB, free: 9.715 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001799/0.1078, allocations: 89.55 kB / 0.5013 GB, free: 9.625 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001852/0.108, allocations: 155.3 kB / 0.5014 GB, free: 9.473 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002099/0.1082, allocations: 171.1 kB / 0.5016 GB, free: 9.305 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.548e-05/0.1082, allocations: 24 kB / 0.5016 GB, free: 9.281 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.116e-05/0.1083, allocations: 28 kB / 0.5016 GB, free: 9.254 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.089e-05/0.1084, allocations: 59.77 kB / 0.5017 GB, free: 9.195 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000152/0.1085, allocations: 178.9 kB / 0.5019 GB, free: 9.02 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003525/0.1089, allocations: 318.5 kB / 0.5022 GB, free: 8.707 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.1089, allocations: 3.938 kB / 0.5022 GB, free: 8.703 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1089, allocations: 0 / 0.5022 GB, free: 8.703 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.362e-06/0.1089, allocations: 0 / 0.5022 GB, free: 8.703 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.00102/0.11, allocations: 0.6773 MB / 0.5028 GB, free: 7.977 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.597e-05/0.11, allocations: 11.89 kB / 0.5028 GB, free: 7.965 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.57e-05/0.1101, allocations: 58.72 kB / 0.5029 GB, free: 7.898 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001035/0.1102, allocations: 44.7 kB / 0.5029 GB, free: 7.855 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004201/0.1106, allocations: 324.2 kB / 0.5033 GB, free: 7.504 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.883e-05/0.1106, allocations: 24.75 kB / 0.5033 GB, free: 7.48 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.412e-05/0.1107, allocations: 32.33 kB / 0.5033 GB, free: 7.449 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004018/0.1111, allocations: 242.8 kB / 0.5035 GB, free: 7.195 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.505e-05/0.1111, allocations: 0 / 0.5035 GB, free: 7.195 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.26e-05/0.1111, allocations: 12 kB / 0.5036 GB, free: 7.184 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.612e-06/0.1111, allocations: 4 kB / 0.5036 GB, free: 7.18 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003752/0.1115, allocations: 177.6 kB / 0.5037 GB, free: 7.004 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001107/0.1126, allocations: 0.8596 MB / 0.5046 GB, free: 6.082 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003192/0.113, allocations: 194.5 kB / 0.5047 GB, free: 5.883 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001931/0.1132, allocations: 104.8 kB / 0.5048 GB, free: 5.777 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.331e-05/0.1132, allocations: 4 kB / 0.5049 GB, free: 5.773 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.263e-05/0.1133, allocations: 42.5 kB / 0.5049 GB, free: 5.723 MB / 398.1 MB Notification: Performance of pre-optimization done (n=25): time 1.412e-06/0.1133, allocations: 0 / 0.5049 GB, free: 5.723 MB / 398.1 MB Notification: Performance of matching and sorting (n=27): time 0.00135/0.1146, allocations: 0.7368 MB / 0.5056 GB, free: 4.938 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.978e-05/0.1147, allocations: 55.41 kB / 0.5057 GB, free: 4.871 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003056/0.115, allocations: 304.5 kB / 0.506 GB, free: 4.559 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.09e-05/0.115, allocations: 33.7 kB / 0.506 GB, free: 4.52 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001223/0.1151, allocations: 184.8 kB / 0.5062 GB, free: 4.336 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.637e-05/0.1152, allocations: 95.12 kB / 0.5063 GB, free: 4.242 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.826e-05/0.1153, allocations: 57.69 kB / 0.5063 GB, free: 4.18 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001407/0.1154, allocations: 338.8 kB / 0.5066 GB, free: 3.84 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001689/0.1156, allocations: 71.95 kB / 0.5067 GB, free: 3.77 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001899/0.1158, allocations: 114.8 kB / 0.5068 GB, free: 3.648 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003426/0.1162, allocations: 188.2 kB / 0.507 GB, free: 3.457 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.052e-06/0.1162, allocations: 0 / 0.507 GB, free: 3.457 MB / 398.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.000626/0.1168, allocations: 327 kB / 0.5073 GB, free: 3.129 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.5e-05/0.1168, allocations: 4 kB / 0.5073 GB, free: 3.125 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.472e-06/0.1169, allocations: 4 kB / 0.5073 GB, free: 3.121 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002709/0.1171, allocations: 56.88 kB / 0.5074 GB, free: 3.062 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003855/0.1175, allocations: 75.89 kB / 0.5074 GB, free: 2.988 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002369/0.1199, allocations: 3.04 MB / 0.5104 GB, free: 15.67 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002086/0.1201, allocations: 19.95 kB / 0.5104 GB, free: 15.65 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.771e-05/0.1202, allocations: 8 kB / 0.5104 GB, free: 15.64 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.0001482/0.1203, allocations: 145.8 kB / 0.5106 GB, free: 15.49 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.648e-05/0.1204, allocations: 31.81 kB / 0.5106 GB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00046/0.1208, allocations: 253.3 kB / 0.5108 GB, free: 15.2 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.178e-06/0.1209, allocations: 4 kB / 0.5108 GB, free: 15.2 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.184e-05/0.1209, allocations: 3.984 kB / 0.5109 GB, free: 15.2 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.069e-06/0.1209, allocations: 3.938 kB / 0.5109 GB, free: 15.19 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009223/0.1218, allocations: 0.6627 MB / 0.5115 GB, free: 14.47 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.1218, allocations: 3.938 kB / 0.5115 GB, free: 14.47 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003176/0.1221, allocations: 71.89 kB / 0.5116 GB, free: 14.4 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.405e-06/0.1222, allocations: 3.938 kB / 0.5116 GB, free: 14.39 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.808e-05/0.1222, allocations: 11.94 kB / 0.5116 GB, free: 14.38 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.824e-06/0.1222, allocations: 192 / 0.5116 GB, free: 14.38 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.1222, allocations: 4 kB / 0.5116 GB, free: 14.38 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006439/0.1228, allocations: 452.6 kB / 0.512 GB, free: 13.92 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001241/0.123, allocations: 124.9 kB / 0.5121 GB, free: 13.78 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.4e-05/0.123, allocations: 7.938 kB / 0.5122 GB, free: 13.77 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001888/0.1232, allocations: 12 kB / 0.5122 GB, free: 13.76 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.563e-05/0.1233, allocations: 19.97 kB / 0.5122 GB, free: 13.74 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.436e-05/0.1233, allocations: 8 kB / 0.5122 GB, free: 13.73 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002173/0.1235, allocations: 215.1 kB / 0.5124 GB, free: 13.52 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.1235, allocations: 0 / 0.5124 GB, free: 13.52 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003421/0.1239, allocations: 72 kB / 0.5125 GB, free: 13.45 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.0009474/0.1248, allocations: 0.9776 MB / 0.5134 GB, free: 12.44 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0008967/0.1257, allocations: 374.6 kB / 0.5138 GB, free: 12.06 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.1258, allocations: 0 / 0.5138 GB, free: 12.06 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001959/0.126, allocations: 107.8 kB / 0.5139 GB, free: 11.96 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004394/0.1264, allocations: 53.06 kB / 0.5139 GB, free: 11.91 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004511/0.1309, allocations: 3.378 MB / 0.5172 GB, free: 8.438 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003711/0.1313, allocations: 0.7915 MB / 0.518 GB, free: 7.617 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001396/0.1315, allocations: 34.91 kB / 0.518 GB, free: 7.578 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000177/0.1317, allocations: 115.4 kB / 0.5181 GB, free: 7.465 MB / 414.1 MB Notification: Performance of SimCode: time 1.142e-06/0.1317, allocations: 0 / 0.5181 GB, free: 7.465 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02552/0.1572, allocations: 6.981 MB / 0.525 GB, free: 436 kB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.949/10.11, allocations: 0 / 0.525 GB, free: 436 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)