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.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.001766/0.001766, allocations: 124.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.001438/0.001438, allocations: 199.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.411/1.411, allocations: 207.6 MB / 231.1 MB, free: 4.102 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.3969/0.3969, allocations: 49.5 MB / 332.5 MB, free: 0.7734 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.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"}) [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.002802/0.002802, allocations: 64.94 kB / 470.8 MB, free: 41.04 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1104/0.1132, allocations: 62.35 MB / 0.5206 GB, free: 2.344 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical2): time 0.002878/0.1161, allocations: 2.193 MB / 0.5228 GB, free: 136 kB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001296/0.1174, allocations: 0.6358 MB / 0.5234 GB, free: 15.49 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001232/0.1175, allocations: 0 / 0.5234 GB, free: 15.49 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001428/0.1177, allocations: 31.67 kB / 0.5234 GB, free: 15.46 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002543/0.1179, allocations: 79.39 kB / 0.5235 GB, free: 15.38 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001633/0.1181, allocations: 55.86 kB / 0.5236 GB, free: 15.32 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003343/0.1184, allocations: 238.9 kB / 0.5238 GB, free: 15.09 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001519/0.1186, allocations: 56.3 kB / 0.5238 GB, free: 15.03 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001654/0.1187, allocations: 95.58 kB / 0.5239 GB, free: 14.94 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001745/0.1189, allocations: 103.5 kB / 0.524 GB, free: 14.84 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.098e-05/0.1189, allocations: 19.94 kB / 0.5241 GB, free: 14.82 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.123e-05/0.119, allocations: 16 kB / 0.5241 GB, free: 14.8 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 4.62e-05/0.1191, allocations: 43.84 kB / 0.5241 GB, free: 14.76 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 9.981e-05/0.1192, allocations: 103.4 kB / 0.5242 GB, free: 14.66 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002953/0.1194, allocations: 199 kB / 0.5244 GB, free: 14.46 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.1195, allocations: 0 / 0.5244 GB, free: 14.46 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1195, allocations: 4 kB / 0.5244 GB, free: 14.46 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.072e-06/0.1195, allocations: 0 / 0.5244 GB, free: 14.46 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.0008628/0.1203, allocations: 0.5333 MB / 0.5249 GB, free: 13.87 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.48e-05/0.1204, allocations: 15.89 kB / 0.5249 GB, free: 13.86 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.481e-05/0.1204, allocations: 46.73 kB / 0.525 GB, free: 13.8 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.63e-05/0.1205, allocations: 32.8 kB / 0.525 GB, free: 13.77 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000366/0.1209, allocations: 258.9 kB / 0.5253 GB, free: 13.48 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.581e-05/0.1209, allocations: 8.375 kB / 0.5253 GB, free: 13.47 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.131e-05/0.1209, allocations: 20.38 kB / 0.5253 GB, free: 13.45 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002887/0.1212, allocations: 147.5 kB / 0.5254 GB, free: 13.3 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.461e-05/0.1212, allocations: 3.953 kB / 0.5254 GB, free: 13.29 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.599e-05/0.1213, allocations: 8 kB / 0.5254 GB, free: 13.29 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.023e-06/0.1213, allocations: 4 kB / 0.5254 GB, free: 13.28 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002515/0.1215, allocations: 103.9 kB / 0.5255 GB, free: 13.18 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008793/0.1224, allocations: 0.5998 MB / 0.5261 GB, free: 12.52 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002514/0.1226, allocations: 122.5 kB / 0.5262 GB, free: 12.39 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001451/0.1228, allocations: 72.77 kB / 0.5263 GB, free: 12.32 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.602e-05/0.1228, allocations: 0 / 0.5263 GB, free: 12.32 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.903e-05/0.1228, allocations: 34.5 kB / 0.5264 GB, free: 12.27 MB / 398.1 MB Notification: Performance of pre-optimization done (n=16): time 1.092e-06/0.1228, allocations: 0 / 0.5264 GB, free: 12.27 MB / 398.1 MB Notification: Performance of matching and sorting (n=18): time 0.001094/0.1239, allocations: 0.5604 MB / 0.5269 GB, free: 11.66 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.479e-05/0.124, allocations: 55.34 kB / 0.527 GB, free: 11.59 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002373/0.1242, allocations: 225 kB / 0.5272 GB, free: 11.36 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.355e-05/0.1242, allocations: 33.7 kB / 0.5272 GB, free: 11.32 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.401e-05/0.1243, allocations: 136.5 kB / 0.5273 GB, free: 11.19 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.456e-05/0.1244, allocations: 71.42 kB / 0.5274 GB, free: 11.12 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.097e-05/0.1244, allocations: 33.72 kB / 0.5274 GB, free: 11.08 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001439/0.1246, allocations: 338.8 kB / 0.5278 GB, free: 10.74 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000128/0.1247, allocations: 47.97 kB / 0.5278 GB, free: 10.69 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00014/0.1249, allocations: 78.53 kB / 0.5279 GB, free: 10.61 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.001138/0.126, allocations: 424.9 kB / 0.5283 GB, free: 10.16 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.62e-07/0.126, allocations: 0 / 0.5283 GB, free: 10.16 MB / 398.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003683/0.1264, allocations: 197.3 kB / 0.5285 GB, free: 9.965 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.505e-05/0.1264, allocations: 8 kB / 0.5285 GB, free: 9.957 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.478e-06/0.1264, allocations: 0 / 0.5285 GB, free: 9.957 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.217e-05/0.1264, allocations: 4.031 kB / 0.5285 GB, free: 9.953 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002415/0.1266, allocations: 59.91 kB / 0.5285 GB, free: 9.895 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.711e-06/0.1266, allocations: 0 / 0.5285 GB, free: 9.895 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001213/0.1268, allocations: 15.98 kB / 0.5285 GB, free: 9.879 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.317e-05/0.1268, allocations: 4 kB / 0.5286 GB, free: 9.875 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.0001311/0.1269, allocations: 129.8 kB / 0.5287 GB, free: 9.738 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.906e-05/0.127, allocations: 23.8 kB / 0.5287 GB, free: 9.715 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.29e-05/0.127, allocations: 30.17 kB / 0.5287 GB, free: 9.684 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.158e-06/0.127, allocations: 4 kB / 0.5287 GB, free: 9.68 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.987e-06/0.127, allocations: 0 / 0.5287 GB, free: 9.68 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.127, allocations: 0 / 0.5287 GB, free: 9.68 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007372/0.1278, allocations: 0.5217 MB / 0.5292 GB, free: 9.102 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.1278, allocations: 0 / 0.5292 GB, free: 9.102 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002625/0.128, allocations: 51.84 kB / 0.5293 GB, free: 9.051 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.228e-06/0.128, allocations: 8 kB / 0.5293 GB, free: 9.043 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.327e-05/0.128, allocations: 4 kB / 0.5293 GB, free: 9.039 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.128, allocations: 0 / 0.5293 GB, free: 9.039 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.128, allocations: 0 / 0.5293 GB, free: 9.039 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005159/0.1286, allocations: 339.4 kB / 0.5296 GB, free: 8.691 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001042/0.1287, allocations: 109 kB / 0.5297 GB, free: 8.566 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.866e-05/0.1287, allocations: 7.938 kB / 0.5297 GB, free: 8.559 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001376/0.1288, allocations: 12 kB / 0.5297 GB, free: 8.547 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.408e-05/0.1289, allocations: 7.984 kB / 0.5298 GB, free: 8.539 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.184e-05/0.1289, allocations: 7.938 kB / 0.5298 GB, free: 8.531 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000159/0.1291, allocations: 172.4 kB / 0.5299 GB, free: 8.363 MB / 398.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.1291, allocations: 0 / 0.5299 GB, free: 8.363 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002694/0.1293, allocations: 40 kB / 0.53 GB, free: 8.324 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.000818/0.1301, allocations: 0.8685 MB / 0.5308 GB, free: 7.43 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003177/0.1305, allocations: 123.9 kB / 0.5309 GB, free: 7.309 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.1305, allocations: 0 / 0.5309 GB, free: 7.309 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001366/0.1306, allocations: 63.97 kB / 0.531 GB, free: 7.246 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003532/0.1309, allocations: 44.34 kB / 0.531 GB, free: 7.203 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00312/0.1341, allocations: 2.447 MB / 0.5334 GB, free: 4.664 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003851/0.1345, allocations: 0.7397 MB / 0.5341 GB, free: 3.898 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 8.848e-05/0.1345, allocations: 25.53 kB / 0.5342 GB, free: 3.875 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001135/0.1347, allocations: 63.36 kB / 0.5342 GB, free: 3.812 MB / 398.1 MB Notification: Performance of SimCode: time 4.21e-07/0.1347, allocations: 4 kB / 0.5342 GB, free: 3.809 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02982/0.1645, allocations: 4.364 MB / 0.5385 GB, free: 15.4 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.929/8.094, allocations: 8 kB / 0.5385 GB, free: 15.39 MB / 414.1 MB " [Timeout remaining time 652] (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) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 10.998951169007341] Failed to read output from testmodel.py, exit status != 0: 8.163271865996649 8.181455804 8.058558747 Calling exit ...