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.00128/0.00128, allocations: 124.8 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.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.00128/0.00128, allocations: 186.9 kB / 20.73 MB, free: 2.332 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.427/1.427, 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 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.3998/0.3998, allocations: 49.53 MB / 332.5 MB, free: 0.7812 MB / 254.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.002107/0.002107, allocations: 82.7 kB / 470.8 MB, free: 41.14 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08969/0.0918, allocations: 62.33 MB / 0.5206 GB, free: 2.398 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical2): time 0.002673/0.09447, allocations: 2.189 MB / 0.5227 GB, free: 196 kB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0011/0.09557, allocations: 0.6358 MB / 0.5234 GB, free: 15.55 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001011/0.09567, allocations: 0 / 0.5234 GB, free: 15.55 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001315/0.0958, allocations: 31.66 kB / 0.5234 GB, free: 15.52 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002289/0.09603, allocations: 83.41 kB / 0.5235 GB, free: 15.43 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001513/0.09618, allocations: 47.94 kB / 0.5235 GB, free: 15.39 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003121/0.09649, allocations: 242.9 kB / 0.5237 GB, free: 15.15 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000156/0.09665, allocations: 52.23 kB / 0.5238 GB, free: 15.09 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001513/0.0968, allocations: 95.58 kB / 0.5239 GB, free: 15 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000172/0.09697, allocations: 111.4 kB / 0.524 GB, free: 14.89 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.181e-05/0.09701, allocations: 12 kB / 0.524 GB, free: 14.88 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.014e-05/0.09707, allocations: 20 kB / 0.524 GB, free: 14.86 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 4.261e-05/0.09711, allocations: 39.84 kB / 0.5241 GB, free: 14.82 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001079/0.09722, allocations: 111.3 kB / 0.5242 GB, free: 14.71 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002871/0.0975, allocations: 203 kB / 0.5244 GB, free: 14.51 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.056e-06/0.09751, allocations: 0 / 0.5244 GB, free: 14.51 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.09751, allocations: 0 / 0.5244 GB, free: 14.51 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.122e-06/0.09751, allocations: 0 / 0.5244 GB, free: 14.51 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.0009414/0.09845, allocations: 0.5333 MB / 0.5249 GB, free: 13.93 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.17e-05/0.0985, allocations: 11.89 kB / 0.5249 GB, free: 13.91 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.132e-05/0.09855, allocations: 46.73 kB / 0.5249 GB, free: 13.86 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.247e-05/0.09864, allocations: 24.8 kB / 0.525 GB, free: 13.84 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003692/0.09901, allocations: 262.9 kB / 0.5252 GB, free: 13.54 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.581e-05/0.09903, allocations: 8.375 kB / 0.5252 GB, free: 13.54 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.033e-05/0.09907, allocations: 16.38 kB / 0.5252 GB, free: 13.52 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003146/0.09938, allocations: 159.4 kB / 0.5254 GB, free: 13.35 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.507e-05/0.0994, allocations: 3.953 kB / 0.5254 GB, free: 13.35 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.722e-05/0.09941, allocations: 8 kB / 0.5254 GB, free: 13.34 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.839e-06/0.09942, allocations: 0 / 0.5254 GB, free: 13.34 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002596/0.09968, allocations: 103.9 kB / 0.5255 GB, free: 13.24 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009154/0.1006, allocations: 0.5998 MB / 0.5261 GB, free: 12.58 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002638/0.1009, allocations: 126.5 kB / 0.5262 GB, free: 12.45 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001409/0.101, allocations: 60.83 kB / 0.5263 GB, free: 12.38 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.755e-05/0.101, allocations: 3.938 kB / 0.5263 GB, free: 12.38 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.305e-05/0.1011, allocations: 46.5 kB / 0.5263 GB, free: 12.32 MB / 398.1 MB Notification: Performance of pre-optimization done (n=16): time 1.262e-06/0.1011, allocations: 0 / 0.5263 GB, free: 12.32 MB / 398.1 MB Notification: Performance of matching and sorting (n=18): time 0.00114/0.1022, allocations: 0.5499 MB / 0.5268 GB, free: 11.72 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.475e-05/0.1023, allocations: 55.41 kB / 0.5269 GB, free: 11.66 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002659/0.1025, allocations: 233 kB / 0.5271 GB, free: 11.42 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.277e-05/0.1026, allocations: 29.7 kB / 0.5271 GB, free: 11.38 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001011/0.1027, allocations: 144.5 kB / 0.5273 GB, free: 11.24 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.003e-05/0.1027, allocations: 63.42 kB / 0.5273 GB, free: 11.18 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.857e-05/0.1028, allocations: 41.7 kB / 0.5274 GB, free: 11.13 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001603/0.103, allocations: 330.8 kB / 0.5277 GB, free: 10.8 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001319/0.1031, allocations: 51.97 kB / 0.5277 GB, free: 10.75 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001497/0.1032, allocations: 78.55 kB / 0.5278 GB, free: 10.66 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.00121/0.1044, allocations: 421 kB / 0.5282 GB, free: 10.22 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.292e-06/0.1044, allocations: 4 kB / 0.5282 GB, free: 10.22 MB / 398.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003635/0.1048, allocations: 193.3 kB / 0.5284 GB, free: 10.02 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.76e-05/0.1048, allocations: 7.984 kB / 0.5284 GB, free: 10.02 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.29e-06/0.1048, allocations: 0 / 0.5284 GB, free: 10.02 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.658e-05/0.1049, allocations: 4 kB / 0.5284 GB, free: 10.01 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002654/0.1051, allocations: 63.91 kB / 0.5285 GB, free: 9.949 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.856e-06/0.1051, allocations: 3.984 kB / 0.5285 GB, free: 9.945 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001223/0.1053, allocations: 11.98 kB / 0.5285 GB, free: 9.934 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.516e-05/0.1053, allocations: 8 kB / 0.5285 GB, free: 9.926 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.0001335/0.1054, allocations: 133.8 kB / 0.5286 GB, free: 9.785 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.631e-05/0.1055, allocations: 23.8 kB / 0.5287 GB, free: 9.762 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.417e-05/0.1055, allocations: 30.17 kB / 0.5287 GB, free: 9.73 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.1055, allocations: 0 / 0.5287 GB, free: 9.73 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.1055, allocations: 0 / 0.5287 GB, free: 9.73 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/0.1055, allocations: 0 / 0.5287 GB, free: 9.73 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007983/0.1063, allocations: 0.5256 MB / 0.5292 GB, free: 9.148 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.943e-06/0.1063, allocations: 4 kB / 0.5292 GB, free: 9.145 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002733/0.1066, allocations: 47.97 kB / 0.5293 GB, free: 9.098 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.1066, allocations: 0 / 0.5293 GB, free: 9.098 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.487e-05/0.1066, allocations: 7.938 kB / 0.5293 GB, free: 9.09 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.1066, allocations: 4 kB / 0.5293 GB, free: 9.086 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.1066, allocations: 0 / 0.5293 GB, free: 9.086 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005611/0.1072, allocations: 343.1 kB / 0.5296 GB, free: 8.734 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001115/0.1073, allocations: 105 kB / 0.5297 GB, free: 8.613 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.171e-05/0.1073, allocations: 4 kB / 0.5297 GB, free: 8.609 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001445/0.1075, allocations: 7.984 kB / 0.5297 GB, free: 8.602 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.405e-05/0.1075, allocations: 15.98 kB / 0.5297 GB, free: 8.586 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.122e-05/0.1075, allocations: 7.938 kB / 0.5297 GB, free: 8.578 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001639/0.1077, allocations: 164.5 kB / 0.5299 GB, free: 8.418 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1077, allocations: 0 / 0.5299 GB, free: 8.418 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002885/0.108, allocations: 44 kB / 0.5299 GB, free: 8.375 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.0008216/0.1088, allocations: 0.861 MB / 0.5308 GB, free: 7.488 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003334/0.1091, allocations: 131.9 kB / 0.5309 GB, free: 7.359 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.1092, allocations: 0 / 0.5309 GB, free: 7.359 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000142/0.1093, allocations: 67.91 kB / 0.531 GB, free: 7.293 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003684/0.1097, allocations: 32.36 kB / 0.531 GB, free: 7.262 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003307/0.113, allocations: 2.447 MB / 0.5334 GB, free: 4.723 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003844/0.1134, allocations: 0.7474 MB / 0.5341 GB, free: 3.949 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 9.014e-05/0.1134, allocations: 21.52 kB / 0.5341 GB, free: 3.93 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001183/0.1136, allocations: 63.42 kB / 0.5342 GB, free: 3.867 MB / 398.1 MB Notification: Performance of SimCode: time 3.4e-07/0.1136, allocations: 0 / 0.5342 GB, free: 3.867 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02826/0.1418, allocations: 4.364 MB / 0.5384 GB, free: 15.46 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.242/8.384, allocations: 12.23 kB / 0.5385 GB, free: 15.45 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 & /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.184906473848969] Failed to read output from testmodel.py, exit status != 0: 8.459449791815132 8.486721989 8.384122131 Calling exit ...