Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.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.001315/0.001315, 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.001314/0.001314, 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.399/1.399, allocations: 207.6 MB / 231.1 MB, free: 4.109 MB / 174.1 MB " [Timeout remaining time 179] 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.4059/0.4059, allocations: 49.52 MB / 332.5 MB, free: 0.6914 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.TestElectrical3,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical3,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical3",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.002159/0.002159, allocations: 70.47 kB / 470.8 MB, free: 41.11 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09144/0.0936, allocations: 62.34 MB / 0.5206 GB, free: 2.375 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical3): time 0.002876/0.09648, allocations: 2.306 MB / 0.5229 GB, free: 52 kB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001337/0.09781, allocations: 0.6514 MB / 0.5235 GB, free: 15.39 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001895/0.098, allocations: 4 kB / 0.5235 GB, free: 15.39 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001639/0.09817, allocations: 39.59 kB / 0.5235 GB, free: 15.35 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002977/0.09846, allocations: 83.33 kB / 0.5236 GB, free: 15.27 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002059/0.09867, allocations: 63.86 kB / 0.5237 GB, free: 15.2 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004025/0.09907, allocations: 282.8 kB / 0.5239 GB, free: 14.93 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001651/0.09924, allocations: 57.33 kB / 0.524 GB, free: 14.87 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002136/0.09945, allocations: 119.4 kB / 0.5241 GB, free: 14.75 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002051/0.09966, allocations: 119.5 kB / 0.5242 GB, free: 14.63 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.941e-05/0.0997, allocations: 20 kB / 0.5242 GB, free: 14.61 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.094e-05/0.09977, allocations: 20 kB / 0.5243 GB, free: 14.59 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.835e-05/0.09983, allocations: 51.72 kB / 0.5243 GB, free: 14.54 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001256/0.09995, allocations: 123.3 kB / 0.5244 GB, free: 14.42 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003741/0.1003, allocations: 230.9 kB / 0.5246 GB, free: 14.19 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.1003, allocations: 0 / 0.5246 GB, free: 14.19 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.1003, allocations: 4 kB / 0.5247 GB, free: 14.19 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.337e-06/0.1003, allocations: 0 / 0.5247 GB, free: 14.19 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: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.001056/0.1014, allocations: 0.5721 MB / 0.5252 GB, free: 13.57 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.38e-05/0.1014, allocations: 11.89 kB / 0.5252 GB, free: 13.55 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.267e-05/0.1015, allocations: 50.67 kB / 0.5253 GB, free: 13.5 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001182/0.1016, allocations: 32.8 kB / 0.5253 GB, free: 13.46 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004416/0.1021, allocations: 270.9 kB / 0.5256 GB, free: 13.16 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.123e-05/0.1021, allocations: 38.27 kB / 0.5256 GB, free: 13.12 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.389e-05/0.1022, allocations: 24.12 kB / 0.5256 GB, free: 13.09 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003675/0.1025, allocations: 183.1 kB / 0.5258 GB, free: 12.9 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.418e-05/0.1025, allocations: 0 / 0.5258 GB, free: 12.9 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.721e-05/0.1026, allocations: 4 kB / 0.5258 GB, free: 12.9 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.894e-06/0.1026, allocations: 4 kB / 0.5258 GB, free: 12.89 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003325/0.1029, allocations: 123.8 kB / 0.5259 GB, free: 12.77 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001112/0.104, allocations: 0.6621 MB / 0.5266 GB, free: 12.05 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003865/0.1044, allocations: 146.4 kB / 0.5267 GB, free: 11.9 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001778/0.1046, allocations: 72.83 kB / 0.5268 GB, free: 11.82 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.339e-05/0.1046, allocations: 4 kB / 0.5268 GB, free: 11.82 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.009e-05/0.1046, allocations: 38.56 kB / 0.5268 GB, free: 11.77 MB / 398.1 MB Notification: Performance of pre-optimization done (n=18): time 1.563e-06/0.1046, allocations: 0 / 0.5268 GB, free: 11.77 MB / 398.1 MB Notification: Performance of matching and sorting (n=19): time 0.001262/0.1059, allocations: 0.5932 MB / 0.5274 GB, free: 11.13 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.144e-05/0.1059, allocations: 51.41 kB / 0.5274 GB, free: 11.07 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002747/0.1062, allocations: 233 kB / 0.5277 GB, free: 10.83 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.748e-05/0.1062, allocations: 33.7 kB / 0.5277 GB, free: 10.79 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001179/0.1064, allocations: 152.5 kB / 0.5278 GB, free: 10.64 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.883e-05/0.1064, allocations: 63.39 kB / 0.5279 GB, free: 10.58 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.259e-05/0.1065, allocations: 45.7 kB / 0.5279 GB, free: 10.53 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001669/0.1066, allocations: 342.7 kB / 0.5283 GB, free: 10.18 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001504/0.1068, allocations: 63.91 kB / 0.5283 GB, free: 10.12 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001632/0.107, allocations: 86.48 kB / 0.5284 GB, free: 10.03 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000303/0.1073, allocations: 133.5 kB / 0.5285 GB, free: 9.895 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.01e-07/0.1073, allocations: 0 / 0.5285 GB, free: 9.895 MB / 398.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0004184/0.1077, allocations: 213.3 kB / 0.5287 GB, free: 9.68 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.038e-05/0.1077, allocations: 7.984 kB / 0.5288 GB, free: 9.672 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.249e-06/0.1077, allocations: 0 / 0.5288 GB, free: 9.672 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.63e-05/0.1077, allocations: 4 kB / 0.5288 GB, free: 9.668 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004427/0.1082, allocations: 79.89 kB / 0.5288 GB, free: 9.59 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.121e-06/0.1082, allocations: 0 / 0.5288 GB, free: 9.59 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001438/0.1083, allocations: 15.97 kB / 0.5289 GB, free: 9.574 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.476e-05/0.1083, allocations: 8 kB / 0.5289 GB, free: 9.566 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: 1 (BreakerCommand.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 25 * 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.0001445/0.1085, allocations: 133.8 kB / 0.529 GB, free: 9.426 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.214e-05/0.1085, allocations: 19.86 kB / 0.529 GB, free: 9.406 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.225e-05/0.1086, allocations: 30.19 kB / 0.529 GB, free: 9.375 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.434e-06/0.1086, allocations: 0 / 0.529 GB, free: 9.375 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.623e-06/0.1086, allocations: 3.984 kB / 0.529 GB, free: 9.371 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.679e-06/0.1086, allocations: 7.938 kB / 0.529 GB, free: 9.363 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008443/0.1095, allocations: 0.5415 MB / 0.5296 GB, free: 8.766 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.1095, allocations: 0 / 0.5296 GB, free: 8.766 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000378/0.1098, allocations: 59.91 kB / 0.5296 GB, free: 8.707 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.996e-06/0.1098, allocations: 0 / 0.5296 GB, free: 8.707 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.145e-05/0.1099, allocations: 11.98 kB / 0.5296 GB, free: 8.695 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.18e-06/0.1099, allocations: 3.938 kB / 0.5296 GB, free: 8.691 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.1099, allocations: 0 / 0.5296 GB, free: 8.691 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006236/0.1105, allocations: 355.4 kB / 0.53 GB, free: 8.328 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001147/0.1106, allocations: 109 kB / 0.5301 GB, free: 8.203 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.807e-05/0.1106, allocations: 7.938 kB / 0.5301 GB, free: 8.195 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001574/0.1108, allocations: 15.94 kB / 0.5301 GB, free: 8.18 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.059e-05/0.1109, allocations: 11.97 kB / 0.5301 GB, free: 8.168 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.065e-05/0.1109, allocations: 8 kB / 0.5301 GB, free: 8.16 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002562/0.1111, allocations: 176.4 kB / 0.5303 GB, free: 7.988 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1111, allocations: 0 / 0.5303 GB, free: 7.988 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002832/0.1114, allocations: 44 kB / 0.5303 GB, free: 7.945 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: 1 (BreakerCommand.y) * 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.000928/0.1123, allocations: 0.8802 MB / 0.5312 GB, free: 7.039 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003726/0.1127, allocations: 143.8 kB / 0.5313 GB, free: 6.898 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.1127, allocations: 0 / 0.5313 GB, free: 6.898 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001533/0.1129, allocations: 67.91 kB / 0.5314 GB, free: 6.832 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004188/0.1133, allocations: 41.09 kB / 0.5314 GB, free: 6.793 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003711/0.117, allocations: 2.616 MB / 0.534 GB, free: 4.09 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004011/0.1174, allocations: 0.7518 MB / 0.5347 GB, free: 3.312 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 9.755e-05/0.1175, allocations: 21.92 kB / 0.5348 GB, free: 3.289 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001272/0.1176, allocations: 75.41 kB / 0.5348 GB, free: 3.215 MB / 398.1 MB Notification: Performance of SimCode: time 4e-07/0.1176, allocations: 0 / 0.5348 GB, free: 3.215 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03223/0.1498, allocations: 4.579 MB / 0.5393 GB, free: 14.59 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.252/8.402, allocations: 7.969 kB / 0.5393 GB, free: 14.58 MB / 414.1 MB " [Timeout remaining time 652] (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical3_fmu --startTime=0 --stopTime=10 --stepSize=0.002 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical3.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.216624600812793] Failed to read output from testmodel.py, exit status != 0: 8.473622443154454 8.503236525 8.397666226 Calling exit ...