Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.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.0007903/0.0007903, allocations: 79.7 kB / 20.67 MB, free: 3.895 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.0007612/0.0007612, allocations: 170 kB / 23.95 MB, free: 0.6172 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.816/0.816, allocations: 158.6 MB / 185.7 MB, free: 3.027 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.1778/0.1778, allocations: 36.34 MB / 274.3 MB, free: 10.9 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.TestElectrical6,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical6",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical6,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical6",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.583e-06/1.583e-06, allocations: 0 / 414.3 MB, free: 6.109 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.278e-05/1.437e-05, allocations: 2.281 kB / 414.3 MB, free: 6.105 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical6): time 0.002873/0.002887, allocations: 2.729 MB / 417.1 MB, free: 3.355 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001277/0.004164, allocations: 0.7875 MB / 417.8 MB, free: 2.562 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002114/0.004376, allocations: 7.938 kB / 417.8 MB, free: 2.555 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001491/0.004525, allocations: 59.33 kB / 417.9 MB, free: 2.496 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003236/0.004848, allocations: 146.8 kB / 418 MB, free: 2.352 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002526/0.005101, allocations: 119.7 kB / 418.2 MB, free: 2.234 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004078/0.005509, allocations: 0.5059 MB / 418.7 MB, free: 1.727 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002082/0.005717, allocations: 88.69 kB / 418.8 MB, free: 1.629 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003072/0.006024, allocations: 287.2 kB / 419 MB, free: 1.348 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001514/0.006176, allocations: 147.5 kB / 419.2 MB, free: 1.203 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 3.586e-05/0.006212, allocations: 32 kB / 419.2 MB, free: 1.172 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001195/0.006331, allocations: 32 kB / 419.2 MB, free: 1.141 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 4.569e-05/0.006377, allocations: 87.59 kB / 419.3 MB, free: 1.055 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 9.034e-05/0.006467, allocations: 151.5 kB / 419.5 MB, free: 0.9062 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003685/0.006836, allocations: 398.5 kB / 419.9 MB, free: 0.5156 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.445e-06/0.006838, allocations: 4 kB / 419.9 MB, free: 0.5117 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.783e-06/0.00684, allocations: 4 kB / 419.9 MB, free: 0.5078 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.199e-06/0.006845, allocations: 3.938 kB / 419.9 MB, free: 0.5039 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: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.001328/0.008173, allocations: 0.6799 MB / 420.6 MB, free: 15.79 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.283e-05/0.008216, allocations: 12.03 kB / 420.6 MB, free: 15.78 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.498e-05/0.008261, allocations: 62.67 kB / 420.6 MB, free: 15.71 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.397e-05/0.008345, allocations: 52.61 kB / 420.7 MB, free: 15.66 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003604/0.008706, allocations: 307.8 kB / 421 MB, free: 15.34 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.701e-05/0.008723, allocations: 25.03 kB / 421 MB, free: 15.31 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.281e-05/0.008765, allocations: 32.33 kB / 421 MB, free: 15.28 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003462/0.009112, allocations: 298.5 kB / 421.3 MB, free: 14.97 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.404e-05/0.009126, allocations: 7.875 kB / 421.3 MB, free: 14.96 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.448e-05/0.00915, allocations: 12 kB / 421.4 MB, free: 14.95 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.95e-05/0.00917, allocations: 7.984 kB / 421.4 MB, free: 14.95 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002558/0.009425, allocations: 198.5 kB / 421.6 MB, free: 14.75 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001164/0.01059, allocations: 0.9793 MB / 422.5 MB, free: 13.71 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002845/0.01087, allocations: 219 kB / 422.7 MB, free: 13.49 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001213/0.011, allocations: 120.8 kB / 422.9 MB, free: 13.37 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.873e-05/0.01101, allocations: 0 / 422.9 MB, free: 13.37 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.802e-05/0.01103, allocations: 38.5 kB / 422.9 MB, free: 13.32 MB / 362.7 MB Notification: Performance of pre-optimization done (n=31): time 1.303e-06/0.01103, allocations: 4 kB / 422.9 MB, free: 13.32 MB / 362.7 MB Notification: Performance of matching and sorting (n=33): time 0.001175/0.01221, allocations: 0.797 MB / 423.7 MB, free: 12.49 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.238e-05/0.01224, allocations: 59.34 kB / 423.8 MB, free: 12.42 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003017/0.01254, allocations: 361.7 kB / 424.1 MB, free: 12.05 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.876e-05/0.01257, allocations: 29.7 kB / 424.1 MB, free: 12.02 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001298/0.0127, allocations: 220.6 kB / 424.4 MB, free: 11.8 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.091e-05/0.01276, allocations: 119 kB / 424.5 MB, free: 11.68 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.833e-05/0.01283, allocations: 66.06 kB / 424.5 MB, free: 11.61 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001322/0.01296, allocations: 350.8 kB / 424.9 MB, free: 11.25 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000125/0.01309, allocations: 84.7 kB / 425 MB, free: 11.17 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001367/0.01322, allocations: 141.5 kB / 425.1 MB, free: 11.02 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002944/0.01352, allocations: 243.7 kB / 425.3 MB, free: 10.77 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.01352, allocations: 3.938 kB / 425.3 MB, free: 10.76 MB / 362.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0006145/0.01414, allocations: 417.6 kB / 425.8 MB, free: 10.34 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.224e-05/0.01415, allocations: 8 kB / 425.8 MB, free: 10.34 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.01415, allocations: 0 / 425.8 MB, free: 10.34 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003571/0.01451, allocations: 120.9 kB / 425.9 MB, free: 10.21 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002597/0.01477, allocations: 87.89 kB / 426 MB, free: 10.13 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002477/0.01725, allocations: 3.126 MB / 429.1 MB, free: 6.77 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001254/0.01737, allocations: 20.11 kB / 429.1 MB, free: 6.75 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.682e-05/0.0174, allocations: 12 kB / 429.1 MB, free: 6.738 MB / 362.7 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 (36): * Single equations (assignments): 34 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,9)} Notification: Performance of prepare postOptimizeDAE: time 0.000116/0.01752, allocations: 157.7 kB / 429.3 MB, free: 6.574 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.674e-05/0.01755, allocations: 39.72 kB / 429.3 MB, free: 6.535 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003108/0.01786, allocations: 305.9 kB / 429.6 MB, free: 6.227 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.185e-06/0.01787, allocations: 4 kB / 429.6 MB, free: 6.223 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.012e-06/0.01787, allocations: 0 / 429.6 MB, free: 6.223 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.01787, allocations: 3.984 kB / 429.6 MB, free: 6.219 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006843/0.01855, allocations: 0.6815 MB / 430.3 MB, free: 5.488 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.01856, allocations: 0 / 430.3 MB, free: 5.488 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002068/0.01876, allocations: 75.91 kB / 430.4 MB, free: 5.414 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.01877, allocations: 4 kB / 430.4 MB, free: 5.41 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.461e-05/0.01878, allocations: 11.92 kB / 430.4 MB, free: 5.398 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.01878, allocations: 0 / 430.4 MB, free: 5.398 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.01878, allocations: 7.984 kB / 430.4 MB, free: 5.391 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004111/0.01919, allocations: 0.4889 MB / 430.9 MB, free: 4.887 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.877e-05/0.01927, allocations: 63.62 kB / 430.9 MB, free: 4.824 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.408e-05/0.0193, allocations: 12 kB / 431 MB, free: 4.812 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.886e-05/0.0194, allocations: 11.98 kB / 431 MB, free: 4.801 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.87e-05/0.01946, allocations: 19.97 kB / 431 MB, free: 4.781 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.888e-06/0.01947, allocations: 7.984 kB / 431 MB, free: 4.773 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001585/0.01962, allocations: 259.1 kB / 431.3 MB, free: 4.527 MB / 362.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.01962, allocations: 0 / 431.3 MB, free: 4.527 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002454/0.01987, allocations: 88 kB / 431.3 MB, free: 4.441 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (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) * 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 (34): * Single equations (assignments): 34 * 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.0006028/0.02047, allocations: 1.032 MB / 432.4 MB, free: 3.383 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0006111/0.02108, allocations: 422.2 kB / 432.8 MB, free: 2.957 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.654e-06/0.02108, allocations: 4.188 kB / 432.8 MB, free: 2.953 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001123/0.0212, allocations: 116.5 kB / 432.9 MB, free: 2.84 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003601/0.02156, allocations: 81.44 kB / 433 MB, free: 2.758 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004011/0.02557, allocations: 3.854 MB / 436.8 MB, free: 14.79 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001187/0.02569, allocations: 224.5 kB / 437.1 MB, free: 14.55 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 9.386e-05/0.02578, allocations: 42.94 kB / 437.1 MB, free: 14.51 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001768/0.02596, allocations: 140.5 kB / 437.2 MB, free: 14.37 MB / 378.7 MB Notification: Performance of SimCode: time 7.11e-07/0.02596, allocations: 0 / 437.2 MB, free: 14.37 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02411/0.05007, allocations: 9.568 MB / 446.8 MB, free: 4.746 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.12/8.17, allocations: 15.92 kB / 446.8 MB, free: 4.73 MB / 378.7 MB " [Timeout remaining time 652] (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.sim & python3 -m fmpy simulate --output-file ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6_res.csv --start-time 0 --stop-time 40 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.016 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical6.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 10.27708190586418] Failed to read output from testmodel.py, exit status != 0: 8.260208765976131 8.443050477 8.433371831 Calling exit ...