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.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.001554/0.001554, 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.001586/0.001586, 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.428/1.428, allocations: 207.6 MB / 231.1 MB, free: 4.133 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.4197/0.4197, allocations: 49.52 MB / 332.5 MB, free: 0.7891 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.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.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.002223/0.002223, allocations: 74.27 kB / 470.8 MB, free: 41.11 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08604/0.08826, allocations: 62.34 MB / 0.5206 GB, free: 2.391 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical4): time 0.002813/0.09108, allocations: 2.294 MB / 0.5228 GB, free: 80 kB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001333/0.09241, allocations: 0.667 MB / 0.5235 GB, free: 15.4 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001649/0.09258, allocations: 4 kB / 0.5235 GB, free: 15.4 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001517/0.09273, allocations: 31.59 kB / 0.5235 GB, free: 15.37 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002842/0.09301, allocations: 79.33 kB / 0.5236 GB, free: 15.29 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002028/0.09321, allocations: 67.86 kB / 0.5237 GB, free: 15.22 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003949/0.09361, allocations: 274.8 kB / 0.5239 GB, free: 14.95 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001668/0.09378, allocations: 48.66 kB / 0.524 GB, free: 14.9 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002011/0.09398, allocations: 111.5 kB / 0.5241 GB, free: 14.79 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001985/0.09418, allocations: 119.3 kB / 0.5242 GB, free: 14.68 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.792e-05/0.09421, allocations: 16 kB / 0.5242 GB, free: 14.66 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.115e-05/0.09428, allocations: 20 kB / 0.5242 GB, free: 14.64 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.425e-05/0.09434, allocations: 51.77 kB / 0.5243 GB, free: 14.59 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00013/0.09447, allocations: 123.3 kB / 0.5244 GB, free: 14.47 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003263/0.0948, allocations: 218.9 kB / 0.5246 GB, free: 14.25 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.0948, allocations: 0 / 0.5246 GB, free: 14.25 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.0948, allocations: 0 / 0.5246 GB, free: 14.25 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.907e-06/0.09481, allocations: 0 / 0.5246 GB, free: 14.25 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.001007/0.09582, allocations: 0.5644 MB / 0.5252 GB, free: 13.64 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.291e-05/0.09586, allocations: 15.89 kB / 0.5252 GB, free: 13.62 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.222e-05/0.09592, allocations: 50.67 kB / 0.5252 GB, free: 13.56 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001145/0.09604, allocations: 32.75 kB / 0.5252 GB, free: 13.53 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004299/0.09647, allocations: 270.9 kB / 0.5255 GB, free: 13.23 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.26e-05/0.09648, allocations: 8.375 kB / 0.5255 GB, free: 13.22 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.742e-05/0.09653, allocations: 24.36 kB / 0.5255 GB, free: 13.2 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003595/0.09689, allocations: 179.2 kB / 0.5257 GB, free: 13.01 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.334e-05/0.0969, allocations: 0 / 0.5257 GB, free: 13.01 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.712e-05/0.09692, allocations: 4 kB / 0.5257 GB, free: 13.01 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.305e-06/0.09692, allocations: 4 kB / 0.5257 GB, free: 13 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002835/0.09721, allocations: 119.9 kB / 0.5258 GB, free: 12.89 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001049/0.09826, allocations: 0.6503 MB / 0.5265 GB, free: 12.18 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002771/0.09853, allocations: 134.4 kB / 0.5266 GB, free: 12.04 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001494/0.09868, allocations: 68.83 kB / 0.5267 GB, free: 11.96 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.756e-05/0.0987, allocations: 0 / 0.5267 GB, free: 11.96 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.575e-05/0.09874, allocations: 38.56 kB / 0.5267 GB, free: 11.92 MB / 398.1 MB Notification: Performance of pre-optimization done (n=17): time 1.052e-06/0.09874, allocations: 0 / 0.5267 GB, free: 11.92 MB / 398.1 MB Notification: Performance of matching and sorting (n=18): time 0.001154/0.09989, allocations: 0.5488 MB / 0.5272 GB, free: 11.32 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.044e-05/0.09993, allocations: 55.41 kB / 0.5273 GB, free: 11.25 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002724/0.1002, allocations: 233 kB / 0.5275 GB, free: 11.01 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.071e-05/0.1002, allocations: 29.7 kB / 0.5275 GB, free: 10.98 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001085/0.1003, allocations: 148.4 kB / 0.5277 GB, free: 10.83 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.048e-05/0.1004, allocations: 71.38 kB / 0.5277 GB, free: 10.76 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.143e-05/0.1005, allocations: 37.72 kB / 0.5278 GB, free: 10.71 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000164/0.1006, allocations: 338.8 kB / 0.5281 GB, free: 10.38 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001357/0.1008, allocations: 55.91 kB / 0.5282 GB, free: 10.32 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001482/0.1009, allocations: 77.61 kB / 0.5282 GB, free: 10.24 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002674/0.1012, allocations: 137.7 kB / 0.5284 GB, free: 10.1 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.022e-06/0.1012, allocations: 0 / 0.5284 GB, free: 10.1 MB / 398.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003769/0.1016, allocations: 193.4 kB / 0.5285 GB, free: 9.902 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.777e-05/0.1016, allocations: 13.28 kB / 0.5286 GB, free: 9.891 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.552e-06/0.1016, allocations: 4 kB / 0.5286 GB, free: 9.887 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.38e-05/0.1016, allocations: 0 / 0.5286 GB, free: 9.887 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000396/0.102, allocations: 67.89 kB / 0.5286 GB, free: 9.82 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001356/0.1034, allocations: 1.441 MB / 0.53 GB, free: 8.234 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001425/0.1035, allocations: 4.031 kB / 0.53 GB, free: 8.23 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.693e-05/0.1035, allocations: 8 kB / 0.53 GB, free: 8.223 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.0001437/0.1037, allocations: 137.9 kB / 0.5302 GB, free: 8.078 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.294e-05/0.1037, allocations: 27.81 kB / 0.5302 GB, free: 8.051 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003659/0.1041, allocations: 181.5 kB / 0.5304 GB, free: 7.867 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.449e-06/0.1041, allocations: 4 kB / 0.5304 GB, free: 7.863 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.363e-06/0.1041, allocations: 0 / 0.5304 GB, free: 7.863 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.1041, allocations: 0 / 0.5304 GB, free: 7.863 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000829/0.1049, allocations: 0.5373 MB / 0.5309 GB, free: 7.27 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.853e-06/0.1049, allocations: 0 / 0.5309 GB, free: 7.27 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000228/0.1052, allocations: 39.97 kB / 0.5309 GB, free: 7.23 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.835e-06/0.1052, allocations: 7.938 kB / 0.531 GB, free: 7.223 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.506e-05/0.1052, allocations: 4 kB / 0.531 GB, free: 7.219 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.1052, allocations: 0 / 0.531 GB, free: 7.219 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.1052, allocations: 0 / 0.531 GB, free: 7.219 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005205/0.1057, allocations: 359.3 kB / 0.5313 GB, free: 6.852 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001195/0.1058, allocations: 109 kB / 0.5314 GB, free: 6.727 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.2e-05/0.1059, allocations: 8 kB / 0.5314 GB, free: 6.719 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000148/0.106, allocations: 8 kB / 0.5314 GB, free: 6.711 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.172e-05/0.1061, allocations: 11.97 kB / 0.5314 GB, free: 6.699 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.849e-06/0.1061, allocations: 4 kB / 0.5314 GB, free: 6.695 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001799/0.1062, allocations: 172.5 kB / 0.5316 GB, free: 6.527 MB / 398.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.1062, allocations: 0 / 0.5316 GB, free: 6.527 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002928/0.1065, allocations: 48 kB / 0.5316 GB, free: 6.48 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.0008484/0.1074, allocations: 0.8645 MB / 0.5325 GB, free: 5.59 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005313/0.1079, allocations: 167.8 kB / 0.5326 GB, free: 5.426 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.1079, allocations: 0 / 0.5326 GB, free: 5.426 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00015/0.1081, allocations: 71.91 kB / 0.5327 GB, free: 5.355 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003749/0.1084, allocations: 37.09 kB / 0.5328 GB, free: 5.32 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003553/0.112, allocations: 2.574 MB / 0.5353 GB, free: 2.66 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004192/0.1124, allocations: 0.756 MB / 0.536 GB, free: 1.875 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001079/0.1125, allocations: 21.53 kB / 0.536 GB, free: 1.852 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001392/0.1127, allocations: 75.41 kB / 0.5361 GB, free: 1.777 MB / 398.1 MB Notification: Performance of SimCode: time 4.11e-07/0.1127, allocations: 0 / 0.5361 GB, free: 1.777 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03147/0.1441, allocations: 5.006 MB / 0.541 GB, free: 12.72 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.233/8.377, allocations: 11.72 kB / 0.541 GB, free: 12.71 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical4_fmu --startTime=0 --stopTime=10 --stepSize=0.002 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical4.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.288889344781637] Failed to read output from testmodel.py, exit status != 0: 8.450801328755915 8.47766096 8.378025089 Calling exit ...