Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_4.0.0-dev_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.001647/0.001647, allocations: 115.8 kB / 20.43 MB, free: 1.457 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.002062/0.002062, allocations: 214.2 kB / 23.75 MB, free: 4.668 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.472/1.472, allocations: 230.6 MB / 257.5 MB, free: 7.996 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.154/0.154, allocations: 26.81 MB / 340.7 MB, free: 8.207 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.TestElectrical4,fileNamePrefix="ThermoPower_4_0_0-dev_ThermoPower_Test_ElectricalComponents_TestElectrical4",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical4,fileNamePrefix="ThermoPower_4_0_0-dev_ThermoPower_Test_ElectricalComponents_TestElectrical4",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.002091/0.002091, allocations: 79.81 kB / 476.8 MB, free: 3.68 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3349/0.337, allocations: 60.48 MB / 0.5247 GB, free: 9.754 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical4): time 0.003321/0.3403, allocations: 2.31 MB / 0.527 GB, free: 8.145 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001208/0.3415, allocations: 0.6661 MB / 0.5276 GB, free: 7.668 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001521/0.3417, allocations: 3.688 kB / 0.5276 GB, free: 7.668 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001524/0.3418, allocations: 33.39 kB / 0.5277 GB, free: 7.645 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002657/0.3421, allocations: 87.14 kB / 0.5277 GB, free: 7.582 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001734/0.3423, allocations: 56.02 kB / 0.5278 GB, free: 7.555 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003157/0.3426, allocations: 274.2 kB / 0.5281 GB, free: 7.418 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001623/0.3427, allocations: 58 kB / 0.5281 GB, free: 7.383 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002541/0.343, allocations: 119.2 kB / 0.5282 GB, free: 7.328 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002245/0.3432, allocations: 110.6 kB / 0.5283 GB, free: 7.273 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.417e-05/0.3433, allocations: 18.44 kB / 0.5284 GB, free: 7.273 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.367e-05/0.3434, allocations: 23.7 kB / 0.5284 GB, free: 7.27 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.681e-05/0.3434, allocations: 58.11 kB / 0.5284 GB, free: 7.227 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001307/0.3435, allocations: 119.8 kB / 0.5285 GB, free: 7.152 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003698/0.3439, allocations: 224.9 kB / 0.5288 GB, free: 7.051 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.103e-06/0.3439, allocations: 0.9688 kB / 0.5288 GB, free: 7.051 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.684e-06/0.3439, allocations: 0 / 0.5288 GB, free: 7.051 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.311e-05/0.3439, allocations: 0 / 0.5288 GB, free: 7.051 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: 37 * Number of variables: 37 Notification: Performance of Generate backend data structure: time 0.0009992/0.3449, allocations: 0.4923 MB / 0.5292 GB, free: 6.652 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.796e-05/0.345, allocations: 10.34 kB / 0.5293 GB, free: 6.652 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.876e-05/0.345, allocations: 47.34 kB / 0.5293 GB, free: 6.605 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000179/0.3452, allocations: 30.06 kB / 0.5293 GB, free: 6.59 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003316/0.3456, allocations: 209.3 kB / 0.5295 GB, free: 6.406 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.963e-05/0.3456, allocations: 15.12 kB / 0.5295 GB, free: 6.398 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.181e-05/0.3456, allocations: 15.78 kB / 0.5296 GB, free: 6.395 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003385/0.346, allocations: 180.2 kB / 0.5297 GB, free: 6.293 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.499e-05/0.346, allocations: 0.6562 kB / 0.5297 GB, free: 6.293 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.709e-05/0.346, allocations: 9.969 kB / 0.5297 GB, free: 6.285 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.426e-06/0.346, allocations: 4.062 kB / 0.5297 GB, free: 6.285 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002778/0.3463, allocations: 116.9 kB / 0.5299 GB, free: 6.254 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000941/0.3472, allocations: 0.589 MB / 0.5304 GB, free: 5.812 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002938/0.3475, allocations: 129.5 kB / 0.5305 GB, free: 5.75 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001733/0.3477, allocations: 71.34 kB / 0.5306 GB, free: 5.723 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.549e-05/0.3477, allocations: 6.062 kB / 0.5306 GB, free: 5.719 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.975e-05/0.3477, allocations: 36.17 kB / 0.5307 GB, free: 5.676 MB / 382.1 MB Notification: Performance of pre-optimization done (n=17): time 1.283e-06/0.3477, allocations: 0.5 kB / 0.5307 GB, free: 5.676 MB / 382.1 MB Notification: Performance of matching and sorting (n=18): time 0.001157/0.3489, allocations: 489.9 kB / 0.5311 GB, free: 5.379 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.95e-05/0.3489, allocations: 57.5 kB / 0.5312 GB, free: 5.312 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002564/0.3492, allocations: 233.2 kB / 0.5314 GB, free: 5.172 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.441e-05/0.3492, allocations: 30.89 kB / 0.5314 GB, free: 5.137 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.385e-05/0.3493, allocations: 148.1 kB / 0.5316 GB, free: 5.004 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.604e-05/0.3493, allocations: 69.47 kB / 0.5316 GB, free: 4.949 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.769e-05/0.3494, allocations: 38.91 kB / 0.5317 GB, free: 4.922 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.054e-05/0.3494, allocations: 334.7 kB / 0.532 GB, free: 4.598 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001271/0.3496, allocations: 59.72 kB / 0.5321 GB, free: 4.574 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001317/0.3497, allocations: 77.78 kB / 0.5321 GB, free: 4.535 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002496/0.3499, allocations: 125.7 kB / 0.5322 GB, free: 4.48 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.22e-07/0.3499, allocations: 3.938 kB / 0.5323 GB, free: 4.477 MB / 382.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003322/0.3503, allocations: 200.3 kB / 0.5324 GB, free: 4.379 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.56e-05/0.3503, allocations: 6.578 kB / 0.5324 GB, free: 4.379 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.3503, allocations: 0 / 0.5324 GB, free: 4.379 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.684e-05/0.3503, allocations: 1.438 kB / 0.5324 GB, free: 4.379 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004268/0.3507, allocations: 68.73 kB / 0.5325 GB, free: 4.375 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008218/0.3516, allocations: 1.337 MB / 0.5338 GB, free: 3.016 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001375/0.3517, allocations: 21.69 kB / 0.5338 GB, free: 3 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.424e-05/0.3517, allocations: 9.078 kB / 0.5338 GB, free: 2.996 MB / 382.1 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 0.0001111/0.3518, allocations: 135.4 kB / 0.534 GB, free: 2.863 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.846e-05/0.3519, allocations: 22.28 kB / 0.534 GB, free: 2.852 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003556/0.3522, allocations: 187.3 kB / 0.5342 GB, free: 2.754 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.908e-06/0.3522, allocations: 1.375 kB / 0.5342 GB, free: 2.754 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.164e-06/0.3522, allocations: 1.375 kB / 0.5342 GB, free: 2.754 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.129e-06/0.3522, allocations: 1.219 kB / 0.5342 GB, free: 2.754 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007595/0.353, allocations: 0.5083 MB / 0.5347 GB, free: 2.383 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.865e-06/0.353, allocations: 0.6562 kB / 0.5347 GB, free: 2.383 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002252/0.3532, allocations: 44.41 kB / 0.5347 GB, free: 2.379 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.576e-06/0.3532, allocations: 1.375 kB / 0.5347 GB, free: 2.379 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.534e-05/0.3532, allocations: 1.75 kB / 0.5347 GB, free: 2.379 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.016e-06/0.3532, allocations: 5.922 kB / 0.5347 GB, free: 2.375 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.41e-07/0.3532, allocations: 0 / 0.5347 GB, free: 2.375 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004889/0.3537, allocations: 344.7 kB / 0.5351 GB, free: 2.164 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.547e-05/0.3538, allocations: 33.44 kB / 0.5351 GB, free: 2.145 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.833e-05/0.3538, allocations: 5.375 kB / 0.5351 GB, free: 2.141 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001418/0.354, allocations: 5.609 kB / 0.5351 GB, free: 2.141 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.803e-05/0.354, allocations: 15.58 kB / 0.5351 GB, free: 2.137 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.247e-06/0.354, allocations: 3.344 kB / 0.5351 GB, free: 2.137 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001408/0.3542, allocations: 171.7 kB / 0.5353 GB, free: 2.031 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3542, allocations: 0 / 0.5353 GB, free: 2.031 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002817/0.3545, allocations: 47.91 kB / 0.5353 GB, free: 2.023 MB / 382.1 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.0005963/0.3551, allocations: 0.8684 MB / 0.5362 GB, free: 1.285 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005055/0.3556, allocations: 161.7 kB / 0.5363 GB, free: 1.246 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.013e-06/0.3556, allocations: 3.938 kB / 0.5363 GB, free: 1.242 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001401/0.3557, allocations: 72.95 kB / 0.5364 GB, free: 1.219 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003657/0.3561, allocations: 41.73 kB / 0.5364 GB, free: 1.195 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003262/0.3593, allocations: 2.578 MB / 0.539 GB, free: 15.36 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004554/0.3598, allocations: 0.7555 MB / 0.5397 GB, free: 14.66 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001195/0.3599, allocations: 23.66 kB / 0.5397 GB, free: 14.65 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000154/0.3601, allocations: 79.8 kB / 0.5398 GB, free: 14.59 MB / 398.1 MB Notification: Performance of SimCode: time 3.01e-07/0.3601, allocations: 0 / 0.5398 GB, free: 14.59 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03331/0.3934, allocations: 5.269 MB / 0.5449 GB, free: 12.56 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.93/11.32, allocations: 5.562 kB / 0.5449 GB, free: 12.56 MB / 398.1 MB " [Timeout remaining time 649] (rm -f ThermoPower_4.0.0-dev_ThermoPower.Test.ElectricalComponents.TestElectrical4.pipe ; mkfifo ThermoPower_4.0.0-dev_ThermoPower.Test.ElectricalComponents.TestElectrical4.pipe ; head -c 1048576 < ThermoPower_4.0.0-dev_ThermoPower.Test.ElectricalComponents.TestElectrical4.pipe >> ../files/ThermoPower_4.0.0-dev_ThermoPower.Test.ElectricalComponents.TestElectrical4.sim & python3 -m fmpy simulate --output-file ThermoPower_4.0.0-dev_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_4_0_0-dev_ThermoPower_Test_ElectricalComponents_TestElectrical4.fmu > ThermoPower_4.0.0-dev_ThermoPower.Test.ElectricalComponents.TestElectrical4.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.147780400002375] Failed to read output from testmodel.py, exit status != 0: 11.428970247972757 11.446022099 11.098963781 Calling exit ...