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.001354/0.001354, 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.001382/0.001382, allocations: 213.3 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.436/1.436, allocations: 230.6 MB / 257.5 MB, free: 8.008 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.1647/0.1647, allocations: 26.82 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.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.002096/0.002096, allocations: 72.11 kB / 476.8 MB, free: 3.664 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3366/0.3387, allocations: 60.48 MB / 0.5247 GB, free: 9.531 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical3): time 0.003294/0.342, allocations: 2.323 MB / 0.527 GB, free: 7.914 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001153/0.3432, allocations: 0.6544 MB / 0.5276 GB, free: 7.449 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001453/0.3433, allocations: 7.781 kB / 0.5276 GB, free: 7.445 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000148/0.3435, allocations: 33.22 kB / 0.5277 GB, free: 7.422 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00024/0.3437, allocations: 90.97 kB / 0.5277 GB, free: 7.355 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001786/0.3439, allocations: 60.94 kB / 0.5278 GB, free: 7.324 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002943/0.3442, allocations: 285.1 kB / 0.5281 GB, free: 7.184 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001585/0.3443, allocations: 61.42 kB / 0.5281 GB, free: 7.148 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002182/0.3445, allocations: 122.7 kB / 0.5283 GB, free: 7.094 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001719/0.3447, allocations: 116.4 kB / 0.5284 GB, free: 7.035 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.588e-05/0.3448, allocations: 22.53 kB / 0.5284 GB, free: 7.031 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.821e-05/0.3448, allocations: 28.91 kB / 0.5284 GB, free: 7.023 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.014e-05/0.3449, allocations: 42.47 kB / 0.5285 GB, free: 6.996 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 9.876e-05/0.345, allocations: 122 kB / 0.5286 GB, free: 6.922 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003027/0.3453, allocations: 240.7 kB / 0.5288 GB, free: 6.809 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.888e-06/0.3453, allocations: 0 / 0.5288 GB, free: 6.809 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.3453, allocations: 0 / 0.5288 GB, free: 6.809 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.652e-06/0.3453, allocations: 1.031 kB / 0.5288 GB, free: 6.809 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.0008375/0.3461, allocations: 0.4966 MB / 0.5293 GB, free: 6.41 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.29e-05/0.3462, allocations: 10.2 kB / 0.5293 GB, free: 6.41 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.962e-05/0.3462, allocations: 47.33 kB / 0.5293 GB, free: 6.363 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.979e-05/0.3463, allocations: 32.47 kB / 0.5294 GB, free: 6.348 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003504/0.3467, allocations: 212.9 kB / 0.5296 GB, free: 6.164 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.225e-05/0.3467, allocations: 64.7 kB / 0.5296 GB, free: 6.098 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.905e-05/0.3468, allocations: 24.12 kB / 0.5297 GB, free: 6.086 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003494/0.3471, allocations: 180.3 kB / 0.5298 GB, free: 5.988 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.433e-05/0.3471, allocations: 4.703 kB / 0.5298 GB, free: 5.984 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.7e-05/0.3471, allocations: 10.31 kB / 0.5298 GB, free: 5.977 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.315e-06/0.3471, allocations: 7.578 kB / 0.5299 GB, free: 5.973 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002972/0.3474, allocations: 122.4 kB / 0.53 GB, free: 5.941 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009483/0.3484, allocations: 0.61 MB / 0.5306 GB, free: 5.488 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004134/0.3488, allocations: 141 kB / 0.5307 GB, free: 5.426 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001964/0.349, allocations: 80.53 kB / 0.5308 GB, free: 5.391 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.859e-05/0.349, allocations: 2.031 kB / 0.5308 GB, free: 5.391 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.277e-05/0.349, allocations: 36.58 kB / 0.5308 GB, free: 5.348 MB / 382.1 MB Notification: Performance of pre-optimization done (n=18): time 1.473e-06/0.349, allocations: 0 / 0.5308 GB, free: 5.348 MB / 382.1 MB Notification: Performance of matching and sorting (n=19): time 0.001237/0.3503, allocations: 0.5086 MB / 0.5313 GB, free: 5.035 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.613e-05/0.3503, allocations: 54.02 kB / 0.5314 GB, free: 4.973 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000258/0.3506, allocations: 236.2 kB / 0.5316 GB, free: 4.832 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.556e-05/0.3506, allocations: 30.92 kB / 0.5316 GB, free: 4.797 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.491e-05/0.3507, allocations: 148.6 kB / 0.5318 GB, free: 4.664 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.1e-05/0.3507, allocations: 68.58 kB / 0.5318 GB, free: 4.609 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.437e-05/0.3508, allocations: 43.73 kB / 0.5319 GB, free: 4.578 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.335e-05/0.3508, allocations: 340 kB / 0.5322 GB, free: 4.25 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001455/0.351, allocations: 55.09 kB / 0.5322 GB, free: 4.234 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001578/0.3511, allocations: 81.67 kB / 0.5323 GB, free: 4.195 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002884/0.3514, allocations: 155.6 kB / 0.5325 GB, free: 4.117 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.01e-07/0.3514, allocations: 4 kB / 0.5325 GB, free: 4.113 MB / 382.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0004048/0.3518, allocations: 201.5 kB / 0.5327 GB, free: 4.023 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.154e-05/0.3518, allocations: 5.781 kB / 0.5327 GB, free: 4.023 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.3519, allocations: 0 / 0.5327 GB, free: 4.023 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.895e-05/0.3519, allocations: 2.094 kB / 0.5327 GB, free: 4.023 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000439/0.3523, allocations: 80.47 kB / 0.5327 GB, free: 4.016 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.406e-06/0.3523, allocations: 6.688 kB / 0.5328 GB, free: 4.012 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001414/0.3525, allocations: 10.83 kB / 0.5328 GB, free: 4.008 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.521e-05/0.3525, allocations: 8.859 kB / 0.5328 GB, free: 4.004 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 0.0001061/0.3526, allocations: 135.7 kB / 0.5329 GB, free: 3.871 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.065e-05/0.3526, allocations: 22.42 kB / 0.5329 GB, free: 3.859 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.827e-05/0.3527, allocations: 30.44 kB / 0.533 GB, free: 3.836 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.519e-06/0.3527, allocations: 3.25 kB / 0.533 GB, free: 3.836 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.063e-06/0.3527, allocations: 0 / 0.533 GB, free: 3.836 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.06e-06/0.3527, allocations: 1.5 kB / 0.533 GB, free: 3.836 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008083/0.3535, allocations: 0.5168 MB / 0.5335 GB, free: 3.465 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.425e-06/0.3535, allocations: 2.031 kB / 0.5335 GB, free: 3.465 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003722/0.3539, allocations: 57.5 kB / 0.5335 GB, free: 3.465 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.439e-06/0.3539, allocations: 1.375 kB / 0.5335 GB, free: 3.465 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.695e-05/0.3539, allocations: 6.125 kB / 0.5335 GB, free: 3.461 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.525e-06/0.3539, allocations: 3.938 kB / 0.5335 GB, free: 3.457 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-06/0.3539, allocations: 5.375 kB / 0.5335 GB, free: 3.453 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005579/0.3545, allocations: 355.5 kB / 0.5339 GB, free: 3.238 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.771e-05/0.3546, allocations: 29.48 kB / 0.5339 GB, free: 3.223 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.52e-05/0.3546, allocations: 7.188 kB / 0.5339 GB, free: 3.219 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001524/0.3547, allocations: 10.19 kB / 0.5339 GB, free: 3.215 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.397e-05/0.3548, allocations: 23.8 kB / 0.5339 GB, free: 3.203 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.097e-05/0.3548, allocations: 7.234 kB / 0.5339 GB, free: 3.199 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001561/0.355, allocations: 173 kB / 0.5341 GB, free: 3.09 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.355, allocations: 0 / 0.5341 GB, free: 3.09 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003066/0.3553, allocations: 44.36 kB / 0.5342 GB, free: 3.086 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.0006806/0.356, allocations: 0.8804 MB / 0.535 GB, free: 2.344 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003578/0.3563, allocations: 144.7 kB / 0.5352 GB, free: 2.301 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.3563, allocations: 0 / 0.5352 GB, free: 2.301 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001487/0.3565, allocations: 76.31 kB / 0.5352 GB, free: 2.277 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004177/0.3569, allocations: 43.61 kB / 0.5353 GB, free: 2.258 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003363/0.3603, allocations: 2.617 MB / 0.5378 GB, free: 432 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003175/0.3606, allocations: 0.7479 MB / 0.5386 GB, free: 15.72 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000111/0.3607, allocations: 22.97 kB / 0.5386 GB, free: 15.71 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001265/0.3608, allocations: 77.05 kB / 0.5386 GB, free: 15.65 MB / 398.1 MB Notification: Performance of SimCode: time 1.253e-06/0.3608, allocations: 0 / 0.5386 GB, free: 15.65 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03404/0.3948, allocations: 4.777 MB / 0.5433 GB, free: 13.91 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.72/11.12, allocations: 16.8 kB / 0.5433 GB, free: 13.9 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoPower_4_0_0-dev_ThermoPower_Test_ElectricalComponents_TestElectrical3_fmu --startTime=0 --stopTime=10 --stepSize=0.002 --timeout=50 --tolerance=1e-06 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: 13.808327315957285] Failed to read output from testmodel.py, exit status != 0: 11.22588182601612 11.250936657 10.900863065 Calling exit ...