Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.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.001312/0.001312, allocations: 120.8 kB / 17.74 MB, free: 5.332 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.452/1.452, allocations: 205.1 MB / 228.6 MB, free: 4.461 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: 48.83 MB / 326.8 MB, free: 3.949 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.TestElectrical4,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical4",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical4,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical4",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.0022/0.0022, allocations: 63.81 kB / 458.7 MB, free: 124 kB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2369/0.2391, allocations: 59.15 MB / 0.5058 GB, free: 16.81 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical4): time 0.002443/0.2416, allocations: 2.273 MB / 0.508 GB, free: 14.52 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007818/0.2424, allocations: 0.6631 MB / 0.5086 GB, free: 13.85 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001076/0.2425, allocations: 4 kB / 0.5086 GB, free: 13.85 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001117/0.2426, allocations: 35.59 kB / 0.5087 GB, free: 13.81 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001939/0.2428, allocations: 79.33 kB / 0.5087 GB, free: 13.73 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001415/0.243, allocations: 63.88 kB / 0.5088 GB, free: 13.67 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002109/0.2432, allocations: 274.8 kB / 0.5091 GB, free: 13.4 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001341/0.2433, allocations: 68.69 kB / 0.5091 GB, free: 13.33 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001144/0.2435, allocations: 107.5 kB / 0.5092 GB, free: 13.23 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00014/0.2436, allocations: 115.4 kB / 0.5093 GB, free: 13.11 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.982e-05/0.2437, allocations: 16 kB / 0.5093 GB, free: 13.1 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.314e-05/0.2437, allocations: 20 kB / 0.5094 GB, free: 13.08 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.478e-05/0.2438, allocations: 51.75 kB / 0.5094 GB, free: 13.03 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 7.782e-05/0.2438, allocations: 119.3 kB / 0.5095 GB, free: 12.91 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002173/0.2441, allocations: 222 kB / 0.5097 GB, free: 12.7 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.506e-06/0.2441, allocations: 4 kB / 0.5097 GB, free: 12.7 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.2441, allocations: 0 / 0.5097 GB, free: 12.7 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.959e-06/0.2441, allocations: 0 / 0.5097 GB, free: 12.7 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: 37 * Number of variables: 37 Notification: Performance of Generate backend data structure: time 0.0006751/0.2448, allocations: 0.5605 MB / 0.5103 GB, free: 12.09 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.36e-05/0.2448, allocations: 19.89 kB / 0.5103 GB, free: 12.07 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.435e-05/0.2449, allocations: 50.73 kB / 0.5104 GB, free: 12.01 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.036e-05/0.2449, allocations: 32.69 kB / 0.5104 GB, free: 11.98 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002428/0.2452, allocations: 274.9 kB / 0.5107 GB, free: 11.67 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.253e-05/0.2452, allocations: 8.375 kB / 0.5107 GB, free: 11.66 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.272e-05/0.2453, allocations: 20.38 kB / 0.5107 GB, free: 11.64 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002679/0.2455, allocations: 171.2 kB / 0.5108 GB, free: 11.46 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.362e-05/0.2456, allocations: 8 kB / 0.5109 GB, free: 11.46 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.459e-05/0.2456, allocations: 4 kB / 0.5109 GB, free: 11.45 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.566e-06/0.2456, allocations: 4 kB / 0.5109 GB, free: 11.45 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000229/0.2458, allocations: 119.8 kB / 0.511 GB, free: 11.33 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000705/0.2465, allocations: 0.6464 MB / 0.5116 GB, free: 10.62 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002099/0.2468, allocations: 142.4 kB / 0.5117 GB, free: 10.48 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000121/0.2469, allocations: 76.86 kB / 0.5118 GB, free: 10.4 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.179e-05/0.2469, allocations: 4 kB / 0.5118 GB, free: 10.39 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.422e-05/0.2469, allocations: 34.56 kB / 0.5119 GB, free: 10.35 MB / 382.1 MB Notification: Performance of pre-optimization done (n=17): time 1.162e-06/0.2469, allocations: 0 / 0.5119 GB, free: 10.35 MB / 382.1 MB Notification: Performance of matching and sorting (n=18): time 0.0008831/0.2478, allocations: 0.5468 MB / 0.5124 GB, free: 9.754 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.867e-05/0.2479, allocations: 55.41 kB / 0.5124 GB, free: 9.688 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001572/0.248, allocations: 233 kB / 0.5127 GB, free: 9.449 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.131e-05/0.248, allocations: 37.64 kB / 0.5127 GB, free: 9.406 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.254e-05/0.2481, allocations: 148.4 kB / 0.5128 GB, free: 9.258 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.893e-05/0.2481, allocations: 71.38 kB / 0.5129 GB, free: 9.188 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.873e-05/0.2482, allocations: 37.7 kB / 0.5129 GB, free: 9.145 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.508e-05/0.2482, allocations: 338.8 kB / 0.5133 GB, free: 8.805 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001091/0.2484, allocations: 51.98 kB / 0.5133 GB, free: 8.754 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001087/0.2485, allocations: 73.67 kB / 0.5134 GB, free: 8.676 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002136/0.2487, allocations: 137.7 kB / 0.5135 GB, free: 8.535 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.41e-07/0.2487, allocations: 0 / 0.5135 GB, free: 8.535 MB / 382.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002844/0.249, allocations: 189.4 kB / 0.5137 GB, free: 8.344 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.275e-05/0.249, allocations: 9.25 kB / 0.5137 GB, free: 8.336 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.108e-06/0.249, allocations: 0 / 0.5137 GB, free: 8.336 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.26e-05/0.249, allocations: 4.031 kB / 0.5137 GB, free: 8.332 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003607/0.2494, allocations: 75.89 kB / 0.5138 GB, free: 8.258 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006936/0.2501, allocations: 1.441 MB / 0.5152 GB, free: 6.672 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000125/0.2502, allocations: 11.98 kB / 0.5152 GB, free: 6.66 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.17e-05/0.2503, allocations: 8 kB / 0.5152 GB, free: 6.652 MB / 382.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * Single equations (assignments): 23 * 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 8.1e-05/0.2503, allocations: 133.8 kB / 0.5153 GB, free: 6.512 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.87e-05/0.2504, allocations: 31.81 kB / 0.5154 GB, free: 6.48 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002785/0.2507, allocations: 179.7 kB / 0.5155 GB, free: 6.297 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-06/0.2507, allocations: 4 kB / 0.5155 GB, free: 6.293 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.092e-06/0.2507, allocations: 0 / 0.5155 GB, free: 6.293 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.426e-06/0.2507, allocations: 0 / 0.5155 GB, free: 6.293 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005291/0.2512, allocations: 0.5348 MB / 0.5161 GB, free: 5.703 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.714e-06/0.2512, allocations: 4 kB / 0.5161 GB, free: 5.699 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002039/0.2515, allocations: 35.98 kB / 0.5161 GB, free: 5.664 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.146e-06/0.2515, allocations: 7.938 kB / 0.5161 GB, free: 5.656 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.242e-05/0.2515, allocations: 7.938 kB / 0.5161 GB, free: 5.648 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.274e-06/0.2515, allocations: 3.984 kB / 0.5161 GB, free: 5.645 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.72e-07/0.2515, allocations: 0 / 0.5161 GB, free: 5.645 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003782/0.2519, allocations: 355.4 kB / 0.5165 GB, free: 5.281 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.811e-05/0.2519, allocations: 105 kB / 0.5166 GB, free: 5.16 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.631e-05/0.252, allocations: 8 kB / 0.5166 GB, free: 5.152 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001443/0.2521, allocations: 11.98 kB / 0.5166 GB, free: 5.141 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.524e-05/0.2522, allocations: 7.984 kB / 0.5166 GB, free: 5.133 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.256e-06/0.2522, allocations: 4 kB / 0.5166 GB, free: 5.129 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000107/0.2523, allocations: 168.5 kB / 0.5168 GB, free: 4.965 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2523, allocations: 4 kB / 0.5168 GB, free: 4.961 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002679/0.2526, allocations: 40 kB / 0.5168 GB, free: 4.922 MB / 382.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: 0 () * 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.0005079/0.2531, allocations: 0.8723 MB / 0.5176 GB, free: 4.023 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000458/0.2536, allocations: 172 kB / 0.5178 GB, free: 3.855 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.063e-06/0.2536, allocations: 0 / 0.5178 GB, free: 3.855 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001216/0.2537, allocations: 71.91 kB / 0.5179 GB, free: 3.785 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003544/0.2541, allocations: 44.36 kB / 0.5179 GB, free: 3.742 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002342/0.2564, allocations: 2.563 MB / 0.5204 GB, free: 1.094 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001349/0.2566, allocations: 0.756 MB / 0.5212 GB, free: 316 kB / 382.1 MB Notification: Performance of simCode: alias equations: time 8.814e-05/0.2567, allocations: 29.52 kB / 0.5212 GB, free: 284 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000102/0.2568, allocations: 83.41 kB / 0.5213 GB, free: 200 kB / 382.1 MB Notification: Performance of SimCode: time 3.4e-07/0.2568, allocations: 0 / 0.5213 GB, free: 200 kB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0305/0.2873, allocations: 4.961 MB / 0.5261 GB, free: 11.18 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.146/8.433, allocations: 11.98 kB / 0.5261 GB, free: 11.17 MB / 398.1 MB " [Timeout remaining time 651] (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.sim & python3 -m fmpy simulate --output-file ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical4.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.268795202951878] Failed to read output from testmodel.py, exit status != 0: 8.503429178032093 8.51842299 8.271550525 Calling exit ...