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.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.001365/0.001365, allocations: 123.9 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.001415/0.001415, allocations: 189.2 kB / 20.73 MB, free: 2.336 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.439/1.439, allocations: 207.6 MB / 231.1 MB, free: 4.094 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.4057/0.4057, allocations: 49.52 MB / 332.5 MB, free: 0.6953 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.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.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.002125/0.002125, allocations: 76.06 kB / 470.8 MB, free: 41.07 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09218/0.09431, allocations: 62.34 MB / 0.5206 GB, free: 2.383 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical1): time 0.002471/0.09678, allocations: 2.076 MB / 0.5226 GB, free: 296 kB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009404/0.09772, allocations: 0.6086 MB / 0.5232 GB, free: 15.67 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.744e-05/0.09782, allocations: 11.94 kB / 0.5232 GB, free: 15.66 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001169/0.09793, allocations: 23.72 kB / 0.5232 GB, free: 15.64 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002071/0.09814, allocations: 63.48 kB / 0.5233 GB, free: 15.57 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001413/0.09828, allocations: 47.94 kB / 0.5234 GB, free: 15.53 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002689/0.09855, allocations: 207 kB / 0.5236 GB, free: 15.32 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001231/0.09868, allocations: 32.22 kB / 0.5236 GB, free: 15.29 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001405/0.09882, allocations: 87.62 kB / 0.5237 GB, free: 15.2 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001574/0.09897, allocations: 91.5 kB / 0.5238 GB, free: 15.11 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.83e-05/0.099, allocations: 12 kB / 0.5238 GB, free: 15.1 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.387e-05/0.09906, allocations: 16 kB / 0.5238 GB, free: 15.09 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 4.246e-05/0.0991, allocations: 27.86 kB / 0.5238 GB, free: 15.06 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 9.271e-05/0.09919, allocations: 87.53 kB / 0.5239 GB, free: 14.97 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002524/0.09944, allocations: 171.1 kB / 0.5241 GB, free: 14.8 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.09945, allocations: 0 / 0.5241 GB, free: 14.8 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.09945, allocations: 0 / 0.5241 GB, free: 14.8 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.082e-06/0.09945, allocations: 4 kB / 0.5241 GB, free: 14.8 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.0008002/0.1003, allocations: 0.4906 MB / 0.5245 GB, free: 14.26 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.945e-05/0.1003, allocations: 15.89 kB / 0.5246 GB, free: 14.24 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.475e-05/0.1003, allocations: 42.73 kB / 0.5246 GB, free: 14.19 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.366e-05/0.1004, allocations: 24.8 kB / 0.5246 GB, free: 14.17 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003397/0.1008, allocations: 244.9 kB / 0.5249 GB, free: 13.89 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.56e-05/0.1008, allocations: 8.375 kB / 0.5249 GB, free: 13.88 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.258e-05/0.1008, allocations: 16.38 kB / 0.5249 GB, free: 13.86 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002448/0.1011, allocations: 132.3 kB / 0.525 GB, free: 13.72 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.141e-05/0.1011, allocations: 0 / 0.525 GB, free: 13.72 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.428e-05/0.1011, allocations: 4 kB / 0.525 GB, free: 13.72 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.346e-06/0.1011, allocations: 4 kB / 0.525 GB, free: 13.71 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001993/0.1013, allocations: 87.81 kB / 0.5251 GB, free: 13.63 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008052/0.1021, allocations: 0.549 MB / 0.5256 GB, free: 13.02 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002829/0.1024, allocations: 102.5 kB / 0.5257 GB, free: 12.91 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.906e-05/0.1025, allocations: 48.77 kB / 0.5258 GB, free: 12.86 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.571e-05/0.1025, allocations: 8 kB / 0.5258 GB, free: 12.85 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.017e-05/0.1025, allocations: 34.5 kB / 0.5258 GB, free: 12.81 MB / 398.1 MB Notification: Performance of pre-optimization done (n=11): time 1.153e-06/0.1025, allocations: 0 / 0.5258 GB, free: 12.81 MB / 398.1 MB Notification: Performance of matching and sorting (n=12): time 0.0008814/0.1034, allocations: 442.8 kB / 0.5262 GB, free: 12.32 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.049e-05/0.1035, allocations: 55.41 kB / 0.5263 GB, free: 12.26 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002505/0.1037, allocations: 233 kB / 0.5265 GB, free: 12.03 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.986e-05/0.1037, allocations: 25.7 kB / 0.5265 GB, free: 12 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.494e-05/0.1038, allocations: 124.4 kB / 0.5267 GB, free: 11.87 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.372e-05/0.1039, allocations: 51.56 kB / 0.5267 GB, free: 11.82 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.302e-05/0.1039, allocations: 33.7 kB / 0.5267 GB, free: 11.78 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001552/0.1041, allocations: 326.8 kB / 0.527 GB, free: 11.45 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.539e-05/0.1042, allocations: 31.97 kB / 0.5271 GB, free: 11.42 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.687e-05/0.1043, allocations: 58.56 kB / 0.5271 GB, free: 11.36 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001821/0.1045, allocations: 94.5 kB / 0.5272 GB, free: 11.25 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.012e-06/0.1045, allocations: 0 / 0.5272 GB, free: 11.25 MB / 398.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002638/0.1047, allocations: 153.4 kB / 0.5274 GB, free: 11.1 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.349e-05/0.1047, allocations: 4 kB / 0.5274 GB, free: 11.09 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.599e-06/0.1047, allocations: 4.062 kB / 0.5274 GB, free: 11.09 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.549e-05/0.1048, allocations: 4 kB / 0.5274 GB, free: 11.09 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001518/0.1049, allocations: 39.86 kB / 0.5274 GB, free: 11.05 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.7e-06/0.1049, allocations: 0 / 0.5274 GB, free: 11.05 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001042/0.105, allocations: 8 kB / 0.5274 GB, free: 11.04 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.939e-06/0.105, allocations: 4 kB / 0.5274 GB, free: 11.04 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.0001077/0.1051, allocations: 125.8 kB / 0.5276 GB, free: 10.9 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.859e-05/0.1052, allocations: 27.8 kB / 0.5276 GB, free: 10.88 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.819e-05/0.1053, allocations: 21.72 kB / 0.5276 GB, free: 10.85 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.703e-06/0.1053, allocations: 0 / 0.5276 GB, free: 10.85 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.977e-06/0.1053, allocations: 0 / 0.5276 GB, free: 10.85 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.2e-06/0.1053, allocations: 3.984 kB / 0.5276 GB, free: 10.84 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005954/0.1059, allocations: 450.4 kB / 0.528 GB, free: 10.35 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.1059, allocations: 0 / 0.528 GB, free: 10.35 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001606/0.106, allocations: 27.98 kB / 0.5281 GB, free: 10.32 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.034e-06/0.106, allocations: 0 / 0.5281 GB, free: 10.32 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.188e-06/0.106, allocations: 0 / 0.5281 GB, free: 10.32 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.106, allocations: 4 kB / 0.5281 GB, free: 10.32 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.106, allocations: 3.938 kB / 0.5281 GB, free: 10.31 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003721/0.1064, allocations: 271.2 kB / 0.5283 GB, free: 10.03 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001144/0.1065, allocations: 101 kB / 0.5284 GB, free: 9.914 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.664e-05/0.1065, allocations: 0 / 0.5284 GB, free: 9.914 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001256/0.1067, allocations: 7.984 kB / 0.5284 GB, free: 9.906 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.018e-05/0.1067, allocations: 8 kB / 0.5284 GB, free: 9.898 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.404e-06/0.1067, allocations: 7.984 kB / 0.5284 GB, free: 9.891 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001601/0.1069, allocations: 160.5 kB / 0.5286 GB, free: 9.734 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1069, allocations: 0 / 0.5286 GB, free: 9.734 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002637/0.1071, allocations: 35.94 kB / 0.5286 GB, free: 9.699 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.0006839/0.1078, allocations: 0.7943 MB / 0.5294 GB, free: 8.879 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002099/0.108, allocations: 83.94 kB / 0.5295 GB, free: 8.797 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.108, allocations: 0 / 0.5295 GB, free: 8.797 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 8.977e-05/0.1081, allocations: 43.86 kB / 0.5295 GB, free: 8.754 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003804/0.1085, allocations: 39.03 kB / 0.5296 GB, free: 8.719 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003008/0.1115, allocations: 2.271 MB / 0.5318 GB, free: 6.363 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003703/0.1119, allocations: 0.7241 MB / 0.5325 GB, free: 5.613 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 8.391e-05/0.112, allocations: 25.52 kB / 0.5325 GB, free: 5.586 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.004e-05/0.112, allocations: 51.42 kB / 0.5326 GB, free: 5.535 MB / 398.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1121, allocations: 0 / 0.5326 GB, free: 5.535 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02876/0.1408, allocations: 3.759 MB / 0.5362 GB, free: 1.723 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.236/8.377, allocations: 11.98 kB / 0.5362 GB, free: 1.711 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical1_fmu --startTime=0 --stopTime=2 --stepSize=0.0008 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical1.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.215137568768114] Failed to read output from testmodel.py, exit status != 0: 8.44805459631607 8.471737383 8.368080322 Calling exit ...