Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_4.0.0-dev_ThermoPower.Test.ElectricalComponents.TestElectrical3.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.001397/0.001397, allocations: 113.1 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.001517/0.001517, allocations: 214.5 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.424/1.424, allocations: 230.6 MB / 257.5 MB, free: 8.016 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.15/0.15, allocations: 26.82 MB / 340.7 MB, free: 8.285 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.TestElectrical3,fileNamePrefix="ThermoPower_4_0_0-dev_ThermoPower_Test_ElectricalComponents_TestElectrical3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical3,fileNamePrefix="ThermoPower_4_0_0-dev_ThermoPower_Test_ElectricalComponents_TestElectrical3",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.00207/0.00207, allocations: 59.91 kB / 476.8 MB, free: 3.684 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3295/0.3315, allocations: 60.47 MB / 0.5247 GB, free: 9.559 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical3): time 0.003185/0.3347, allocations: 2.331 MB / 0.527 GB, free: 7.93 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001215/0.3359, allocations: 0.6575 MB / 0.5276 GB, free: 7.465 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001288/0.3361, allocations: 10.69 kB / 0.5276 GB, free: 7.457 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001295/0.3362, allocations: 31.67 kB / 0.5277 GB, free: 7.434 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000218/0.3364, allocations: 92.75 kB / 0.5278 GB, free: 7.367 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001498/0.3366, allocations: 53.27 kB / 0.5278 GB, free: 7.34 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003194/0.3369, allocations: 285.7 kB / 0.5281 GB, free: 7.199 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001452/0.337, allocations: 60.02 kB / 0.5281 GB, free: 7.168 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002031/0.3372, allocations: 126.6 kB / 0.5283 GB, free: 7.109 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001733/0.3374, allocations: 122 kB / 0.5284 GB, free: 7.047 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.473e-05/0.3374, allocations: 18.41 kB / 0.5284 GB, free: 7.047 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.682e-05/0.3375, allocations: 24.69 kB / 0.5284 GB, free: 7.043 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.889e-05/0.3375, allocations: 43.88 kB / 0.5285 GB, free: 7.016 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 9.439e-05/0.3376, allocations: 131.7 kB / 0.5286 GB, free: 6.934 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000274/0.3379, allocations: 226 kB / 0.5288 GB, free: 6.832 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.3379, allocations: 0 / 0.5288 GB, free: 6.832 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.3379, allocations: 1.094 kB / 0.5288 GB, free: 6.832 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.003e-06/0.3379, allocations: 0.9375 kB / 0.5288 GB, free: 6.832 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: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.000826/0.3388, allocations: 0.4965 MB / 0.5293 GB, free: 6.434 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.651e-05/0.3388, allocations: 9 kB / 0.5293 GB, free: 6.434 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.391e-05/0.3388, allocations: 48.7 kB / 0.5293 GB, free: 6.387 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.083e-05/0.3389, allocations: 31.72 kB / 0.5294 GB, free: 6.371 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003245/0.3392, allocations: 217.2 kB / 0.5296 GB, free: 6.184 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.287e-05/0.3393, allocations: 63.97 kB / 0.5296 GB, free: 6.117 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.455e-05/0.3393, allocations: 24.83 kB / 0.5297 GB, free: 6.105 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003086/0.3396, allocations: 176.6 kB / 0.5298 GB, free: 6.012 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.321e-05/0.3397, allocations: 7.891 kB / 0.5298 GB, free: 6.004 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.689e-05/0.3397, allocations: 10.38 kB / 0.5298 GB, free: 5.996 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.044e-06/0.3397, allocations: 3.594 kB / 0.5299 GB, free: 5.996 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002824/0.34, allocations: 125.8 kB / 0.53 GB, free: 5.961 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009185/0.3409, allocations: 0.6069 MB / 0.5306 GB, free: 5.512 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003885/0.3413, allocations: 149.6 kB / 0.5307 GB, free: 5.438 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001759/0.3414, allocations: 73.62 kB / 0.5308 GB, free: 5.41 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.1e-05/0.3415, allocations: 1.594 kB / 0.5308 GB, free: 5.41 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.428e-05/0.3415, allocations: 40.06 kB / 0.5308 GB, free: 5.363 MB / 382.1 MB Notification: Performance of pre-optimization done (n=18): time 1.312e-06/0.3415, allocations: 0.5 kB / 0.5308 GB, free: 5.363 MB / 382.1 MB Notification: Performance of matching and sorting (n=19): time 0.001118/0.3426, allocations: 0.509 MB / 0.5313 GB, free: 5.051 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.694e-05/0.3426, allocations: 53.98 kB / 0.5314 GB, free: 4.988 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002019/0.3428, allocations: 231.2 kB / 0.5316 GB, free: 4.852 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.414e-05/0.3428, allocations: 30.64 kB / 0.5316 GB, free: 4.816 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.272e-05/0.3429, allocations: 153 kB / 0.5318 GB, free: 4.68 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.766e-05/0.3429, allocations: 68.91 kB / 0.5318 GB, free: 4.625 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.94e-05/0.343, allocations: 43.81 kB / 0.5319 GB, free: 4.594 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.865e-05/0.3431, allocations: 335.3 kB / 0.5322 GB, free: 4.27 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001388/0.3432, allocations: 60.16 kB / 0.5322 GB, free: 4.25 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001386/0.3433, allocations: 82.64 kB / 0.5323 GB, free: 4.211 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002507/0.3436, allocations: 150.6 kB / 0.5325 GB, free: 4.137 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.31e-07/0.3436, allocations: 0 / 0.5325 GB, free: 4.137 MB / 382.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0003451/0.3439, allocations: 204.3 kB / 0.5327 GB, free: 4.043 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.607e-05/0.344, allocations: 9.062 kB / 0.5327 GB, free: 4.043 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.22e-06/0.344, allocations: 1.125 kB / 0.5327 GB, free: 4.043 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.554e-05/0.344, allocations: 9.156 kB / 0.5327 GB, free: 4.035 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004105/0.3444, allocations: 76.97 kB / 0.5328 GB, free: 4.031 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.083e-06/0.3444, allocations: 1 kB / 0.5328 GB, free: 4.031 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001369/0.3445, allocations: 12.64 kB / 0.5328 GB, free: 4.027 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.129e-05/0.3445, allocations: 4.031 kB / 0.5328 GB, free: 4.027 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: 1 (BreakerCommand.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 25 * 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.12e-05/0.3446, allocations: 137.3 kB / 0.5329 GB, free: 3.895 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.428e-05/0.3447, allocations: 25.55 kB / 0.5329 GB, free: 3.879 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.627e-05/0.3447, allocations: 30.91 kB / 0.533 GB, free: 3.855 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.497e-06/0.3447, allocations: 2.719 kB / 0.533 GB, free: 3.855 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.46e-06/0.3447, allocations: 0 / 0.533 GB, free: 3.855 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.648e-06/0.3447, allocations: 4.688 kB / 0.533 GB, free: 3.852 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007034/0.3454, allocations: 0.5151 MB / 0.5335 GB, free: 3.484 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.3455, allocations: 0 / 0.5335 GB, free: 3.484 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000362/0.3458, allocations: 61.3 kB / 0.5335 GB, free: 3.48 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/0.3458, allocations: 1.375 kB / 0.5335 GB, free: 3.48 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.415e-05/0.3458, allocations: 6.062 kB / 0.5335 GB, free: 3.477 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.956e-06/0.3458, allocations: 5.344 kB / 0.5335 GB, free: 3.473 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.3458, allocations: 3.938 kB / 0.5335 GB, free: 3.469 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000475/0.3463, allocations: 356.2 kB / 0.5339 GB, free: 3.254 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.43e-05/0.3464, allocations: 29.84 kB / 0.5339 GB, free: 3.238 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.549e-05/0.3464, allocations: 6.531 kB / 0.5339 GB, free: 3.234 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001527/0.3466, allocations: 14.45 kB / 0.5339 GB, free: 3.227 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.152e-05/0.3466, allocations: 10.97 kB / 0.5339 GB, free: 3.227 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.668e-06/0.3466, allocations: 4.781 kB / 0.5339 GB, free: 3.227 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001347/0.3468, allocations: 172.8 kB / 0.5341 GB, free: 3.117 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3468, allocations: 0 / 0.5341 GB, free: 3.117 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003124/0.3471, allocations: 46.5 kB / 0.5342 GB, free: 3.109 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: 1 (BreakerCommand.y) * 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.0006178/0.3477, allocations: 0.8773 MB / 0.535 GB, free: 2.371 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003404/0.348, allocations: 147.4 kB / 0.5352 GB, free: 2.328 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.348, allocations: 0 / 0.5352 GB, free: 2.328 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001402/0.3482, allocations: 71.67 kB / 0.5352 GB, free: 2.309 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003946/0.3486, allocations: 44.59 kB / 0.5353 GB, free: 2.289 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003037/0.3516, allocations: 2.63 MB / 0.5378 GB, free: 448 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003207/0.3519, allocations: 0.7494 MB / 0.5386 GB, free: 15.73 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001024/0.352, allocations: 25.75 kB / 0.5386 GB, free: 15.72 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001207/0.3522, allocations: 73.11 kB / 0.5387 GB, free: 15.66 MB / 398.1 MB Notification: Performance of SimCode: time 7.01e-07/0.3522, allocations: 0 / 0.5387 GB, free: 15.66 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03494/0.3871, allocations: 4.774 MB / 0.5433 GB, free: 13.93 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.83/11.22, allocations: 6.344 kB / 0.5433 GB, free: 13.93 MB / 398.1 MB " [Timeout remaining time 649] (rm -f ThermoPower_4.0.0-dev_ThermoPower.Test.ElectricalComponents.TestElectrical3.pipe ; mkfifo ThermoPower_4.0.0-dev_ThermoPower.Test.ElectricalComponents.TestElectrical3.pipe ; head -c 1048576 < ThermoPower_4.0.0-dev_ThermoPower.Test.ElectricalComponents.TestElectrical3.pipe >> ../files/ThermoPower_4.0.0-dev_ThermoPower.Test.ElectricalComponents.TestElectrical3.sim & python3 -m fmpy simulate --output-file ThermoPower_4.0.0-dev_ThermoPower.Test.ElectricalComponents.TestElectrical3_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_TestElectrical3.fmu > ThermoPower_4.0.0-dev_ThermoPower.Test.ElectricalComponents.TestElectrical3.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.008389388094656] Failed to read output from testmodel.py, exit status != 0: 11.324958459008485 11.358470338 11.01470745 Calling exit ...