Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.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.001811/0.001811, allocations: 119.3 kB / 17.79 MB, free: 5.285 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.002179/0.002179, allocations: 186.9 kB / 20.73 MB, free: 2.355 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.426/1.426, allocations: 207.6 MB / 231.1 MB, free: 4.09 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.3872/0.3872, allocations: 49.51 MB / 332.5 MB, free: 0.7695 MB / 254.1 MB " [Timeout remaining time 180] 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.TestElectrical7,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical7",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical7,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical7",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.002082/0.002082, allocations: 72.28 kB / 470.8 MB, free: 41.03 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09025/0.09233, allocations: 62.33 MB / 0.5206 GB, free: 2.402 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical7): time 0.004065/0.0964, allocations: 3.167 MB / 0.5237 GB, free: 15.21 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002068/0.09847, allocations: 0.8344 MB / 0.5245 GB, free: 14.37 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003553/0.09882, allocations: 4 kB / 0.5245 GB, free: 14.36 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002479/0.09907, allocations: 63.31 kB / 0.5246 GB, free: 14.3 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005303/0.0996, allocations: 154.8 kB / 0.5247 GB, free: 14.14 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000342/0.09994, allocations: 123.8 kB / 0.5248 GB, free: 14.02 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007772/0.1007, allocations: 0.5217 MB / 0.5253 GB, free: 13.5 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002738/0.101, allocations: 105.5 kB / 0.5254 GB, free: 13.39 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003699/0.1014, allocations: 211.1 kB / 0.5256 GB, free: 13.18 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003334/0.1017, allocations: 218.9 kB / 0.5259 GB, free: 12.97 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.355e-05/0.1018, allocations: 40 kB / 0.5259 GB, free: 12.93 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.882e-05/0.1019, allocations: 36 kB / 0.5259 GB, free: 12.89 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001624/0.102, allocations: 103.5 kB / 0.526 GB, free: 12.79 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002324/0.1023, allocations: 226.7 kB / 0.5262 GB, free: 12.57 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005773/0.1028, allocations: 437.9 kB / 0.5267 GB, free: 12.14 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.1028, allocations: 0 / 0.5267 GB, free: 12.14 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1028, allocations: 0 / 0.5267 GB, free: 12.14 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.494e-06/0.1028, allocations: 3.938 kB / 0.5267 GB, free: 12.14 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: 77 * Number of variables: 77 Notification: Performance of Generate backend data structure: time 0.001473/0.1043, allocations: 0.8057 MB / 0.5275 GB, free: 11.28 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.705e-05/0.1044, allocations: 15.89 kB / 0.5275 GB, free: 11.27 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.892e-05/0.1044, allocations: 70.72 kB / 0.5275 GB, free: 11.19 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001384/0.1046, allocations: 56.61 kB / 0.5276 GB, free: 11.13 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005841/0.1052, allocations: 374.4 kB / 0.5279 GB, free: 10.73 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.728e-05/0.1052, allocations: 29.03 kB / 0.528 GB, free: 10.7 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.956e-05/0.1053, allocations: 44.31 kB / 0.528 GB, free: 10.66 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005574/0.1058, allocations: 318 kB / 0.5283 GB, free: 10.33 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.792e-05/0.1058, allocations: 4 kB / 0.5283 GB, free: 10.32 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.916e-05/0.1059, allocations: 12 kB / 0.5283 GB, free: 10.31 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.346e-06/0.1059, allocations: 4 kB / 0.5283 GB, free: 10.31 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004201/0.1063, allocations: 214.4 kB / 0.5285 GB, free: 10.1 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00187/0.1082, allocations: 1.168 MB / 0.5297 GB, free: 8.859 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005052/0.1087, allocations: 247.6 kB / 0.5299 GB, free: 8.609 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002201/0.1089, allocations: 125.2 kB / 0.53 GB, free: 8.484 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.503e-05/0.1089, allocations: 288 / 0.53 GB, free: 8.484 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.851e-05/0.1089, allocations: 34.84 kB / 0.5301 GB, free: 8.441 MB / 398.1 MB Notification: Performance of pre-optimization done (n=33): time 1.103e-06/0.1089, allocations: 0 / 0.5301 GB, free: 8.441 MB / 398.1 MB Notification: Performance of matching and sorting (n=35): time 0.002224/0.1112, allocations: 1.096 MB / 0.5311 GB, free: 7.258 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.478e-05/0.1112, allocations: 55.41 kB / 0.5312 GB, free: 7.191 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004422/0.1117, allocations: 385.5 kB / 0.5316 GB, free: 6.809 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.185e-05/0.1117, allocations: 33.7 kB / 0.5316 GB, free: 6.77 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001801/0.1119, allocations: 228.8 kB / 0.5318 GB, free: 6.543 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001164/0.112, allocations: 131.2 kB / 0.5319 GB, free: 6.414 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000106/0.1121, allocations: 70.14 kB / 0.532 GB, free: 6.34 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001721/0.1123, allocations: 350.8 kB / 0.5323 GB, free: 5.988 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002044/0.1125, allocations: 100.8 kB / 0.5324 GB, free: 5.891 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002259/0.1127, allocations: 140.6 kB / 0.5326 GB, free: 5.742 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004496/0.1131, allocations: 260 kB / 0.5328 GB, free: 5.473 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.243e-06/0.1131, allocations: 0 / 0.5328 GB, free: 5.473 MB / 398.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006008/0.1137, allocations: 345.1 kB / 0.5331 GB, free: 5.129 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.498e-05/0.1138, allocations: 4 kB / 0.5332 GB, free: 5.125 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.004e-06/0.1138, allocations: 4 kB / 0.5332 GB, free: 5.121 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.707e-05/0.1138, allocations: 4 kB / 0.5332 GB, free: 5.117 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007541/0.1145, allocations: 152 kB / 0.5333 GB, free: 4.969 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0013/0.1158, allocations: 1.433 MB / 0.5347 GB, free: 3.395 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002532/0.1161, allocations: 16.02 kB / 0.5347 GB, free: 3.379 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.191e-05/0.1161, allocations: 12 kB / 0.5347 GB, free: 3.367 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (48): * Single equations (assignments): 47 * 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.0001816/0.1163, allocations: 158.6 kB / 0.5349 GB, free: 3.203 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.868e-05/0.1164, allocations: 51.78 kB / 0.5349 GB, free: 3.152 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005652/0.1169, allocations: 314 kB / 0.5352 GB, free: 2.84 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.929e-06/0.117, allocations: 4 kB / 0.5352 GB, free: 2.836 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.412e-06/0.117, allocations: 0 / 0.5352 GB, free: 2.836 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-06/0.117, allocations: 0 / 0.5352 GB, free: 2.836 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001196/0.1182, allocations: 0.7914 MB / 0.536 GB, free: 1.988 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.1182, allocations: 0 / 0.536 GB, free: 1.988 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004246/0.1186, allocations: 79.91 kB / 0.5361 GB, free: 1.91 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.545e-06/0.1186, allocations: 4 kB / 0.5361 GB, free: 1.906 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.628e-05/0.1186, allocations: 15.92 kB / 0.5361 GB, free: 1.891 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.073e-06/0.1186, allocations: 0 / 0.5361 GB, free: 1.891 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.1186, allocations: 3.938 kB / 0.5361 GB, free: 1.887 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007521/0.1194, allocations: 0.509 MB / 0.5366 GB, free: 1.359 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001695/0.1195, allocations: 140.8 kB / 0.5367 GB, free: 1.203 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.893e-05/0.1196, allocations: 8 kB / 0.5367 GB, free: 1.195 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002311/0.1198, allocations: 19.95 kB / 0.5368 GB, free: 1.176 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.444e-05/0.1199, allocations: 19.95 kB / 0.5368 GB, free: 1.156 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.839e-05/0.1199, allocations: 12 kB / 0.5368 GB, free: 1.145 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002973/0.1202, allocations: 263.2 kB / 0.537 GB, free: 0.8867 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1202, allocations: 0 / 0.537 GB, free: 0.8867 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003654/0.1205, allocations: 91.94 kB / 0.5371 GB, free: 0.7969 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 9 (gen_a.phi,gen_a.omega_m,gen_a.omega_e_filt,gen_b.phi,gen_b.omega_m,gen_b.omega_e_filt,torqueGen_a.y,torqueGen_b.y,secondaryController.powerOffset) * 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 (36): * Single equations (assignments): 36 * 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.001116/0.1217, allocations: 1.053 MB / 0.5382 GB, free: 15.71 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0006932/0.1224, allocations: 268.2 kB / 0.5384 GB, free: 15.45 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.1224, allocations: 4 kB / 0.5384 GB, free: 15.45 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002582/0.1226, allocations: 123.8 kB / 0.5385 GB, free: 15.33 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005088/0.1231, allocations: 79.05 kB / 0.5386 GB, free: 15.25 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005622/0.1288, allocations: 4.007 MB / 0.5425 GB, free: 11.14 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004936/0.1292, allocations: 0.8313 MB / 0.5433 GB, free: 10.29 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001844/0.1294, allocations: 47.25 kB / 0.5434 GB, free: 10.23 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002383/0.1297, allocations: 147.4 kB / 0.5435 GB, free: 10.09 MB / 414.1 MB Notification: Performance of SimCode: time 5.01e-07/0.1297, allocations: 3.938 kB / 0.5435 GB, free: 10.09 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03521/0.1649, allocations: 8.677 MB / 0.552 GB, free: 1.352 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.816/8.981, allocations: 12 kB / 0.552 GB, free: 1.34 MB / 414.1 MB " [Timeout remaining time 651] (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical7_fmu --startTime=0 --stopTime=300 --stepSize=0.12 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical7.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.845202169381082] Failed to read output from testmodel.py, exit status != 0: 9.056159893982112 9.071835569 8.966058613 Calling exit ...