Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.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.001789/0.001789, allocations: 123.4 kB / 17.79 MB, free: 5.266 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.002141/0.002141, allocations: 200.3 kB / 20.74 MB, free: 2.32 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.463/1.463, allocations: 207.6 MB / 231.1 MB, free: 4.109 MB / 174.1 MB " [Timeout remaining time 178] 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.3986/0.3986, allocations: 49.5 MB / 332.5 MB, free: 0.6992 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.TestElectrical4,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical4",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical4,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical4",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.002053/0.002053, allocations: 76.92 kB / 470.8 MB, free: 41.05 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09945/0.1015, allocations: 62.35 MB / 0.5206 GB, free: 2.352 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical4): time 0.002992/0.1045, allocations: 2.282 MB / 0.5229 GB, free: 52 kB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001391/0.1059, allocations: 0.6787 MB / 0.5235 GB, free: 15.36 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000122/0.106, allocations: 3.938 kB / 0.5235 GB, free: 15.36 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001391/0.1061, allocations: 31.66 kB / 0.5236 GB, free: 15.33 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002563/0.1064, allocations: 83.33 kB / 0.5237 GB, free: 15.25 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001787/0.1066, allocations: 55.86 kB / 0.5237 GB, free: 15.19 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003517/0.1069, allocations: 282.7 kB / 0.524 GB, free: 14.91 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001564/0.1071, allocations: 56.62 kB / 0.524 GB, free: 14.86 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001668/0.1073, allocations: 107.6 kB / 0.5241 GB, free: 14.75 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001773/0.1074, allocations: 115.4 kB / 0.5242 GB, free: 14.64 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.516e-05/0.1075, allocations: 23.98 kB / 0.5243 GB, free: 14.61 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.355e-05/0.1075, allocations: 20 kB / 0.5243 GB, free: 14.59 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 4.71e-05/0.1076, allocations: 39.84 kB / 0.5243 GB, free: 14.55 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001176/0.1077, allocations: 123.3 kB / 0.5244 GB, free: 14.43 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003122/0.108, allocations: 226.9 kB / 0.5247 GB, free: 14.21 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.108, allocations: 0 / 0.5247 GB, free: 14.21 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.108, allocations: 0 / 0.5247 GB, free: 14.21 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.838e-06/0.108, allocations: 0 / 0.5247 GB, free: 14.21 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: 37 * Number of variables: 37 Notification: Performance of Generate backend data structure: time 0.0009757/0.109, allocations: 0.5605 MB / 0.5252 GB, free: 13.6 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.022e-05/0.109, allocations: 11.89 kB / 0.5252 GB, free: 13.59 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.546e-05/0.1091, allocations: 50.73 kB / 0.5253 GB, free: 13.53 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001001/0.1092, allocations: 32.75 kB / 0.5253 GB, free: 13.5 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003844/0.1096, allocations: 270.9 kB / 0.5256 GB, free: 13.2 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.891e-05/0.1096, allocations: 12.38 kB / 0.5256 GB, free: 13.18 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.071e-05/0.1096, allocations: 16.38 kB / 0.5256 GB, free: 13.17 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003373/0.11, allocations: 179.1 kB / 0.5258 GB, free: 12.98 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.284e-05/0.11, allocations: 0 / 0.5258 GB, free: 12.98 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.051e-05/0.11, allocations: 8 kB / 0.5258 GB, free: 12.97 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.133e-06/0.11, allocations: 4 kB / 0.5258 GB, free: 12.97 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002894/0.1103, allocations: 119.9 kB / 0.5259 GB, free: 12.85 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009908/0.1113, allocations: 0.6541 MB / 0.5265 GB, free: 12.14 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002625/0.1116, allocations: 130.5 kB / 0.5266 GB, free: 12 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001497/0.1117, allocations: 72.86 kB / 0.5267 GB, free: 11.93 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.245e-05/0.1117, allocations: 4 kB / 0.5267 GB, free: 11.92 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.397e-05/0.1118, allocations: 34.5 kB / 0.5267 GB, free: 11.88 MB / 398.1 MB Notification: Performance of pre-optimization done (n=17): time 1.172e-06/0.1118, allocations: 3.938 kB / 0.5267 GB, free: 11.88 MB / 398.1 MB Notification: Performance of matching and sorting (n=18): time 0.001131/0.1129, allocations: 0.5488 MB / 0.5273 GB, free: 11.27 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.797e-05/0.1129, allocations: 55.41 kB / 0.5273 GB, free: 11.21 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002423/0.1132, allocations: 229 kB / 0.5276 GB, free: 10.97 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.182e-05/0.1132, allocations: 29.7 kB / 0.5276 GB, free: 10.94 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001024/0.1133, allocations: 148.4 kB / 0.5277 GB, free: 10.79 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.475e-05/0.1133, allocations: 75.36 kB / 0.5278 GB, free: 10.71 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.773e-05/0.1134, allocations: 45.7 kB / 0.5278 GB, free: 10.66 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001496/0.1136, allocations: 334.8 kB / 0.5282 GB, free: 10.33 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001315/0.1137, allocations: 47.97 kB / 0.5282 GB, free: 10.28 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001445/0.1138, allocations: 77.67 kB / 0.5283 GB, free: 10.2 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002748/0.1141, allocations: 145.7 kB / 0.5284 GB, free: 10.05 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.12e-07/0.1141, allocations: 0 / 0.5284 GB, free: 10.05 MB / 398.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003684/0.1145, allocations: 185.5 kB / 0.5286 GB, free: 9.863 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.455e-05/0.1145, allocations: 5.25 kB / 0.5286 GB, free: 9.859 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.568e-06/0.1145, allocations: 0 / 0.5286 GB, free: 9.859 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.691e-05/0.1145, allocations: 4 kB / 0.5286 GB, free: 9.855 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003958/0.1149, allocations: 71.89 kB / 0.5287 GB, free: 9.785 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001202/0.1161, allocations: 1.437 MB / 0.5301 GB, free: 8.203 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001352/0.1163, allocations: 12.02 kB / 0.5301 GB, free: 8.191 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.601e-05/0.1163, allocations: 8 kB / 0.5301 GB, free: 8.184 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * 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: Performance of prepare postOptimizeDAE: time 0.000122/0.1164, allocations: 129.8 kB / 0.5302 GB, free: 8.047 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.893e-05/0.1164, allocations: 27.81 kB / 0.5302 GB, free: 8.02 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003639/0.1168, allocations: 193.3 kB / 0.5304 GB, free: 7.824 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.137e-06/0.1168, allocations: 4 kB / 0.5304 GB, free: 7.82 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.122e-06/0.1168, allocations: 0 / 0.5304 GB, free: 7.82 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.1168, allocations: 0 / 0.5304 GB, free: 7.82 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007455/0.1176, allocations: 0.5218 MB / 0.5309 GB, free: 7.242 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.366e-06/0.1176, allocations: 7.938 kB / 0.531 GB, free: 7.234 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002177/0.1178, allocations: 43.92 kB / 0.531 GB, free: 7.191 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.1178, allocations: 0 / 0.531 GB, free: 7.191 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.556e-05/0.1178, allocations: 12 kB / 0.531 GB, free: 7.18 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.069e-06/0.1178, allocations: 4 kB / 0.531 GB, free: 7.176 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.1178, allocations: 3.984 kB / 0.531 GB, free: 7.172 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005071/0.1183, allocations: 347.3 kB / 0.5313 GB, free: 6.816 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.478e-05/0.1184, allocations: 112.9 kB / 0.5315 GB, free: 6.688 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.625e-05/0.1184, allocations: 4 kB / 0.5315 GB, free: 6.684 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001417/0.1186, allocations: 11.98 kB / 0.5315 GB, free: 6.672 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.238e-05/0.1186, allocations: 15.98 kB / 0.5315 GB, free: 6.656 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.068e-05/0.1187, allocations: 4 kB / 0.5315 GB, free: 6.652 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001654/0.1188, allocations: 164.5 kB / 0.5316 GB, free: 6.492 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1188, allocations: 0 / 0.5316 GB, free: 6.492 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002751/0.1191, allocations: 51.94 kB / 0.5317 GB, free: 6.441 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: 0 () * 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.0008389/0.1199, allocations: 0.8684 MB / 0.5325 GB, free: 5.547 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005498/0.1205, allocations: 167.9 kB / 0.5327 GB, free: 5.383 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.1205, allocations: 4.062 kB / 0.5327 GB, free: 5.379 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001458/0.1206, allocations: 63.91 kB / 0.5328 GB, free: 5.316 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003651/0.121, allocations: 37.11 kB / 0.5328 GB, free: 5.281 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003417/0.1244, allocations: 2.563 MB / 0.5353 GB, free: 2.633 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003628/0.1248, allocations: 0.756 MB / 0.536 GB, free: 1.852 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 9.662e-05/0.1249, allocations: 25.53 kB / 0.5361 GB, free: 1.824 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001324/0.125, allocations: 79.42 kB / 0.5361 GB, free: 1.746 MB / 398.1 MB Notification: Performance of SimCode: time 4.21e-07/0.125, allocations: 0 / 0.5361 GB, free: 1.746 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.029/0.154, allocations: 5.002 MB / 0.541 GB, free: 12.7 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.015/8.169, allocations: 11.97 kB / 0.541 GB, free: 12.68 MB / 414.1 MB " [Timeout remaining time 652] (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.sim & python3 -m fmpy simulate --output-file ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4_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_TestElectrical4.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.23454783600755] Failed to read output from testmodel.py, exit status != 0: 8.2363589029992 8.251339789 8.140584589 Calling exit ...