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.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.0008605/0.0008605, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 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.0008089/0.0008089, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 18.57 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 0.8668/0.8668, allocations: 158.6 MB / 185.7 MB, free: 3.039 MB / 170.7 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.1786/0.1786, allocations: 36.35 MB / 274.3 MB, free: 10.89 MB / 266.7 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.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: Performance of FrontEnd - loaded program: time 1.042e-06/1.042e-06, allocations: 0 / 414.3 MB, free: 6.094 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.062e-05/1.166e-05, allocations: 6.219 kB / 414.3 MB, free: 6.086 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical4): time 0.002141/0.002152, allocations: 2.157 MB / 416.5 MB, free: 3.914 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.000768/0.00292, allocations: 0.6316 MB / 417.1 MB, free: 3.273 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001007/0.003021, allocations: 11.94 kB / 417.1 MB, free: 3.262 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001137/0.003135, allocations: 27.66 kB / 417.2 MB, free: 3.234 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001922/0.003327, allocations: 87.27 kB / 417.2 MB, free: 3.148 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000135/0.003462, allocations: 59.86 kB / 417.3 MB, free: 3.09 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002399/0.003702, allocations: 286.5 kB / 417.6 MB, free: 2.809 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001317/0.003833, allocations: 48.89 kB / 417.6 MB, free: 2.758 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001559/0.003989, allocations: 159.6 kB / 417.8 MB, free: 2.602 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001063/0.004096, allocations: 83.72 kB / 417.9 MB, free: 2.52 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 2.466e-05/0.00412, allocations: 16 kB / 417.9 MB, free: 2.504 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.972e-05/0.00417, allocations: 20 kB / 417.9 MB, free: 2.484 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 3.135e-05/0.004201, allocations: 51.75 kB / 418 MB, free: 2.434 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 6.033e-05/0.004262, allocations: 79.77 kB / 418 MB, free: 2.355 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000211/0.004473, allocations: 223.2 kB / 418.2 MB, free: 2.137 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.694e-06/0.004474, allocations: 0 / 418.2 MB, free: 2.137 MB / 346.7 MB Notification: Performance of FrontEnd: time 9.22e-07/0.004475, allocations: 0 / 418.2 MB, free: 2.137 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.409e-06/0.00448, allocations: 4 kB / 418.3 MB, free: 2.133 MB / 346.7 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.0005965/0.005076, allocations: 496.8 kB / 418.7 MB, free: 1.617 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.291e-05/0.005109, allocations: 8.031 kB / 418.7 MB, free: 1.609 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.633e-05/0.005145, allocations: 54.73 kB / 418.8 MB, free: 1.547 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.57e-05/0.005211, allocations: 32.69 kB / 418.8 MB, free: 1.516 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002298/0.005441, allocations: 204.8 kB / 419 MB, free: 1.285 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.228e-05/0.005453, allocations: 16.38 kB / 419 MB, free: 1.27 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.95e-05/0.005513, allocations: 24.33 kB / 419.1 MB, free: 1.246 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002191/0.005732, allocations: 163.9 kB / 419.2 MB, free: 1.074 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.085e-05/0.005743, allocations: 192 / 419.2 MB, free: 1.074 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.341e-05/0.005756, allocations: 12.12 kB / 419.2 MB, free: 1.062 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.231e-06/0.005762, allocations: 4 kB / 419.2 MB, free: 1.059 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001686/0.005931, allocations: 119.8 kB / 419.4 MB, free: 0.9414 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005906/0.006522, allocations: 0.5425 MB / 419.9 MB, free: 360 kB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002311/0.006753, allocations: 134.4 kB / 420 MB, free: 216 kB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.353e-05/0.006836, allocations: 68.83 kB / 420.1 MB, free: 144 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.697e-05/0.006853, allocations: 4 kB / 420.1 MB, free: 140 kB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.985e-05/0.006873, allocations: 42.48 kB / 420.2 MB, free: 88 kB / 346.7 MB Notification: Performance of pre-optimization done (n=17): time 1.102e-06/0.006874, allocations: 0 / 420.2 MB, free: 88 kB / 346.7 MB Notification: Performance of matching and sorting (n=18): time 0.000689/0.007563, allocations: 491.8 kB / 420.6 MB, free: 15.57 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.583e-05/0.007589, allocations: 59.39 kB / 420.7 MB, free: 15.5 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001618/0.007751, allocations: 229.9 kB / 420.9 MB, free: 15.27 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.5e-05/0.007766, allocations: 29.7 kB / 420.9 MB, free: 15.23 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.712e-05/0.007833, allocations: 144.6 kB / 421.1 MB, free: 15.09 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.698e-05/0.00787, allocations: 71.42 kB / 421.2 MB, free: 15.02 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.517e-05/0.007915, allocations: 41.66 kB / 421.2 MB, free: 14.97 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.786e-05/0.007993, allocations: 338.8 kB / 421.5 MB, free: 14.63 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.554e-05/0.008068, allocations: 55.97 kB / 421.6 MB, free: 14.58 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.132e-05/0.00815, allocations: 77.41 kB / 421.7 MB, free: 14.5 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002719/0.008422, allocations: 125.7 kB / 421.8 MB, free: 14.37 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.383e-06/0.008423, allocations: 0 / 421.8 MB, free: 14.37 MB / 362.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002187/0.008642, allocations: 201.2 kB / 422 MB, free: 14.16 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.17e-05/0.008653, allocations: 4.031 kB / 422 MB, free: 14.16 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.619e-06/0.008658, allocations: 7.938 kB / 422 MB, free: 14.15 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.111e-05/0.008669, allocations: 4 kB / 422 MB, free: 14.15 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002198/0.008889, allocations: 71.88 kB / 422.1 MB, free: 14.08 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006938/0.009583, allocations: 1.33 MB / 423.4 MB, free: 12.63 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.036e-05/0.009653, allocations: 16.2 kB / 423.4 MB, free: 12.62 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.837e-06/0.009662, allocations: 8 kB / 423.4 MB, free: 12.61 MB / 362.7 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.394e-05/0.009746, allocations: 133.8 kB / 423.5 MB, free: 12.47 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.367e-05/0.00977, allocations: 19.86 kB / 423.6 MB, free: 12.45 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001955/0.009965, allocations: 183.7 kB / 423.7 MB, free: 12.27 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.242e-06/0.009966, allocations: 0 / 423.7 MB, free: 12.27 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.354e-06/0.009969, allocations: 7.938 kB / 423.8 MB, free: 12.26 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.009972, allocations: 0 / 423.8 MB, free: 12.26 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004288/0.0104, allocations: 493.5 kB / 424.2 MB, free: 11.73 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/0.0104, allocations: 4 kB / 424.2 MB, free: 11.72 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001247/0.01053, allocations: 43.97 kB / 424.3 MB, free: 11.68 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.505e-06/0.01053, allocations: 3.938 kB / 424.3 MB, free: 11.68 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.032e-05/0.01054, allocations: 8 kB / 424.3 MB, free: 11.67 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.01054, allocations: 0 / 424.3 MB, free: 11.67 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.01054, allocations: 0 / 424.3 MB, free: 11.67 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00028/0.01082, allocations: 347.7 kB / 424.6 MB, free: 11.31 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.725e-05/0.01087, allocations: 35.88 kB / 424.7 MB, free: 11.28 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.519e-05/0.01088, allocations: 7.938 kB / 424.7 MB, free: 11.27 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.545e-05/0.01095, allocations: 4 kB / 424.7 MB, free: 11.27 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.584e-05/0.01099, allocations: 19.97 kB / 424.7 MB, free: 11.25 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.36e-06/0.01099, allocations: 4 kB / 424.7 MB, free: 11.24 MB / 362.7 MB Notification: Performance of sorting global known variables: time 9.706e-05/0.01109, allocations: 165.2 kB / 424.9 MB, free: 11.08 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01109, allocations: 0 / 424.9 MB, free: 11.08 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001793/0.01127, allocations: 48 kB / 424.9 MB, free: 11.03 MB / 362.7 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.0007506/0.01202, allocations: 0.8723 MB / 425.8 MB, free: 10.13 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00031/0.01233, allocations: 163.8 kB / 425.9 MB, free: 9.969 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.654e-06/0.01233, allocations: 0 / 425.9 MB, free: 9.969 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 8.034e-05/0.01241, allocations: 72.48 kB / 426 MB, free: 9.898 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002332/0.01264, allocations: 36.83 kB / 426 MB, free: 9.863 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001948/0.01459, allocations: 2.502 MB / 428.5 MB, free: 7.27 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.28e-05/0.01467, allocations: 147.1 kB / 428.7 MB, free: 7.105 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 6.745e-05/0.01474, allocations: 25.62 kB / 428.7 MB, free: 7.082 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.881e-05/0.01483, allocations: 76.48 kB / 428.8 MB, free: 7.008 MB / 362.7 MB Notification: Performance of SimCode: time 4.7e-07/0.01483, allocations: 0 / 428.8 MB, free: 7.008 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02806/0.0429, allocations: 5.821 MB / 434.6 MB, free: 1.133 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.017/7.06, allocations: 11.91 kB / 434.6 MB, free: 1.121 MB / 362.7 MB " [Timeout remaining time 653] (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: 9.095064011402428] Failed to read output from testmodel.py, exit status != 0: 7.144153288565576 7.160413646 7.153185798 Calling exit ...