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.00136/0.00136, allocations: 122.4 kB / 17.74 MB, free: 5.219 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.001465/0.001466, allocations: 186.9 kB / 20.68 MB, free: 2.293 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.406/1.406, allocations: 205.1 MB / 228.6 MB, free: 4.426 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.3968/0.3968, allocations: 48.83 MB / 326.8 MB, free: 3.922 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.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.002147/0.002147, allocations: 75.75 kB / 458.7 MB, free: 120 kB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2321/0.2343, allocations: 59.16 MB / 0.5058 GB, free: 16.94 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical7): time 0.002954/0.2372, allocations: 3.135 MB / 0.5088 GB, free: 13.78 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001128/0.2384, allocations: 0.8304 MB / 0.5096 GB, free: 12.94 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001773/0.2386, allocations: 8 kB / 0.5096 GB, free: 12.93 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001559/0.2388, allocations: 63.25 kB / 0.5097 GB, free: 12.87 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002876/0.2391, allocations: 150.7 kB / 0.5098 GB, free: 12.72 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002339/0.2393, allocations: 119.8 kB / 0.51 GB, free: 12.61 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003384/0.2397, allocations: 0.5256 MB / 0.5105 GB, free: 12.08 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001913/0.2399, allocations: 137.5 kB / 0.5106 GB, free: 11.94 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001687/0.24, allocations: 203.1 kB / 0.5108 GB, free: 11.74 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002053/0.2403, allocations: 230.9 kB / 0.511 GB, free: 11.51 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.793e-05/0.2403, allocations: 32 kB / 0.511 GB, free: 11.48 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.506e-05/0.2404, allocations: 40 kB / 0.5111 GB, free: 11.44 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.559e-05/0.2405, allocations: 99.55 kB / 0.5112 GB, free: 11.34 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001311/0.2406, allocations: 230.7 kB / 0.5114 GB, free: 11.12 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003368/0.2409, allocations: 445.2 kB / 0.5118 GB, free: 10.69 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.241, allocations: 3.938 kB / 0.5118 GB, free: 10.68 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.022e-06/0.241, allocations: 0 / 0.5118 GB, free: 10.68 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.313e-06/0.241, allocations: 0 / 0.5118 GB, free: 10.68 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: 77 * Number of variables: 77 Notification: Performance of Generate backend data structure: time 0.001048/0.242, allocations: 0.8019 MB / 0.5126 GB, free: 9.832 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.154e-05/0.2421, allocations: 11.89 kB / 0.5126 GB, free: 9.82 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.071e-05/0.2421, allocations: 70.72 kB / 0.5127 GB, free: 9.742 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001037/0.2422, allocations: 56.61 kB / 0.5127 GB, free: 9.688 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003544/0.2426, allocations: 378.3 kB / 0.5131 GB, free: 9.277 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.72e-05/0.2426, allocations: 25.03 kB / 0.5131 GB, free: 9.254 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.601e-05/0.2427, allocations: 40.33 kB / 0.5132 GB, free: 9.215 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003986/0.2431, allocations: 326 kB / 0.5135 GB, free: 8.879 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.507e-05/0.2431, allocations: 0 / 0.5135 GB, free: 8.879 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.571e-05/0.2431, allocations: 19.98 kB / 0.5135 GB, free: 8.859 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.053e-06/0.2432, allocations: 8 kB / 0.5135 GB, free: 8.852 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003324/0.2435, allocations: 214.4 kB / 0.5137 GB, free: 8.645 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001297/0.2448, allocations: 1.16 MB / 0.5148 GB, free: 7.41 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003816/0.2452, allocations: 259.6 kB / 0.5151 GB, free: 7.148 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000166/0.2454, allocations: 130.4 kB / 0.5152 GB, free: 7.02 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.821e-05/0.2454, allocations: 8.281 kB / 0.5152 GB, free: 7.012 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.423e-05/0.2454, allocations: 34.78 kB / 0.5153 GB, free: 6.969 MB / 382.1 MB Notification: Performance of pre-optimization done (n=33): time 1.443e-06/0.2454, allocations: 0 / 0.5153 GB, free: 6.969 MB / 382.1 MB Notification: Performance of matching and sorting (n=35): time 0.001703/0.2471, allocations: 1.096 MB / 0.5163 GB, free: 5.785 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.391e-05/0.2472, allocations: 59.41 kB / 0.5164 GB, free: 5.715 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000275/0.2475, allocations: 381.5 kB / 0.5167 GB, free: 5.336 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.63e-05/0.2475, allocations: 33.7 kB / 0.5168 GB, free: 5.297 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.461e-05/0.2476, allocations: 224.9 kB / 0.517 GB, free: 5.074 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.423e-05/0.2476, allocations: 130.9 kB / 0.5171 GB, free: 4.945 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.825e-05/0.2477, allocations: 74.12 kB / 0.5172 GB, free: 4.867 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.048e-05/0.2478, allocations: 350.8 kB / 0.5175 GB, free: 4.516 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001497/0.2479, allocations: 92.83 kB / 0.5176 GB, free: 4.426 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001562/0.2481, allocations: 140.6 kB / 0.5177 GB, free: 4.277 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003102/0.2484, allocations: 264 kB / 0.518 GB, free: 4.004 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.172e-06/0.2484, allocations: 0 / 0.518 GB, free: 4.004 MB / 382.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0004269/0.2488, allocations: 345.1 kB / 0.5183 GB, free: 3.66 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.231e-05/0.2489, allocations: 8 kB / 0.5183 GB, free: 3.652 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.2489, allocations: 4.125 kB / 0.5183 GB, free: 3.648 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.537e-05/0.2489, allocations: 7.984 kB / 0.5183 GB, free: 3.641 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006405/0.2495, allocations: 143.8 kB / 0.5185 GB, free: 3.5 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007031/0.2503, allocations: 1.437 MB / 0.5199 GB, free: 1.922 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000256/0.2505, allocations: 19.97 kB / 0.5199 GB, free: 1.902 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.002e-05/0.2506, allocations: 8 kB / 0.5199 GB, free: 1.895 MB / 382.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.0001203/0.2507, allocations: 162.7 kB / 0.5201 GB, free: 1.727 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.728e-05/0.2507, allocations: 47.66 kB / 0.5201 GB, free: 1.68 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004333/0.2512, allocations: 314 kB / 0.5204 GB, free: 1.367 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.517e-06/0.2512, allocations: 4 kB / 0.5204 GB, free: 1.363 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.493e-06/0.2512, allocations: 0 / 0.5204 GB, free: 1.363 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.11e-06/0.2512, allocations: 3.984 kB / 0.5204 GB, free: 1.359 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007955/0.252, allocations: 0.7875 MB / 0.5212 GB, free: 0.5156 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.796e-06/0.252, allocations: 4 kB / 0.5212 GB, free: 0.5117 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003705/0.2524, allocations: 83.89 kB / 0.5213 GB, free: 440 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.825e-06/0.2524, allocations: 0 / 0.5213 GB, free: 440 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.088e-05/0.2524, allocations: 8 kB / 0.5213 GB, free: 432 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.575e-06/0.2524, allocations: 0 / 0.5213 GB, free: 432 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.2525, allocations: 3.938 kB / 0.5213 GB, free: 428 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006131/0.2531, allocations: 0.5168 MB / 0.5218 GB, free: 15.88 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001591/0.2532, allocations: 140.8 kB / 0.5219 GB, free: 15.73 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.571e-05/0.2533, allocations: 8 kB / 0.5219 GB, free: 15.72 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002246/0.2535, allocations: 15.95 kB / 0.5219 GB, free: 15.7 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.277e-05/0.2536, allocations: 15.97 kB / 0.522 GB, free: 15.69 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.106e-05/0.2536, allocations: 12.19 kB / 0.522 GB, free: 15.68 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003018/0.2539, allocations: 267.2 kB / 0.5222 GB, free: 15.41 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2539, allocations: 3.938 kB / 0.5222 GB, free: 15.41 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003559/0.2543, allocations: 87.94 kB / 0.5223 GB, free: 15.32 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.001107/0.2554, allocations: 1.057 MB / 0.5233 GB, free: 14.23 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006949/0.2561, allocations: 292.3 kB / 0.5236 GB, free: 13.95 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.2561, allocations: 0 / 0.5236 GB, free: 13.95 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002215/0.2564, allocations: 127.8 kB / 0.5237 GB, free: 13.82 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005528/0.2569, allocations: 80.09 kB / 0.5238 GB, free: 13.75 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005571/0.2625, allocations: 3.979 MB / 0.5277 GB, free: 9.668 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004919/0.263, allocations: 0.8313 MB / 0.5285 GB, free: 8.812 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000224/0.2632, allocations: 51.23 kB / 0.5286 GB, free: 8.758 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002483/0.2635, allocations: 155.4 kB / 0.5287 GB, free: 8.605 MB / 398.1 MB Notification: Performance of SimCode: time 3.2e-07/0.2635, allocations: 4 kB / 0.5287 GB, free: 8.602 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03447/0.298, allocations: 8.616 MB / 0.5371 GB, free: 15.93 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.75/9.048, allocations: 3.938 kB / 0.5371 GB, free: 15.92 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.895275167073123] Failed to read output from testmodel.py, exit status != 0: 9.121936239069328 9.141775199 8.897265874 Calling exit ...