Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5.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.001574/0.001574, allocations: 124.7 kB / 17.74 MB, free: 5.324 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.001317/0.001317, allocations: 186.9 kB / 20.68 MB, free: 2.402 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.429/1.429, allocations: 205.1 MB / 228.6 MB, free: 4.414 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.3853/0.3853, allocations: 48.84 MB / 326.8 MB, free: 3.922 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.TestElectrical5,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical5",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical5,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical5",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.002287/0.002287, allocations: 75.8 kB / 458.7 MB, free: 104 kB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2347/0.237, allocations: 59.16 MB / 0.5058 GB, free: 16.8 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical5): time 0.002725/0.2398, allocations: 2.643 MB / 0.5083 GB, free: 14.14 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008485/0.2406, allocations: 0.7487 MB / 0.5091 GB, free: 13.38 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00013/0.2408, allocations: 4 kB / 0.5091 GB, free: 13.38 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001315/0.2409, allocations: 51.39 kB / 0.5091 GB, free: 13.32 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002382/0.2412, allocations: 119 kB / 0.5092 GB, free: 13.21 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001677/0.2414, allocations: 87.83 kB / 0.5093 GB, free: 13.12 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002697/0.2416, allocations: 394.2 kB / 0.5097 GB, free: 12.73 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001473/0.2418, allocations: 89.56 kB / 0.5098 GB, free: 12.64 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001378/0.2419, allocations: 151.4 kB / 0.5099 GB, free: 12.5 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001653/0.2421, allocations: 163.1 kB / 0.5101 GB, free: 12.34 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.921e-05/0.2422, allocations: 28 kB / 0.5101 GB, free: 12.31 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.445e-05/0.2422, allocations: 28 kB / 0.5101 GB, free: 12.28 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.316e-05/0.2423, allocations: 67.7 kB / 0.5102 GB, free: 12.21 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000107/0.2424, allocations: 171 kB / 0.5104 GB, free: 12.05 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002628/0.2427, allocations: 333.5 kB / 0.5107 GB, free: 11.73 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.2427, allocations: 0 / 0.5107 GB, free: 11.73 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.2427, allocations: 3.938 kB / 0.5107 GB, free: 11.72 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.081e-06/0.2427, allocations: 0 / 0.5107 GB, free: 11.72 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.0008168/0.2435, allocations: 0.6735 MB / 0.5113 GB, free: 11 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.164e-05/0.2436, allocations: 15.89 kB / 0.5114 GB, free: 10.98 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.853e-05/0.2436, allocations: 54.73 kB / 0.5114 GB, free: 10.92 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.199e-05/0.2437, allocations: 40.7 kB / 0.5114 GB, free: 10.88 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003085/0.244, allocations: 320.2 kB / 0.5118 GB, free: 10.54 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.177e-05/0.244, allocations: 16.81 kB / 0.5118 GB, free: 10.52 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.916e-05/0.2441, allocations: 36.33 kB / 0.5118 GB, free: 10.48 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003358/0.2444, allocations: 238.8 kB / 0.512 GB, free: 10.24 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.501e-05/0.2444, allocations: 0 / 0.512 GB, free: 10.24 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.939e-05/0.2445, allocations: 12 kB / 0.512 GB, free: 10.23 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.512e-06/0.2445, allocations: 11.98 kB / 0.5121 GB, free: 10.21 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000327/0.2448, allocations: 185.5 kB / 0.5122 GB, free: 10.03 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008621/0.2457, allocations: 0.8519 MB / 0.5131 GB, free: 9.117 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002588/0.2459, allocations: 186.6 kB / 0.5132 GB, free: 8.926 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001662/0.2461, allocations: 113.6 kB / 0.5133 GB, free: 8.812 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.431e-05/0.2462, allocations: 4 kB / 0.5134 GB, free: 8.809 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.199e-05/0.2462, allocations: 30.56 kB / 0.5134 GB, free: 8.77 MB / 382.1 MB Notification: Performance of pre-optimization done (n=25): time 1.443e-06/0.2462, allocations: 0 / 0.5134 GB, free: 8.77 MB / 382.1 MB Notification: Performance of matching and sorting (n=27): time 0.001138/0.2473, allocations: 0.7438 MB / 0.5141 GB, free: 7.977 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.078e-05/0.2474, allocations: 63.33 kB / 0.5142 GB, free: 7.902 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002133/0.2476, allocations: 296.5 kB / 0.5145 GB, free: 7.598 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.285e-05/0.2476, allocations: 33.7 kB / 0.5145 GB, free: 7.559 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.971e-05/0.2477, allocations: 180.8 kB / 0.5147 GB, free: 7.379 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.343e-05/0.2477, allocations: 107.1 kB / 0.5148 GB, free: 7.273 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.168e-05/0.2478, allocations: 53.7 kB / 0.5148 GB, free: 7.215 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.24e-05/0.2478, allocations: 342.8 kB / 0.5151 GB, free: 6.871 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001488/0.248, allocations: 71.95 kB / 0.5152 GB, free: 6.801 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001534/0.2482, allocations: 110.8 kB / 0.5153 GB, free: 6.684 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002988/0.2485, allocations: 188.2 kB / 0.5155 GB, free: 6.492 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.323e-06/0.2485, allocations: 0 / 0.5155 GB, free: 6.492 MB / 382.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005229/0.249, allocations: 327.1 kB / 0.5158 GB, free: 6.164 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.129e-05/0.249, allocations: 4 kB / 0.5158 GB, free: 6.16 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.549e-06/0.249, allocations: 0 / 0.5158 GB, free: 6.16 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002525/0.2493, allocations: 56.81 kB / 0.5159 GB, free: 6.102 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003372/0.2496, allocations: 79.95 kB / 0.5159 GB, free: 6.023 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001566/0.2512, allocations: 3.036 MB / 0.5189 GB, free: 2.707 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001827/0.2514, allocations: 19.95 kB / 0.5189 GB, free: 2.688 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.424e-05/0.2514, allocations: 8 kB / 0.5189 GB, free: 2.68 MB / 382.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 (30): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * 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: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 9.98e-05/0.2515, allocations: 145.8 kB / 0.5191 GB, free: 2.527 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.67e-05/0.2516, allocations: 27.81 kB / 0.5191 GB, free: 2.5 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003964/0.252, allocations: 265.3 kB / 0.5193 GB, free: 2.234 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.076e-06/0.252, allocations: 4 kB / 0.5193 GB, free: 2.23 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.152e-06/0.252, allocations: 0 / 0.5193 GB, free: 2.23 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.701e-06/0.252, allocations: 7.922 kB / 0.5194 GB, free: 2.223 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006885/0.2527, allocations: 0.6666 MB / 0.52 GB, free: 1.5 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.865e-06/0.2527, allocations: 0 / 0.52 GB, free: 1.5 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002914/0.253, allocations: 63.91 kB / 0.5201 GB, free: 1.438 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.253, allocations: 3.938 kB / 0.5201 GB, free: 1.434 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.673e-05/0.2531, allocations: 11.94 kB / 0.5201 GB, free: 1.422 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.853e-06/0.2531, allocations: 0 / 0.5201 GB, free: 1.422 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.2531, allocations: 0 / 0.5201 GB, free: 1.422 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005273/0.2536, allocations: 456.7 kB / 0.5205 GB, free: 0.957 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.067e-05/0.2537, allocations: 117 kB / 0.5206 GB, free: 0.8242 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.473e-05/0.2537, allocations: 8.188 kB / 0.5206 GB, free: 0.8164 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000188/0.2539, allocations: 19.98 kB / 0.5207 GB, free: 0.7969 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.574e-05/0.254, allocations: 15.98 kB / 0.5207 GB, free: 0.7812 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.075e-05/0.254, allocations: 8 kB / 0.5207 GB, free: 0.7734 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001459/0.2541, allocations: 215.1 kB / 0.5209 GB, free: 0.5625 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2541, allocations: 0 / 0.5209 GB, free: 0.5625 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003073/0.2545, allocations: 72 kB / 0.521 GB, free: 0.4922 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (gen_a.phi,gen_a.omega_m,gen_a.omega_e_filt,gen_b.phi,gen_b.omega_m,gen_b.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 (28): * Single equations (assignments): 28 * 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.0008468/0.2553, allocations: 0.9854 MB / 0.5219 GB, free: 15.48 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008946/0.2562, allocations: 366.6 kB / 0.5223 GB, free: 15.11 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.2562, allocations: 0 / 0.5223 GB, free: 15.11 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002135/0.2564, allocations: 103.9 kB / 0.5224 GB, free: 15 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004378/0.2569, allocations: 62.75 kB / 0.5224 GB, free: 14.94 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00476/0.2617, allocations: 3.383 MB / 0.5257 GB, free: 11.47 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003938/0.2621, allocations: 0.7837 MB / 0.5265 GB, free: 10.66 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001364/0.2622, allocations: 38.94 kB / 0.5265 GB, free: 10.61 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001766/0.2624, allocations: 115.4 kB / 0.5266 GB, free: 10.5 MB / 398.1 MB Notification: Performance of SimCode: time 4.31e-07/0.2624, allocations: 0 / 0.5266 GB, free: 10.5 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03372/0.2961, allocations: 6.992 MB / 0.5335 GB, free: 3.453 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.39/10.69, allocations: 4.062 kB / 0.5335 GB, free: 3.449 MB / 398.1 MB " [Timeout remaining time 649] (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5.sim & python3 -m fmpy simulate --output-file ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5_res.csv --start-time 0 --stop-time 15 --timeout 50 --relative-tolerance 1e-07 --interface-type ModelExchange --solver CVode --output-interval 0.006 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical5.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 13.49239863094408] Failed to read output from testmodel.py, exit status != 0: 10.774343498982489 10.797574314 10.551053889 Calling exit ...