Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2.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.001194/0.001194, allocations: 79.7 kB / 20.67 MB, free: 3.891 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.0009899/0.0009899, allocations: 174.3 kB / 23.95 MB, free: 0.6133 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.8253/0.8253, allocations: 158.6 MB / 185.7 MB, free: 3.043 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.1843/0.1843, allocations: 36.34 MB / 274.3 MB, free: 10.91 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.TestElectrical2,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical2,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.663e-06/1.663e-06, allocations: 0 / 414.3 MB, free: 6.109 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.126e-05/2.292e-05, allocations: 6.219 kB / 414.3 MB, free: 6.102 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical2): time 0.003035/0.003058, allocations: 2.075 MB / 416.4 MB, free: 4.012 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008449/0.003903, allocations: 0.5967 MB / 417 MB, free: 3.406 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001046/0.004008, allocations: 7.938 kB / 417 MB, free: 3.398 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001208/0.004128, allocations: 27.66 kB / 417 MB, free: 3.371 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001998/0.004328, allocations: 79.33 kB / 417.1 MB, free: 3.293 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001335/0.004462, allocations: 51.94 kB / 417.2 MB, free: 3.242 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002243/0.004686, allocations: 258.7 kB / 417.4 MB, free: 2.988 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001334/0.004819, allocations: 32.58 kB / 417.4 MB, free: 2.953 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001594/0.004979, allocations: 151.5 kB / 417.6 MB, free: 2.805 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001131/0.005092, allocations: 75.72 kB / 417.7 MB, free: 2.73 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 2.825e-05/0.00512, allocations: 16 kB / 417.7 MB, free: 2.715 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.175e-05/0.005172, allocations: 20 kB / 417.7 MB, free: 2.695 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 3.141e-05/0.005203, allocations: 43.77 kB / 417.7 MB, free: 2.652 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 5.535e-05/0.005259, allocations: 71.78 kB / 417.8 MB, free: 2.582 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002234/0.005482, allocations: 187.3 kB / 418 MB, free: 2.398 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.005487, allocations: 4 kB / 418 MB, free: 2.395 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.433e-06/0.005489, allocations: 0 / 418 MB, free: 2.395 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.179e-06/0.005494, allocations: 0 / 418 MB, free: 2.395 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0006234/0.006117, allocations: 473 kB / 418.5 MB, free: 1.902 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.466e-05/0.006162, allocations: 12.03 kB / 418.5 MB, free: 1.891 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.069e-05/0.006203, allocations: 46.73 kB / 418.5 MB, free: 1.836 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.951e-05/0.006282, allocations: 28.75 kB / 418.6 MB, free: 1.809 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000283/0.006565, allocations: 200.8 kB / 418.7 MB, free: 1.582 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.253e-05/0.006578, allocations: 12.31 kB / 418.8 MB, free: 1.57 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.902e-05/0.006607, allocations: 24.34 kB / 418.8 MB, free: 1.547 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002039/0.006811, allocations: 147.9 kB / 418.9 MB, free: 1.391 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.157e-05/0.006822, allocations: 192 / 418.9 MB, free: 1.391 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.507e-05/0.006837, allocations: 16.11 kB / 418.9 MB, free: 1.375 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.546e-06/0.006846, allocations: 8 kB / 419 MB, free: 1.367 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001568/0.007003, allocations: 95.88 kB / 419 MB, free: 1.273 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006281/0.007631, allocations: 0.5192 MB / 419.6 MB, free: 0.707 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001754/0.007806, allocations: 122.5 kB / 419.7 MB, free: 0.5781 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.065e-05/0.007887, allocations: 68.77 kB / 419.8 MB, free: 0.5078 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.14e-05/0.007898, allocations: 8 kB / 419.8 MB, free: 0.5 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.105e-05/0.007919, allocations: 30.56 kB / 419.8 MB, free: 472 kB / 346.7 MB Notification: Performance of pre-optimization done (n=16): time 1.273e-06/0.007921, allocations: 0 / 419.8 MB, free: 472 kB / 346.7 MB Notification: Performance of matching and sorting (n=18): time 0.0007939/0.008715, allocations: 496.9 kB / 420.3 MB, free: 15.94 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.993e-05/0.008744, allocations: 55.41 kB / 420.3 MB, free: 15.87 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000168/0.008912, allocations: 229.8 kB / 420.6 MB, free: 15.64 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.287e-05/0.008925, allocations: 25.7 kB / 420.6 MB, free: 15.61 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.588e-05/0.009001, allocations: 148.4 kB / 420.7 MB, free: 15.46 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.461e-05/0.009036, allocations: 63.44 kB / 420.8 MB, free: 15.39 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.636e-05/0.009082, allocations: 41.7 kB / 420.8 MB, free: 15.35 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.636e-05/0.009169, allocations: 330.8 kB / 421.1 MB, free: 15.02 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.069e-05/0.009239, allocations: 47.98 kB / 421.2 MB, free: 14.97 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.47e-05/0.009324, allocations: 90.19 kB / 421.3 MB, free: 14.87 MB / 362.7 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: grid.f = grid.fnom (0.15915494309189535 * generator.omega_e_nom = grid.fnom) Notification: Performance of analyzeInitialSystem (initialization): time 0.0006975/0.01002, allocations: 338.3 kB / 421.6 MB, free: 14.53 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.01002, allocations: 4 kB / 421.6 MB, free: 14.53 MB / 362.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002231/0.01025, allocations: 189.4 kB / 421.8 MB, free: 14.34 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.813e-05/0.01026, allocations: 8 kB / 421.8 MB, free: 14.33 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.154e-06/0.01027, allocations: 3.75 kB / 421.8 MB, free: 14.33 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.352e-05/0.01029, allocations: 3.938 kB / 421.8 MB, free: 14.32 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001269/0.01041, allocations: 51.97 kB / 421.9 MB, free: 14.27 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.763e-06/0.01042, allocations: 4 kB / 421.9 MB, free: 14.27 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.7e-05/0.01049, allocations: 16.02 kB / 421.9 MB, free: 14.25 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.558e-06/0.0105, allocations: 8 kB / 421.9 MB, free: 14.25 MB / 362.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: grid.f = grid.fnom. 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 (23): * Single equations (assignments): 23 * 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 prepare postOptimizeDAE: time 9.751e-05/0.01059, allocations: 137.7 kB / 422 MB, free: 14.1 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.509e-05/0.01062, allocations: 23.89 kB / 422.1 MB, free: 14.08 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.977e-05/0.01066, allocations: 34.05 kB / 422.1 MB, free: 14.05 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.835e-06/0.01066, allocations: 4 kB / 422.1 MB, free: 14.05 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.01066, allocations: 0 / 422.1 MB, free: 14.05 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.377e-06/0.01067, allocations: 0 / 422.1 MB, free: 14.05 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000465/0.01113, allocations: 485.3 kB / 422.6 MB, free: 13.52 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.01114, allocations: 4 kB / 422.6 MB, free: 13.52 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001323/0.01127, allocations: 43.97 kB / 422.6 MB, free: 13.48 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.447e-06/0.01127, allocations: 4 kB / 422.6 MB, free: 13.47 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.899e-06/0.01128, allocations: 7.938 kB / 422.6 MB, free: 13.46 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.01128, allocations: 0 / 422.6 MB, free: 13.46 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.01129, allocations: 3.938 kB / 422.6 MB, free: 13.46 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003109/0.0116, allocations: 338 kB / 423 MB, free: 13.12 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.477e-05/0.01164, allocations: 31.89 kB / 423 MB, free: 13.09 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.062e-05/0.01166, allocations: 7.984 kB / 423 MB, free: 13.08 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.466e-05/0.01173, allocations: 4 kB / 423 MB, free: 13.07 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.444e-05/0.01177, allocations: 15.97 kB / 423 MB, free: 13.06 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.4e-06/0.01178, allocations: 4 kB / 423 MB, free: 13.05 MB / 362.7 MB Notification: Performance of sorting global known variables: time 9.601e-05/0.01187, allocations: 161.2 kB / 423.2 MB, free: 12.89 MB / 362.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01187, allocations: 0 / 423.2 MB, free: 12.89 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001804/0.01205, allocations: 44 kB / 423.2 MB, free: 12.85 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (generator.phi,generator.omega_m,generator.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 (18): * Single equations (assignments): 18 * 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.0004745/0.01253, allocations: 0.8605 MB / 424.1 MB, free: 11.96 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002104/0.01274, allocations: 134.8 kB / 424.2 MB, free: 11.83 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.01274, allocations: 4 kB / 424.2 MB, free: 11.83 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 7.485e-05/0.01281, allocations: 63.91 kB / 424.3 MB, free: 11.77 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002839/0.0131, allocations: 41.44 kB / 424.3 MB, free: 11.73 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002075/0.01517, allocations: 2.374 MB / 426.7 MB, free: 9.254 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.359e-05/0.01526, allocations: 133.8 kB / 426.8 MB, free: 9.102 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 6.904e-05/0.01533, allocations: 21.64 kB / 426.8 MB, free: 9.082 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.085e-05/0.01542, allocations: 68.47 kB / 426.9 MB, free: 9.016 MB / 362.7 MB Notification: Performance of SimCode: time 9.12e-07/0.01542, allocations: 0 / 426.9 MB, free: 9.016 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02162/0.03704, allocations: 5.15 MB / 432.1 MB, free: 3.82 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.983/7.02, allocations: 3.859 kB / 432.1 MB, free: 3.816 MB / 362.7 MB " [Timeout remaining time 653] (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2.sim & python3 -m fmpy simulate --output-file ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.005 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical2.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 8.978259834460914] Failed to read output from testmodel.py, exit status != 0: 7.104899311438203 7.112948713 7.105742536 Calling exit ...