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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001301/0.001301, allocations: 119.5 kB / 19.63 MB, free: 2.199 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001391/0.001391, allocations: 197.3 kB / 22.91 MB, free: 4.605 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.416/1.416, allocations: 207.6 MB / 233.6 MB, free: 10.95 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2994/0.2994, allocations: 49.52 MB / 335.3 MB, free: 4.402 MB / 270.1 MB " [Timeout remaining time 179] 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"}) [Timeout 660] "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.002195/0.002195, allocations: 79.81 kB / 475.1 MB, free: 13.24 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1148/0.117, allocations: 62.32 MB / 0.5248 GB, free: 14.73 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical2): time 0.003593/0.1206, allocations: 2.192 MB / 0.527 GB, free: 12.52 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001238/0.1218, allocations: 0.6397 MB / 0.5276 GB, free: 11.87 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001158/0.1219, allocations: 7.938 kB / 0.5276 GB, free: 11.86 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001475/0.1221, allocations: 27.66 kB / 0.5276 GB, free: 11.84 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000243/0.1223, allocations: 83.39 kB / 0.5277 GB, free: 11.75 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001611/0.1225, allocations: 43.89 kB / 0.5278 GB, free: 11.71 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003223/0.1228, allocations: 251 kB / 0.528 GB, free: 11.46 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001454/0.123, allocations: 44.58 kB / 0.528 GB, free: 11.42 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001645/0.1231, allocations: 103.5 kB / 0.5281 GB, free: 11.32 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00018/0.1233, allocations: 95.53 kB / 0.5282 GB, free: 11.22 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 4.449e-05/0.1234, allocations: 19.94 kB / 0.5282 GB, free: 11.2 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.873e-05/0.1234, allocations: 23.94 kB / 0.5283 GB, free: 11.18 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 4.79e-05/0.1235, allocations: 39.84 kB / 0.5283 GB, free: 11.14 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001169/0.1236, allocations: 107.3 kB / 0.5284 GB, free: 11.04 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003047/0.1239, allocations: 195.1 kB / 0.5286 GB, free: 10.84 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.1239, allocations: 0 / 0.5286 GB, free: 10.84 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.1239, allocations: 4 kB / 0.5286 GB, free: 10.84 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.542e-06/0.1239, allocations: 0 / 0.5286 GB, free: 10.84 MB / 414.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.0009236/0.1248, allocations: 0.5372 MB / 0.5291 GB, free: 10.25 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.348e-05/0.1249, allocations: 15.89 kB / 0.5291 GB, free: 10.24 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.615e-05/0.125, allocations: 50.73 kB / 0.5292 GB, free: 10.18 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001345/0.1251, allocations: 24.8 kB / 0.5292 GB, free: 10.16 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004238/0.1255, allocations: 262.9 kB / 0.5295 GB, free: 9.863 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.901e-05/0.1255, allocations: 8.375 kB / 0.5295 GB, free: 9.855 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.033e-05/0.1256, allocations: 16.38 kB / 0.5295 GB, free: 9.84 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003234/0.1259, allocations: 155.4 kB / 0.5296 GB, free: 9.676 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.526e-05/0.1259, allocations: 3.953 kB / 0.5296 GB, free: 9.672 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.753e-05/0.1259, allocations: 11.98 kB / 0.5297 GB, free: 9.66 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.688e-06/0.126, allocations: 8 kB / 0.5297 GB, free: 9.652 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002589/0.1262, allocations: 99.92 kB / 0.5298 GB, free: 9.555 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009404/0.1271, allocations: 0.5959 MB / 0.5303 GB, free: 8.898 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002778/0.1274, allocations: 118.6 kB / 0.5304 GB, free: 8.773 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001457/0.1276, allocations: 68.83 kB / 0.5305 GB, free: 8.703 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.04e-05/0.1276, allocations: 3.938 kB / 0.5305 GB, free: 8.699 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.002e-05/0.1276, allocations: 34.5 kB / 0.5306 GB, free: 8.656 MB / 414.1 MB Notification: Performance of pre-optimization done (n=16): time 1.413e-06/0.1276, allocations: 0 / 0.5306 GB, free: 8.656 MB / 414.1 MB Notification: Performance of matching and sorting (n=18): time 0.001133/0.1288, allocations: 0.5574 MB / 0.5311 GB, free: 8.047 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.321e-05/0.1288, allocations: 51.41 kB / 0.5311 GB, free: 7.984 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002597/0.1291, allocations: 233 kB / 0.5314 GB, free: 7.746 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.123e-05/0.1291, allocations: 29.7 kB / 0.5314 GB, free: 7.711 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.901e-05/0.1292, allocations: 136.5 kB / 0.5315 GB, free: 7.574 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.357e-05/0.1292, allocations: 79.36 kB / 0.5316 GB, free: 7.496 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.051e-05/0.1293, allocations: 37.7 kB / 0.5316 GB, free: 7.453 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001557/0.1295, allocations: 342.8 kB / 0.532 GB, free: 7.109 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001266/0.1296, allocations: 51.97 kB / 0.532 GB, free: 7.059 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001404/0.1297, allocations: 70.55 kB / 0.5321 GB, free: 6.98 MB / 414.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.001234/0.131, allocations: 427.3 kB / 0.5325 GB, free: 6.535 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.402e-06/0.131, allocations: 0 / 0.5325 GB, free: 6.535 MB / 414.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003954/0.1314, allocations: 193.3 kB / 0.5327 GB, free: 6.34 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.976e-05/0.1314, allocations: 8 kB / 0.5327 GB, free: 6.332 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.561e-06/0.1314, allocations: 0 / 0.5327 GB, free: 6.332 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.632e-05/0.1314, allocations: 4.031 kB / 0.5327 GB, free: 6.328 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002587/0.1317, allocations: 59.91 kB / 0.5327 GB, free: 6.27 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.394e-06/0.1317, allocations: 0 / 0.5327 GB, free: 6.27 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001335/0.1318, allocations: 11.98 kB / 0.5328 GB, free: 6.258 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.342e-05/0.1318, allocations: 4 kB / 0.5328 GB, free: 6.254 MB / 414.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.0001539/0.132, allocations: 133.8 kB / 0.5329 GB, free: 6.113 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.26e-05/0.132, allocations: 23.8 kB / 0.5329 GB, free: 6.09 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.272e-05/0.1321, allocations: 34.17 kB / 0.5329 GB, free: 6.055 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.97e-06/0.1321, allocations: 4 kB / 0.5329 GB, free: 6.051 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.72e-06/0.1321, allocations: 48 / 0.5329 GB, free: 6.051 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.11e-06/0.1321, allocations: 3.984 kB / 0.5329 GB, free: 6.047 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008013/0.1329, allocations: 0.5178 MB / 0.5335 GB, free: 5.473 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.1329, allocations: 0 / 0.5335 GB, free: 5.473 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002732/0.1332, allocations: 47.97 kB / 0.5335 GB, free: 5.426 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.025e-06/0.1332, allocations: 8 kB / 0.5335 GB, free: 5.418 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.397e-05/0.1332, allocations: 0 / 0.5335 GB, free: 5.418 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.1332, allocations: 0 / 0.5335 GB, free: 5.418 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.1332, allocations: 0 / 0.5335 GB, free: 5.418 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005392/0.1338, allocations: 343.1 kB / 0.5338 GB, free: 5.066 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001048/0.1339, allocations: 109 kB / 0.5339 GB, free: 4.941 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.823e-05/0.1339, allocations: 0 / 0.5339 GB, free: 4.941 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001481/0.134, allocations: 19.98 kB / 0.534 GB, free: 4.922 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.737e-05/0.1341, allocations: 7.984 kB / 0.534 GB, free: 4.914 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.277e-05/0.1341, allocations: 11.94 kB / 0.534 GB, free: 4.902 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001788/0.1343, allocations: 164.5 kB / 0.5341 GB, free: 4.742 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1343, allocations: 3.938 kB / 0.5341 GB, free: 4.738 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002826/0.1346, allocations: 40 kB / 0.5342 GB, free: 4.699 MB / 414.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.0008576/0.1354, allocations: 0.8649 MB / 0.535 GB, free: 3.805 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0003484/0.1358, allocations: 127.9 kB / 0.5351 GB, free: 3.68 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.1358, allocations: 0 / 0.5351 GB, free: 3.68 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001359/0.1359, allocations: 67.97 kB / 0.5352 GB, free: 3.613 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003846/0.1363, allocations: 45.33 kB / 0.5352 GB, free: 3.57 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003288/0.1396, allocations: 2.442 MB / 0.5376 GB, free: 1.035 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003954/0.14, allocations: 0.7435 MB / 0.5384 GB, free: 272 kB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001032/0.1401, allocations: 25.52 kB / 0.5384 GB, free: 248 kB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00012/0.1402, allocations: 59.42 kB / 0.5384 GB, free: 188 kB / 414.1 MB Notification: Performance of SimCode: time 1.162e-06/0.1402, allocations: 0 / 0.5384 GB, free: 188 kB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2298/0.3701, allocations: 4.364 MB / 0.5427 GB, free: 22.84 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.233/8.603, allocations: 5.328 kB / 0.5427 GB, free: 22.83 MB / 414.1 MB " [Timeout remaining time 651] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical2_fmu --startTime=0 --stopTime=5 --stepSize=0.005 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical2.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.343319427978713] Failed to read output from testmodel.py, exit status != 0: 8.674771007994423 8.687615446 8.560989322 Calling exit ...