Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001372/0.001372, allocations: 124.5 kB / 17.79 MB, free: 5.227 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00162/0.00162, allocations: 207.2 kB / 20.75 MB, free: 2.273 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.397/1.397, allocations: 207.6 MB / 231.1 MB, free: 4.086 MB / 174.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower master/package.mo): time 0.3985/0.3985, allocations: 49.51 MB / 332.5 MB, free: 0.7422 MB / 254.1 MB " [Timeout remaining time 179] Using package ThermoPower with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical1,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical1,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00204/0.00204, allocations: 67.5 kB / 470.8 MB, free: 41.02 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09592/0.09796, allocations: 62.34 MB / 0.5206 GB, free: 2.352 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical1): time 0.002576/0.1005, allocations: 2.084 MB / 0.5227 GB, free: 256 kB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.000955/0.1015, allocations: 0.6125 MB / 0.5233 GB, free: 15.63 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.417e-05/0.1016, allocations: 0 / 0.5233 GB, free: 15.63 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001279/0.1017, allocations: 23.72 kB / 0.5233 GB, free: 15.61 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002113/0.1019, allocations: 67.42 kB / 0.5233 GB, free: 15.54 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001498/0.1021, allocations: 51.94 kB / 0.5234 GB, free: 15.49 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002864/0.1024, allocations: 211 kB / 0.5236 GB, free: 15.28 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001283/0.1025, allocations: 32.23 kB / 0.5236 GB, free: 15.25 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001484/0.1026, allocations: 87.62 kB / 0.5237 GB, free: 15.16 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001505/0.1028, allocations: 87.5 kB / 0.5238 GB, free: 15.07 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.713e-05/0.1028, allocations: 12 kB / 0.5238 GB, free: 15.06 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.77e-05/0.1029, allocations: 16 kB / 0.5238 GB, free: 15.05 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 4.119e-05/0.1029, allocations: 35.83 kB / 0.5239 GB, free: 15.01 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 9.902e-05/0.103, allocations: 83.55 kB / 0.5239 GB, free: 14.93 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000253/0.1033, allocations: 171.1 kB / 0.5241 GB, free: 14.76 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.1033, allocations: 4 kB / 0.5241 GB, free: 14.76 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.674e-06/0.1033, allocations: 3.938 kB / 0.5241 GB, free: 14.75 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.753e-06/0.1033, allocations: 0 / 0.5241 GB, free: 14.75 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: 26 * Number of variables: 26 Notification: Performance of Generate backend data structure: time 0.0008157/0.1041, allocations: 498.4 kB / 0.5246 GB, free: 14.21 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.887e-05/0.1041, allocations: 11.89 kB / 0.5246 GB, free: 14.2 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.796e-05/0.1042, allocations: 42.73 kB / 0.5246 GB, free: 14.15 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.864e-05/0.1043, allocations: 32.8 kB / 0.5247 GB, free: 14.12 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003236/0.1046, allocations: 248.9 kB / 0.5249 GB, free: 13.84 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.402e-05/0.1046, allocations: 8.375 kB / 0.5249 GB, free: 13.83 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.103e-05/0.1046, allocations: 12.38 kB / 0.5249 GB, free: 13.82 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002476/0.1049, allocations: 131.4 kB / 0.5251 GB, free: 13.68 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.028e-05/0.1049, allocations: 0 / 0.5251 GB, free: 13.68 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.398e-05/0.1049, allocations: 8 kB / 0.5251 GB, free: 13.67 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.681e-06/0.1049, allocations: 4 kB / 0.5251 GB, free: 13.66 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000188/0.1051, allocations: 75.89 kB / 0.5251 GB, free: 13.59 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000797/0.1059, allocations: 0.5606 MB / 0.5257 GB, free: 12.97 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002895/0.1062, allocations: 110.5 kB / 0.5258 GB, free: 12.85 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.226e-05/0.1063, allocations: 40.84 kB / 0.5258 GB, free: 12.81 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.672e-05/0.1063, allocations: 3.938 kB / 0.5258 GB, free: 12.8 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.603e-05/0.1063, allocations: 38.5 kB / 0.5259 GB, free: 12.76 MB / 398.1 MB Notification: Performance of pre-optimization done (n=11): time 1.072e-06/0.1063, allocations: 0 / 0.5259 GB, free: 12.76 MB / 398.1 MB Notification: Performance of matching and sorting (n=12): time 0.0008417/0.1072, allocations: 442.1 kB / 0.5263 GB, free: 12.27 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.239e-05/0.1072, allocations: 51.41 kB / 0.5263 GB, free: 12.21 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002358/0.1074, allocations: 229 kB / 0.5266 GB, free: 11.98 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.841e-05/0.1075, allocations: 25.7 kB / 0.5266 GB, free: 11.95 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.857e-05/0.1076, allocations: 132.3 kB / 0.5267 GB, free: 11.82 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.984e-05/0.1076, allocations: 47.58 kB / 0.5268 GB, free: 11.77 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.917e-05/0.1076, allocations: 25.72 kB / 0.5268 GB, free: 11.74 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001661/0.1078, allocations: 334.8 kB / 0.5271 GB, free: 11.41 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.118e-05/0.1079, allocations: 31.98 kB / 0.5271 GB, free: 11.38 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.129e-05/0.108, allocations: 50.56 kB / 0.5272 GB, free: 11.32 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001803/0.1082, allocations: 94.48 kB / 0.5273 GB, free: 11.21 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.1082, allocations: 8 kB / 0.5273 GB, free: 11.21 MB / 398.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002461/0.1084, allocations: 145.4 kB / 0.5274 GB, free: 11.06 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.612e-05/0.1084, allocations: 8 kB / 0.5274 GB, free: 11.05 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.288e-06/0.1084, allocations: 0 / 0.5274 GB, free: 11.05 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.198e-05/0.1084, allocations: 3.938 kB / 0.5274 GB, free: 11.05 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001545/0.1086, allocations: 39.92 kB / 0.5275 GB, free: 11.01 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.255e-06/0.1086, allocations: 4 kB / 0.5275 GB, free: 11 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001014/0.1087, allocations: 12.05 kB / 0.5275 GB, free: 10.99 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.828e-06/0.1087, allocations: 4 kB / 0.5275 GB, free: 10.99 MB / 398.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 (16): * Single equations (assignments): 16 * 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.0001018/0.1088, allocations: 125.8 kB / 0.5276 GB, free: 10.86 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.496e-05/0.1089, allocations: 23.8 kB / 0.5276 GB, free: 10.83 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.414e-05/0.1089, allocations: 25.7 kB / 0.5276 GB, free: 10.8 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.709e-06/0.1089, allocations: 4 kB / 0.5277 GB, free: 10.8 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.1089, allocations: 0 / 0.5277 GB, free: 10.8 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.755e-06/0.1089, allocations: 0 / 0.5277 GB, free: 10.8 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005721/0.1095, allocations: 446.3 kB / 0.5281 GB, free: 10.3 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.1095, allocations: 0 / 0.5281 GB, free: 10.3 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001561/0.1097, allocations: 27.98 kB / 0.5281 GB, free: 10.28 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.753e-06/0.1097, allocations: 0 / 0.5281 GB, free: 10.28 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.339e-05/0.1097, allocations: 7.984 kB / 0.5281 GB, free: 10.27 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.362e-06/0.1097, allocations: 3.938 kB / 0.5281 GB, free: 10.27 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.1097, allocations: 0 / 0.5281 GB, free: 10.27 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003715/0.11, allocations: 267.2 kB / 0.5284 GB, free: 9.988 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.673e-05/0.1101, allocations: 101 kB / 0.5285 GB, free: 9.871 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.618e-05/0.1102, allocations: 4 kB / 0.5285 GB, free: 9.867 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001131/0.1103, allocations: 0 / 0.5285 GB, free: 9.867 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.332e-05/0.1103, allocations: 11.98 kB / 0.5285 GB, free: 9.855 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.876e-06/0.1103, allocations: 4 kB / 0.5285 GB, free: 9.852 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001603/0.1105, allocations: 160.5 kB / 0.5286 GB, free: 9.695 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1105, allocations: 0 / 0.5286 GB, free: 9.695 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000252/0.1107, allocations: 35.94 kB / 0.5287 GB, free: 9.66 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 (12): * Single equations (assignments): 12 * 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.0006642/0.1114, allocations: 0.7914 MB / 0.5294 GB, free: 8.844 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002287/0.1116, allocations: 84.05 kB / 0.5295 GB, free: 8.762 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.1116, allocations: 0 / 0.5295 GB, free: 8.762 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 9.4e-05/0.1117, allocations: 55.92 kB / 0.5296 GB, free: 8.707 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003561/0.1121, allocations: 33.02 kB / 0.5296 GB, free: 8.676 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002897/0.115, allocations: 2.268 MB / 0.5318 GB, free: 6.324 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000374/0.1154, allocations: 0.7319 MB / 0.5325 GB, free: 5.566 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.997e-05/0.1154, allocations: 13.55 kB / 0.5326 GB, free: 5.551 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001071/0.1155, allocations: 55.42 kB / 0.5326 GB, free: 5.496 MB / 398.1 MB Notification: Performance of SimCode: time 3e-07/0.1155, allocations: 0 / 0.5326 GB, free: 5.496 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02799/0.1435, allocations: 3.758 MB / 0.5363 GB, free: 1.684 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.019/8.162, allocations: 11.97 kB / 0.5363 GB, free: 1.672 MB / 398.1 MB " [Timeout remaining time 652] (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.sim & python3 -m fmpy simulate --output-file ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical1.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.059312773999409] Failed to read output from testmodel.py, exit status != 0: 8.228947791008977 8.242894834 8.136975652 Calling exit ...