Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_4.0.0-dev_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.001949/0.001949, allocations: 113.2 kB / 20.43 MB, free: 1.449 MB / 14.72 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.002257/0.002257, allocations: 215.5 kB / 23.74 MB, free: 4.656 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.424/1.424, allocations: 230.6 MB / 257.5 MB, free: 8.02 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 4.0.0-dev/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 4.0.0-dev/package.mo): time 0.1444/0.1444, allocations: 26.83 MB / 340.7 MB, free: 8.191 MB / 270.1 MB " [Timeout remaining time 180] Using package ThermoPower with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 4.0.0-dev/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4_0_0-dev_ThermoPower_Test_ElectricalComponents_TestElectrical6",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical6,fileNamePrefix="ThermoPower_4_0_0-dev_ThermoPower_Test_ElectricalComponents_TestElectrical6",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ThermoPower requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002039/0.002039, allocations: 59.91 kB / 476.8 MB, free: 3.672 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2901/0.2921, allocations: 60.49 MB / 0.5247 GB, free: 9.566 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical6): time 0.003546/0.2957, allocations: 2.997 MB / 0.5276 GB, free: 7.453 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001308/0.297, allocations: 0.8164 MB / 0.5284 GB, free: 6.871 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001852/0.2972, allocations: 10.56 kB / 0.5285 GB, free: 6.867 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001623/0.2973, allocations: 56.05 kB / 0.5285 GB, free: 6.828 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000321/0.2977, allocations: 150.8 kB / 0.5286 GB, free: 6.719 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002135/0.2979, allocations: 107.1 kB / 0.5288 GB, free: 6.664 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004525/0.2983, allocations: 495.9 kB / 0.5292 GB, free: 6.418 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001941/0.2985, allocations: 101.8 kB / 0.5293 GB, free: 6.355 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002798/0.2988, allocations: 204.5 kB / 0.5295 GB, free: 6.262 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002586/0.2991, allocations: 204.1 kB / 0.5297 GB, free: 6.16 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.619e-05/0.2991, allocations: 36.47 kB / 0.5297 GB, free: 6.156 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.43e-05/0.2992, allocations: 43.44 kB / 0.5298 GB, free: 6.148 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.083e-05/0.2993, allocations: 86.34 kB / 0.5299 GB, free: 6.09 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001573/0.2994, allocations: 219 kB / 0.5301 GB, free: 5.953 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005121/0.2999, allocations: 407.6 kB / 0.5305 GB, free: 5.766 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.2999, allocations: 0.625 kB / 0.5305 GB, free: 5.766 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.2999, allocations: 3.938 kB / 0.5305 GB, free: 5.762 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.006e-05/0.2999, allocations: 1.5 kB / 0.5305 GB, free: 5.762 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: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.001282/0.3012, allocations: 0.6902 MB / 0.5311 GB, free: 5.262 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.466e-05/0.3013, allocations: 9.531 kB / 0.5312 GB, free: 5.262 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.507e-05/0.3013, allocations: 66.66 kB / 0.5312 GB, free: 5.203 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001359/0.3015, allocations: 54.56 kB / 0.5313 GB, free: 5.176 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004803/0.302, allocations: 299.4 kB / 0.5316 GB, free: 4.945 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.134e-05/0.302, allocations: 25.69 kB / 0.5316 GB, free: 4.934 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.597e-05/0.302, allocations: 43.23 kB / 0.5316 GB, free: 4.914 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004388/0.3025, allocations: 295.9 kB / 0.5319 GB, free: 4.766 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.612e-05/0.3025, allocations: 0.7969 kB / 0.5319 GB, free: 4.766 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.331e-05/0.3025, allocations: 11.41 kB / 0.5319 GB, free: 4.758 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.957e-06/0.3025, allocations: 11.31 kB / 0.5319 GB, free: 4.754 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003656/0.3029, allocations: 200.5 kB / 0.5321 GB, free: 4.699 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001461/0.3043, allocations: 1.051 MB / 0.5331 GB, free: 3.992 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000367/0.3047, allocations: 238.4 kB / 0.5334 GB, free: 3.879 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001719/0.3049, allocations: 111 kB / 0.5335 GB, free: 3.832 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.887e-05/0.3049, allocations: 3.359 kB / 0.5335 GB, free: 3.832 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.666e-05/0.3049, allocations: 33.31 kB / 0.5335 GB, free: 3.793 MB / 382.1 MB Notification: Performance of pre-optimization done (n=31): time 1.733e-06/0.3049, allocations: 0 / 0.5335 GB, free: 3.793 MB / 382.1 MB Notification: Performance of matching and sorting (n=33): time 0.001572/0.3065, allocations: 0.7947 MB / 0.5343 GB, free: 3.344 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.864e-05/0.3065, allocations: 58.44 kB / 0.5343 GB, free: 3.277 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003762/0.3069, allocations: 364.6 kB / 0.5347 GB, free: 3.082 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.975e-05/0.3069, allocations: 30.77 kB / 0.5347 GB, free: 3.047 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001118/0.307, allocations: 209.3 kB / 0.5349 GB, free: 2.871 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.495e-05/0.3071, allocations: 132.1 kB / 0.535 GB, free: 2.766 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.228e-05/0.3072, allocations: 69.28 kB / 0.5351 GB, free: 2.719 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.291e-05/0.3073, allocations: 352.2 kB / 0.5354 GB, free: 2.387 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001729/0.3075, allocations: 85.03 kB / 0.5355 GB, free: 2.359 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001907/0.3077, allocations: 141.8 kB / 0.5357 GB, free: 2.277 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003452/0.308, allocations: 233.9 kB / 0.5359 GB, free: 2.148 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.212e-06/0.308, allocations: 0 / 0.5359 GB, free: 2.148 MB / 382.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0009125/0.3089, allocations: 421.3 kB / 0.5363 GB, free: 1.965 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.807e-05/0.3089, allocations: 6.844 kB / 0.5363 GB, free: 1.965 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.705e-06/0.3089, allocations: 1.219 kB / 0.5363 GB, free: 1.965 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006048/0.3095, allocations: 123.7 kB / 0.5364 GB, free: 1.934 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004252/0.31, allocations: 93.3 kB / 0.5365 GB, free: 1.926 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002926/0.3129, allocations: 3.139 MB / 0.5396 GB, free: 15.05 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002912/0.3132, allocations: 23.31 kB / 0.5396 GB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.501e-05/0.3132, allocations: 9.812 kB / 0.5396 GB, free: 15.04 MB / 398.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 (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.0002089/0.3134, allocations: 157.4 kB / 0.5398 GB, free: 14.89 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.684e-05/0.3135, allocations: 39.42 kB / 0.5398 GB, free: 14.87 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005154/0.314, allocations: 298.8 kB / 0.5401 GB, free: 14.72 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.899e-06/0.314, allocations: 3.75 kB / 0.5401 GB, free: 14.72 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.997e-06/0.314, allocations: 3.938 kB / 0.5401 GB, free: 14.72 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.745e-06/0.314, allocations: 3.625 kB / 0.5401 GB, free: 14.72 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001123/0.3152, allocations: 0.728 MB / 0.5408 GB, free: 14.27 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.889e-06/0.3152, allocations: 3.984 kB / 0.5408 GB, free: 14.26 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003764/0.3155, allocations: 79.83 kB / 0.5409 GB, free: 14.25 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.126e-06/0.3155, allocations: 1.781 kB / 0.5409 GB, free: 14.25 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.148e-05/0.3156, allocations: 7.047 kB / 0.5409 GB, free: 14.25 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.936e-06/0.3156, allocations: 2.25 kB / 0.5409 GB, free: 14.25 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.3156, allocations: 0 / 0.5409 GB, free: 14.25 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006782/0.3162, allocations: 499.6 kB / 0.5414 GB, free: 13.97 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001362/0.3164, allocations: 64.25 kB / 0.5414 GB, free: 13.93 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.805e-05/0.3164, allocations: 6.406 kB / 0.5414 GB, free: 13.93 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002179/0.3166, allocations: 13.97 kB / 0.5414 GB, free: 13.92 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.977e-05/0.3167, allocations: 21.56 kB / 0.5415 GB, free: 13.92 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.524e-05/0.3167, allocations: 10.3 kB / 0.5415 GB, free: 13.91 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002885/0.317, allocations: 257 kB / 0.5417 GB, free: 13.79 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.317, allocations: 0 / 0.5417 GB, free: 13.79 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003969/0.3174, allocations: 94.86 kB / 0.5418 GB, free: 13.77 MB / 398.1 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.0009817/0.3184, allocations: 1.026 MB / 0.5428 GB, free: 12.96 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0009222/0.3193, allocations: 431.8 kB / 0.5432 GB, free: 12.75 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.3193, allocations: 0 / 0.5432 GB, free: 12.75 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002007/0.3195, allocations: 115.8 kB / 0.5433 GB, free: 12.71 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005129/0.32, allocations: 80.3 kB / 0.5434 GB, free: 12.67 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00585/0.3259, allocations: 3.979 MB / 0.5473 GB, free: 10 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004437/0.3263, allocations: 0.8208 MB / 0.5481 GB, free: 9.246 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001764/0.3265, allocations: 39.3 kB / 0.5481 GB, free: 9.23 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002142/0.3267, allocations: 144.4 kB / 0.5483 GB, free: 9.109 MB / 398.1 MB Notification: Performance of SimCode: time 6.21e-07/0.3267, allocations: 0 / 0.5483 GB, free: 9.109 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03963/0.3663, allocations: 9.112 MB / 0.5572 GB, free: 3.211 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.92/13.28, allocations: 15.06 kB / 0.5572 GB, free: 3.199 MB / 398.1 MB " [Timeout remaining time 647] (rm -f ThermoPower_4.0.0-dev_ThermoPower.Test.ElectricalComponents.TestElectrical6.pipe ; mkfifo ThermoPower_4.0.0-dev_ThermoPower.Test.ElectricalComponents.TestElectrical6.pipe ; head -c 1048576 < ThermoPower_4.0.0-dev_ThermoPower.Test.ElectricalComponents.TestElectrical6.pipe >> ../files/ThermoPower_4.0.0-dev_ThermoPower.Test.ElectricalComponents.TestElectrical6.sim & python3 -m fmpy simulate --output-file ThermoPower_4.0.0-dev_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_4_0_0-dev_ThermoPower_Test_ElectricalComponents_TestElectrical6.fmu > ThermoPower_4.0.0-dev_ThermoPower.Test.ElectricalComponents.TestElectrical6.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 16.00259255594574] Failed to read output from testmodel.py, exit status != 0: 13.397782988031395 13.41265775 13.109640701 Calling exit ...