Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2.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.TestElectrical2,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical2,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical2",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.001103/0.001103, allocations: 107.7 kB / 17.06 MB, free: 5.996 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.001053/0.001053, allocations: 198.8 kB / 18.01 MB, free: 5.066 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.22 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.3196/0.3196, allocations: 48.85 MB / 320.1 MB, free: 11 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.00157/0.00157, allocations: 67.89 kB / 450 MB, free: 9.047 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09876/0.1003, allocations: 59.15 MB / 0.4972 GB, free: 13.77 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical2): time 0.003663/0.1041, allocations: 2.191 MB / 0.4994 GB, free: 11.55 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001259/0.1054, allocations: 0.6242 MB / 0.5 GB, free: 10.92 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001881/0.1056, allocations: 4 kB / 0.5 GB, free: 10.92 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001682/0.1058, allocations: 31.66 kB / 0.5 GB, free: 10.89 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003335/0.1061, allocations: 75.41 kB / 0.5001 GB, free: 10.81 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002067/0.1063, allocations: 51.88 kB / 0.5001 GB, free: 10.76 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003342/0.1067, allocations: 250.9 kB / 0.5004 GB, free: 10.52 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000154/0.1068, allocations: 56.36 kB / 0.5004 GB, free: 10.46 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001595/0.107, allocations: 99.56 kB / 0.5005 GB, free: 10.36 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001515/0.1072, allocations: 103.5 kB / 0.5006 GB, free: 10.26 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.099e-05/0.1072, allocations: 16 kB / 0.5006 GB, free: 10.24 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.992e-05/0.1073, allocations: 16 kB / 0.5007 GB, free: 10.23 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 4.29e-05/0.1073, allocations: 43.78 kB / 0.5007 GB, free: 10.18 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 9.581e-05/0.1074, allocations: 107.4 kB / 0.5008 GB, free: 10.08 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002631/0.1077, allocations: 203 kB / 0.501 GB, free: 9.879 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.1077, allocations: 0 / 0.501 GB, free: 9.879 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.1077, allocations: 0 / 0.501 GB, free: 9.879 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.763e-06/0.1077, allocations: 0 / 0.501 GB, free: 9.879 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.000828/0.1086, allocations: 0.5371 MB / 0.5015 GB, free: 9.293 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.986e-05/0.1086, allocations: 19.89 kB / 0.5015 GB, free: 9.273 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.429e-05/0.1087, allocations: 46.69 kB / 0.5016 GB, free: 9.219 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.821e-05/0.1088, allocations: 28.78 kB / 0.5016 GB, free: 9.191 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003612/0.1091, allocations: 259 kB / 0.5019 GB, free: 8.902 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.115e-05/0.1092, allocations: 8.375 kB / 0.5019 GB, free: 8.895 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.787e-05/0.1092, allocations: 16.38 kB / 0.5019 GB, free: 8.879 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002903/0.1095, allocations: 155.5 kB / 0.502 GB, free: 8.715 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.589e-05/0.1095, allocations: 3.953 kB / 0.502 GB, free: 8.711 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.685e-05/0.1095, allocations: 7.938 kB / 0.502 GB, free: 8.703 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.333e-06/0.1096, allocations: 4 kB / 0.502 GB, free: 8.699 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002418/0.1098, allocations: 103.9 kB / 0.5021 GB, free: 8.598 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008549/0.1107, allocations: 0.5998 MB / 0.5027 GB, free: 7.938 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002402/0.1109, allocations: 122.5 kB / 0.5028 GB, free: 7.809 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001427/0.1111, allocations: 72.86 kB / 0.5029 GB, free: 7.734 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.382e-05/0.1111, allocations: 4 kB / 0.5029 GB, free: 7.73 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.121e-05/0.1111, allocations: 34.5 kB / 0.503 GB, free: 7.688 MB / 398.1 MB Notification: Performance of pre-optimization done (n=16): time 1.402e-06/0.1111, allocations: 4 kB / 0.503 GB, free: 7.684 MB / 398.1 MB Notification: Performance of matching and sorting (n=18): time 0.001092/0.1122, allocations: 0.5526 MB / 0.5035 GB, free: 7.078 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.39e-05/0.1123, allocations: 51.41 kB / 0.5035 GB, free: 7.016 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002485/0.1125, allocations: 229 kB / 0.5038 GB, free: 6.781 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.148e-05/0.1126, allocations: 33.7 kB / 0.5038 GB, free: 6.742 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.056e-05/0.1127, allocations: 140.5 kB / 0.5039 GB, free: 6.602 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.867e-05/0.1127, allocations: 67.42 kB / 0.504 GB, free: 6.535 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.383e-05/0.1128, allocations: 37.7 kB / 0.504 GB, free: 6.492 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001142/0.1129, allocations: 334.8 kB / 0.5044 GB, free: 6.156 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001204/0.113, allocations: 47.98 kB / 0.5044 GB, free: 6.109 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000135/0.1132, allocations: 82.53 kB / 0.5045 GB, free: 6.02 MB / 398.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: grid.f = grid.fnom (0.15915494309189535 * generator.omega_e_nom = grid.fnom) Notification: Performance of analyzeInitialSystem (initialization): time 0.001155/0.1143, allocations: 428.9 kB / 0.5049 GB, free: 5.574 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.1144, allocations: 0 / 0.5049 GB, free: 5.574 MB / 398.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003453/0.1147, allocations: 193.3 kB / 0.5051 GB, free: 5.379 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.719e-05/0.1147, allocations: 12.03 kB / 0.5051 GB, free: 5.367 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.529e-06/0.1147, allocations: 0 / 0.5051 GB, free: 5.367 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.187e-05/0.1148, allocations: 0 / 0.5051 GB, free: 5.367 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002501/0.115, allocations: 55.95 kB / 0.5051 GB, free: 5.312 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.372e-06/0.115, allocations: 7.938 kB / 0.5051 GB, free: 5.305 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001324/0.1152, allocations: 12 kB / 0.5052 GB, free: 5.293 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.394e-05/0.1152, allocations: 8 kB / 0.5052 GB, free: 5.285 MB / 398.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: grid.f = grid.fnom. 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 (23): * Single equations (assignments): 23 * 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.0001229/0.1153, allocations: 137.8 kB / 0.5053 GB, free: 5.141 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.734e-05/0.1154, allocations: 27.8 kB / 0.5053 GB, free: 5.113 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.639e-05/0.1154, allocations: 22.19 kB / 0.5053 GB, free: 5.09 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.939e-06/0.1155, allocations: 4 kB / 0.5053 GB, free: 5.086 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.1155, allocations: 7.922 kB / 0.5054 GB, free: 5.078 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.1155, allocations: 0 / 0.5054 GB, free: 5.078 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007226/0.1162, allocations: 0.5178 MB / 0.5059 GB, free: 4.504 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.893e-06/0.1162, allocations: 0 / 0.5059 GB, free: 4.504 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002787/0.1165, allocations: 55.91 kB / 0.5059 GB, free: 4.449 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.779e-06/0.1165, allocations: 4 kB / 0.5059 GB, free: 4.445 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.211e-05/0.1165, allocations: 0 / 0.5059 GB, free: 4.445 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.984e-06/0.1165, allocations: 0 / 0.5059 GB, free: 4.445 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.1165, allocations: 0 / 0.5059 GB, free: 4.445 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004921/0.117, allocations: 339.1 kB / 0.5062 GB, free: 4.098 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.519e-05/0.1171, allocations: 109 kB / 0.5063 GB, free: 3.973 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.058e-05/0.1172, allocations: 4 kB / 0.5063 GB, free: 3.969 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001518/0.1173, allocations: 11.98 kB / 0.5064 GB, free: 3.957 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.211e-05/0.1174, allocations: 7.984 kB / 0.5064 GB, free: 3.949 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.426e-05/0.1174, allocations: 11.94 kB / 0.5064 GB, free: 3.938 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001499/0.1176, allocations: 164.5 kB / 0.5065 GB, free: 3.777 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1176, allocations: 0 / 0.5065 GB, free: 3.777 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002884/0.1179, allocations: 40 kB / 0.5066 GB, free: 3.738 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (generator.phi,generator.omega_m,generator.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 (18): * Single equations (assignments): 18 * 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.0007246/0.1186, allocations: 0.8649 MB / 0.5074 GB, free: 2.848 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003205/0.1189, allocations: 131.9 kB / 0.5075 GB, free: 2.719 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.1189, allocations: 8.062 kB / 0.5075 GB, free: 2.711 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000141/0.1191, allocations: 67.91 kB / 0.5076 GB, free: 2.645 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003748/0.1195, allocations: 36.36 kB / 0.5076 GB, free: 2.609 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003049/0.1225, allocations: 2.461 MB / 0.5101 GB, free: 56 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003234/0.1229, allocations: 0.7437 MB / 0.5108 GB, free: 15.28 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 8.794e-05/0.123, allocations: 13.55 kB / 0.5108 GB, free: 15.27 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001134/0.1231, allocations: 63.34 kB / 0.5109 GB, free: 15.21 MB / 414.1 MB Notification: Performance of SimCode: time 2.91e-07/0.1231, allocations: 0 / 0.5109 GB, free: 15.21 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02254/0.1457, allocations: 4.321 MB / 0.5151 GB, free: 10.84 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.605/7.751, allocations: 11.91 kB / 0.5151 GB, free: 10.83 MB / 414.1 MB (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2.sim & python3 -m fmpy simulate --output-file ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.005 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical2.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2.pipe 2>&1)