Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_4.0.0-dev_ThermoPower.Test.ElectricalComponents.TestElectrical1.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.001676/0.001676, allocations: 115.9 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.002089/0.002089, allocations: 213.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.48/1.48, allocations: 230.6 MB / 257.5 MB, free: 8.023 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.1651/0.1651, allocations: 26.81 MB / 340.7 MB, free: 8.223 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.TestElectrical1,fileNamePrefix="ThermoPower_4_0_0-dev_ThermoPower_Test_ElectricalComponents_TestElectrical1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical1,fileNamePrefix="ThermoPower_4_0_0-dev_ThermoPower_Test_ElectricalComponents_TestElectrical1",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.002294/0.002294, allocations: 67.89 kB / 476.8 MB, free: 3.699 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3507/0.353, allocations: 60.48 MB / 0.5247 GB, free: 9.535 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical1): time 0.003459/0.3564, allocations: 2.103 MB / 0.5268 GB, free: 8.074 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001042/0.3575, allocations: 0.607 MB / 0.5274 GB, free: 7.645 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001201/0.3576, allocations: 5.125 kB / 0.5274 GB, free: 7.641 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001405/0.3577, allocations: 23.89 kB / 0.5274 GB, free: 7.625 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000228/0.358, allocations: 75.23 kB / 0.5275 GB, free: 7.57 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001537/0.3581, allocations: 39.19 kB / 0.5275 GB, free: 7.551 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002845/0.3584, allocations: 212.6 kB / 0.5277 GB, free: 7.445 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00013/0.3585, allocations: 31.22 kB / 0.5277 GB, free: 7.43 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001948/0.3587, allocations: 90.05 kB / 0.5278 GB, free: 7.391 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001459/0.3589, allocations: 78.91 kB / 0.5279 GB, free: 7.355 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.611e-05/0.3589, allocations: 11.84 kB / 0.5279 GB, free: 7.355 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.925e-05/0.359, allocations: 19.47 kB / 0.5279 GB, free: 7.352 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.786e-05/0.359, allocations: 40.98 kB / 0.528 GB, free: 7.32 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 7.695e-05/0.3591, allocations: 93.11 kB / 0.528 GB, free: 7.262 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002639/0.3593, allocations: 159.1 kB / 0.5282 GB, free: 7.191 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.3593, allocations: 1.062 kB / 0.5282 GB, free: 7.191 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.3593, allocations: 0 / 0.5282 GB, free: 7.191 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.155e-05/0.3593, allocations: 0 / 0.5282 GB, free: 7.191 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: 26 * Number of variables: 26 Notification: Performance of Generate backend data structure: time 0.000762/0.3601, allocations: 432.1 kB / 0.5286 GB, free: 6.828 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.349e-05/0.3601, allocations: 11.09 kB / 0.5286 GB, free: 6.828 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.022e-05/0.3602, allocations: 44.12 kB / 0.5287 GB, free: 6.781 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001058/0.3603, allocations: 24.02 kB / 0.5287 GB, free: 6.77 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003187/0.3606, allocations: 190.1 kB / 0.5289 GB, free: 6.594 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.481e-05/0.3606, allocations: 6.125 kB / 0.5289 GB, free: 6.594 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.687e-05/0.3607, allocations: 16.25 kB / 0.5289 GB, free: 6.586 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002535/0.3609, allocations: 148 kB / 0.529 GB, free: 6.488 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.609e-05/0.3609, allocations: 5.016 kB / 0.529 GB, free: 6.484 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.397e-05/0.3609, allocations: 1.125 kB / 0.529 GB, free: 6.484 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.783e-06/0.361, allocations: 2.094 kB / 0.529 GB, free: 6.484 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001922/0.3611, allocations: 78.64 kB / 0.5291 GB, free: 6.465 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006951/0.3618, allocations: 0.4921 MB / 0.5296 GB, free: 6.062 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002847/0.3621, allocations: 105.4 kB / 0.5297 GB, free: 6.008 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.923e-05/0.3622, allocations: 42.39 kB / 0.5297 GB, free: 5.988 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.571e-05/0.3622, allocations: 1.188 kB / 0.5297 GB, free: 5.988 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.732e-05/0.3622, allocations: 36.08 kB / 0.5298 GB, free: 5.945 MB / 382.1 MB Notification: Performance of pre-optimization done (n=11): time 1.172e-06/0.3623, allocations: 4 kB / 0.5298 GB, free: 5.941 MB / 382.1 MB Notification: Performance of matching and sorting (n=12): time 0.0007239/0.363, allocations: 368.6 kB / 0.5301 GB, free: 5.688 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.891e-05/0.363, allocations: 57.47 kB / 0.5302 GB, free: 5.621 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002571/0.3633, allocations: 221.7 kB / 0.5304 GB, free: 5.48 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.315e-05/0.3633, allocations: 31.02 kB / 0.5304 GB, free: 5.445 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.25e-05/0.3633, allocations: 130.2 kB / 0.5305 GB, free: 5.328 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.55e-05/0.3634, allocations: 49.56 kB / 0.5306 GB, free: 5.289 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.625e-05/0.3634, allocations: 29.39 kB / 0.5306 GB, free: 5.266 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.43e-05/0.3635, allocations: 328.8 kB / 0.5309 GB, free: 4.945 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.269e-05/0.3636, allocations: 30.08 kB / 0.531 GB, free: 4.938 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001023/0.3637, allocations: 55 kB / 0.531 GB, free: 4.902 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001698/0.3639, allocations: 100.2 kB / 0.5311 GB, free: 4.84 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.3639, allocations: 0.5 kB / 0.5311 GB, free: 4.84 MB / 382.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002854/0.3642, allocations: 146.1 kB / 0.5312 GB, free: 4.762 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.107e-05/0.3642, allocations: 5.438 kB / 0.5313 GB, free: 4.762 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.292e-06/0.3642, allocations: 0.625 kB / 0.5313 GB, free: 4.762 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.814e-05/0.3642, allocations: 2.688 kB / 0.5313 GB, free: 4.762 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001745/0.3644, allocations: 31.69 kB / 0.5313 GB, free: 4.762 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.407e-06/0.3644, allocations: 10.09 kB / 0.5313 GB, free: 4.754 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001029/0.3645, allocations: 11.56 kB / 0.5313 GB, free: 4.746 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.223e-05/0.3645, allocations: 4.922 kB / 0.5313 GB, free: 4.746 MB / 382.1 MB 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 (16): * Single equations (assignments): 16 * 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 7.182e-05/0.3646, allocations: 124.9 kB / 0.5314 GB, free: 4.621 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.454e-05/0.3646, allocations: 24.8 kB / 0.5315 GB, free: 4.605 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.765e-05/0.3647, allocations: 24.56 kB / 0.5315 GB, free: 4.582 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.679e-06/0.3647, allocations: 2.531 kB / 0.5315 GB, free: 4.582 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.042e-06/0.3647, allocations: 0.5625 kB / 0.5315 GB, free: 4.582 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.619e-06/0.3647, allocations: 5.344 kB / 0.5315 GB, free: 4.578 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006066/0.3653, allocations: 416.7 kB / 0.5319 GB, free: 4.246 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.344e-06/0.3653, allocations: 3.938 kB / 0.5319 GB, free: 4.242 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001865/0.3655, allocations: 27.44 kB / 0.5319 GB, free: 4.242 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.276e-06/0.3655, allocations: 0.6562 kB / 0.5319 GB, free: 4.242 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.234e-05/0.3655, allocations: 1.094 kB / 0.5319 GB, free: 4.242 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.877e-06/0.3655, allocations: 1.797 kB / 0.5319 GB, free: 4.242 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.3655, allocations: 0.5 kB / 0.5319 GB, free: 4.242 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003923/0.3659, allocations: 269.2 kB / 0.5322 GB, free: 4.051 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.543e-05/0.366, allocations: 22.84 kB / 0.5322 GB, free: 4.039 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.339e-05/0.366, allocations: 1.812 kB / 0.5322 GB, free: 4.039 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001198/0.3661, allocations: 7.312 kB / 0.5322 GB, free: 4.035 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.154e-05/0.3662, allocations: 10.14 kB / 0.5322 GB, free: 4.031 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.207e-06/0.3662, allocations: 3.859 kB / 0.5322 GB, free: 4.031 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000185/0.3664, allocations: 167.5 kB / 0.5324 GB, free: 3.93 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3664, allocations: 1.094 kB / 0.5324 GB, free: 3.93 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002893/0.3667, allocations: 35.09 kB / 0.5324 GB, free: 3.922 MB / 382.1 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 (12): * Single equations (assignments): 12 * 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.0005721/0.3672, allocations: 0.7902 MB / 0.5332 GB, free: 3.211 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002767/0.3675, allocations: 86.27 kB / 0.5333 GB, free: 3.184 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.3675, allocations: 0.9688 kB / 0.5333 GB, free: 3.184 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 9.775e-05/0.3676, allocations: 45.62 kB / 0.5333 GB, free: 3.168 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004401/0.368, allocations: 35.88 kB / 0.5333 GB, free: 3.152 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002939/0.371, allocations: 2.278 MB / 0.5356 GB, free: 1.453 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002269/0.3712, allocations: 0.7303 MB / 0.5363 GB, free: 0.7539 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 9.336e-05/0.3713, allocations: 17.75 kB / 0.5363 GB, free: 0.75 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001028/0.3714, allocations: 53.23 kB / 0.5363 GB, free: 0.7148 MB / 382.1 MB Notification: Performance of SimCode: time 1.263e-06/0.3714, allocations: 0 / 0.5363 GB, free: 0.7148 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0328/0.4042, allocations: 3.933 MB / 0.5402 GB, free: 15.7 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.93/11.33, allocations: 14.16 kB / 0.5402 GB, free: 15.69 MB / 398.1 MB " [Timeout remaining time 649] (rm -f ThermoPower_4.0.0-dev_ThermoPower.Test.ElectricalComponents.TestElectrical1.pipe ; mkfifo ThermoPower_4.0.0-dev_ThermoPower.Test.ElectricalComponents.TestElectrical1.pipe ; head -c 1048576 < ThermoPower_4.0.0-dev_ThermoPower.Test.ElectricalComponents.TestElectrical1.pipe >> ../files/ThermoPower_4.0.0-dev_ThermoPower.Test.ElectricalComponents.TestElectrical1.sim & python3 -m fmpy simulate --output-file ThermoPower_4.0.0-dev_ThermoPower.Test.ElectricalComponents.TestElectrical1_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 ThermoPower_4_0_0-dev_ThermoPower_Test_ElectricalComponents_TestElectrical1.fmu > ThermoPower_4.0.0-dev_ThermoPower.Test.ElectricalComponents.TestElectrical1.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.278673071996309] Failed to read output from testmodel.py, exit status != 0: 11.438341303030029 11.465280843 11.100655904 Calling exit ...