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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001422/0.001422, allocations: 124.5 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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001414/0.001414, allocations: 207.2 kB / 20.75 MB, free: 2.316 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.4/1.4, allocations: 207.6 MB / 231.1 MB, free: 4.102 MB / 174.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower master/package.mo): time 0.3773/0.3773, allocations: 49.51 MB / 332.5 MB, free: 0.7461 MB / 254.1 MB " [Timeout remaining time 180] Using package ThermoPower with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002056/0.002056, allocations: 69.27 kB / 470.8 MB, free: 41.08 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1013/0.1034, allocations: 62.34 MB / 0.5206 GB, free: 2.352 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical7): time 0.003558/0.107, allocations: 3.167 MB / 0.5237 GB, free: 15.16 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001556/0.1085, allocations: 0.8305 MB / 0.5245 GB, free: 14.32 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001716/0.1087, allocations: 11.94 kB / 0.5246 GB, free: 14.3 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001791/0.1089, allocations: 59.31 kB / 0.5246 GB, free: 14.25 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003801/0.1092, allocations: 162.7 kB / 0.5248 GB, free: 14.09 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002659/0.1095, allocations: 123.8 kB / 0.5249 GB, free: 13.96 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005663/0.1101, allocations: 0.5256 MB / 0.5254 GB, free: 13.44 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002293/0.1103, allocations: 105.5 kB / 0.5255 GB, free: 13.33 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002518/0.1106, allocations: 215.1 kB / 0.5257 GB, free: 13.12 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002828/0.1108, allocations: 218.9 kB / 0.5259 GB, free: 12.9 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.084e-05/0.1109, allocations: 43.94 kB / 0.526 GB, free: 12.86 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.912e-05/0.111, allocations: 36 kB / 0.526 GB, free: 12.82 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.166e-05/0.1111, allocations: 95.59 kB / 0.5261 GB, free: 12.73 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002028/0.1113, allocations: 230.7 kB / 0.5263 GB, free: 12.5 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005085/0.1118, allocations: 441.8 kB / 0.5267 GB, free: 12.07 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.808e-06/0.1118, allocations: 0 / 0.5267 GB, free: 12.07 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.1118, allocations: 0 / 0.5267 GB, free: 12.07 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.864e-06/0.1118, allocations: 0 / 0.5267 GB, free: 12.07 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.00142/0.1132, allocations: 0.8018 MB / 0.5275 GB, free: 11.22 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.58e-05/0.1133, allocations: 11.89 kB / 0.5275 GB, free: 11.21 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.23e-05/0.1133, allocations: 74.72 kB / 0.5276 GB, free: 11.12 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001296/0.1135, allocations: 56.61 kB / 0.5276 GB, free: 11.07 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005427/0.114, allocations: 374.4 kB / 0.528 GB, free: 10.66 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.284e-05/0.114, allocations: 21.03 kB / 0.528 GB, free: 10.64 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.061e-05/0.1141, allocations: 48.31 kB / 0.5281 GB, free: 10.6 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005344/0.1146, allocations: 318 kB / 0.5284 GB, free: 10.27 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.069e-05/0.1147, allocations: 8 kB / 0.5284 GB, free: 10.26 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.775e-05/0.1147, allocations: 8 kB / 0.5284 GB, free: 10.25 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.129e-05/0.1147, allocations: 8 kB / 0.5284 GB, free: 10.25 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004125/0.1151, allocations: 214.4 kB / 0.5286 GB, free: 10.04 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001799/0.1169, allocations: 1.176 MB / 0.5297 GB, free: 8.789 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005101/0.1174, allocations: 247.6 kB / 0.53 GB, free: 8.539 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002201/0.1176, allocations: 117.4 kB / 0.5301 GB, free: 8.422 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.611e-05/0.1177, allocations: 4.281 kB / 0.5301 GB, free: 8.418 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.261e-05/0.1177, allocations: 34.84 kB / 0.5301 GB, free: 8.375 MB / 398.1 MB Notification: Performance of pre-optimization done (n=33): time 1.363e-06/0.1177, allocations: 0 / 0.5301 GB, free: 8.375 MB / 398.1 MB Notification: Performance of matching and sorting (n=35): time 0.00219/0.1199, allocations: 1.093 MB / 0.5312 GB, free: 7.195 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.146e-05/0.1199, allocations: 59.39 kB / 0.5313 GB, free: 7.125 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004215/0.1204, allocations: 385.5 kB / 0.5316 GB, free: 6.742 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.028e-05/0.1204, allocations: 33.7 kB / 0.5317 GB, free: 6.703 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001776/0.1206, allocations: 224.9 kB / 0.5319 GB, free: 6.48 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001148/0.1207, allocations: 135.2 kB / 0.532 GB, free: 6.348 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001062/0.1208, allocations: 70.14 kB / 0.5321 GB, free: 6.273 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001878/0.121, allocations: 350.8 kB / 0.5324 GB, free: 5.922 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001911/0.1212, allocations: 96.83 kB / 0.5325 GB, free: 5.828 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002266/0.1214, allocations: 140.6 kB / 0.5326 GB, free: 5.68 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000422/0.1218, allocations: 260 kB / 0.5329 GB, free: 5.41 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.112e-06/0.1218, allocations: 0 / 0.5329 GB, free: 5.41 MB / 398.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0005625/0.1224, allocations: 349.1 kB / 0.5332 GB, free: 5.062 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.619e-05/0.1224, allocations: 4 kB / 0.5332 GB, free: 5.059 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.741e-06/0.1224, allocations: 0 / 0.5332 GB, free: 5.059 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.628e-05/0.1224, allocations: 4 kB / 0.5332 GB, free: 5.055 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007582/0.1232, allocations: 152 kB / 0.5334 GB, free: 4.906 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001297/0.1245, allocations: 1.441 MB / 0.5348 GB, free: 3.324 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002344/0.1247, allocations: 15.98 kB / 0.5348 GB, free: 3.309 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.236e-05/0.1247, allocations: 8 kB / 0.5348 GB, free: 3.301 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.0001777/0.1249, allocations: 149.8 kB / 0.5349 GB, free: 3.145 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.426e-05/0.125, allocations: 55.78 kB / 0.535 GB, free: 3.09 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005554/0.1255, allocations: 314 kB / 0.5353 GB, free: 2.777 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.005e-06/0.1255, allocations: 4 kB / 0.5353 GB, free: 2.773 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.202e-06/0.1256, allocations: 0 / 0.5353 GB, free: 2.773 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.699e-06/0.1256, allocations: 7.938 kB / 0.5353 GB, free: 2.766 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001151/0.1267, allocations: 0.7875 MB / 0.5361 GB, free: 1.922 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.954e-06/0.1267, allocations: 0 / 0.5361 GB, free: 1.922 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004049/0.1271, allocations: 79.91 kB / 0.5361 GB, free: 1.844 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.061e-06/0.1271, allocations: 8 kB / 0.5361 GB, free: 1.836 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.487e-05/0.1271, allocations: 7.984 kB / 0.5362 GB, free: 1.828 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.008e-06/0.1271, allocations: 4 kB / 0.5362 GB, free: 1.824 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.1271, allocations: 0 / 0.5362 GB, free: 1.824 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007317/0.1279, allocations: 0.509 MB / 0.5367 GB, free: 1.297 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001492/0.128, allocations: 140.8 kB / 0.5368 GB, free: 1.141 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.253e-05/0.1281, allocations: 4 kB / 0.5368 GB, free: 1.137 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002261/0.1283, allocations: 23.94 kB / 0.5368 GB, free: 1.113 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.909e-05/0.1284, allocations: 23.95 kB / 0.5368 GB, free: 1.09 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.715e-05/0.1284, allocations: 8 kB / 0.5368 GB, free: 1.082 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000295/0.1287, allocations: 267.2 kB / 0.5371 GB, free: 0.8242 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1287, allocations: 0 / 0.5371 GB, free: 0.8242 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003471/0.129, allocations: 91.94 kB / 0.5372 GB, free: 0.7344 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.001073/0.1301, allocations: 1.057 MB / 0.5382 GB, free: 15.65 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000662/0.1308, allocations: 264.1 kB / 0.5385 GB, free: 15.39 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.1308, allocations: 8.188 kB / 0.5385 GB, free: 15.38 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002101/0.131, allocations: 119.9 kB / 0.5386 GB, free: 15.27 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000525/0.1315, allocations: 79.06 kB / 0.5387 GB, free: 15.19 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005412/0.1369, allocations: 3.995 MB / 0.5426 GB, free: 11.09 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000452/0.1374, allocations: 0.8274 MB / 0.5434 GB, free: 10.24 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001687/0.1375, allocations: 47.25 kB / 0.5434 GB, free: 10.19 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002451/0.1378, allocations: 155.4 kB / 0.5436 GB, free: 10.04 MB / 414.1 MB Notification: Performance of SimCode: time 4.5e-07/0.1378, allocations: 0 / 0.5436 GB, free: 10.04 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03432/0.1721, allocations: 8.673 MB / 0.552 GB, free: 1.305 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.404/8.576, allocations: 7.906 kB / 0.5521 GB, free: 1.297 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 & python3 -m fmpy simulate --output-file ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7_res.csv --start-time 0 --stop-time 300 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.12 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical7.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.59528205099923] Failed to read output from testmodel.py, exit status != 0: 8.647182133005117 8.670172306 8.554535002 Calling exit ...