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.001777/0.001777, 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.00207/0.00207, allocations: 214.7 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.467/1.467, allocations: 230.6 MB / 257.5 MB, free: 8.004 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.1649/0.1649, allocations: 26.82 MB / 340.8 MB, free: 8.195 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.002145/0.002145, allocations: 63.91 kB / 476.8 MB, free: 3.68 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.338/0.3401, allocations: 60.47 MB / 0.5247 GB, free: 9.586 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical4): time 0.003182/0.3433, allocations: 2.309 MB / 0.527 GB, free: 7.977 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001064/0.3444, allocations: 0.6759 MB / 0.5276 GB, free: 7.492 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001229/0.3445, allocations: 3.469 kB / 0.5276 GB, free: 7.492 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001311/0.3446, allocations: 32.56 kB / 0.5277 GB, free: 7.469 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002394/0.3448, allocations: 82.91 kB / 0.5277 GB, free: 7.414 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001649/0.345, allocations: 59.14 kB / 0.5278 GB, free: 7.379 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002928/0.3453, allocations: 268.3 kB / 0.5281 GB, free: 7.25 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001468/0.3455, allocations: 57.31 kB / 0.5281 GB, free: 7.215 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002006/0.3457, allocations: 122.2 kB / 0.5282 GB, free: 7.156 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001776/0.3458, allocations: 115.9 kB / 0.5283 GB, free: 7.098 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.532e-05/0.3459, allocations: 17.12 kB / 0.5284 GB, free: 7.098 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.822e-05/0.3459, allocations: 24.94 kB / 0.5284 GB, free: 7.094 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.732e-05/0.346, allocations: 44.91 kB / 0.5284 GB, free: 7.062 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 9.486e-05/0.3461, allocations: 122.5 kB / 0.5285 GB, free: 6.988 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002677/0.3463, allocations: 229.3 kB / 0.5288 GB, free: 6.879 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.3463, allocations: 0 / 0.5288 GB, free: 6.879 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.3463, allocations: 1.031 kB / 0.5288 GB, free: 6.879 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.194e-06/0.3463, allocations: 4 kB / 0.5288 GB, free: 6.875 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.0008015/0.3472, allocations: 494.2 kB / 0.5292 GB, free: 6.488 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.932e-05/0.3472, allocations: 9.312 kB / 0.5292 GB, free: 6.488 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.273e-05/0.3472, allocations: 52.42 kB / 0.5293 GB, free: 6.438 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.62e-05/0.3473, allocations: 33.75 kB / 0.5293 GB, free: 6.418 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000326/0.3477, allocations: 212.3 kB / 0.5295 GB, free: 6.23 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.432e-05/0.3477, allocations: 11 kB / 0.5295 GB, free: 6.227 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.423e-05/0.3477, allocations: 21.34 kB / 0.5296 GB, free: 6.219 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003029/0.348, allocations: 172 kB / 0.5297 GB, free: 6.125 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.425e-05/0.348, allocations: 0 / 0.5297 GB, free: 6.125 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.589e-05/0.348, allocations: 14.25 kB / 0.5297 GB, free: 6.113 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.462e-06/0.3481, allocations: 7.812 kB / 0.5297 GB, free: 6.109 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002635/0.3483, allocations: 112.9 kB / 0.5298 GB, free: 6.082 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009243/0.3492, allocations: 0.5889 MB / 0.5304 GB, free: 5.641 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002719/0.3495, allocations: 138 kB / 0.5306 GB, free: 5.57 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001607/0.3497, allocations: 68.52 kB / 0.5306 GB, free: 5.543 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.193e-05/0.3497, allocations: 2.938 kB / 0.5306 GB, free: 5.543 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.439e-05/0.3497, allocations: 31.69 kB / 0.5307 GB, free: 5.504 MB / 382.1 MB Notification: Performance of pre-optimization done (n=17): time 1.533e-06/0.3497, allocations: 3.938 kB / 0.5307 GB, free: 5.5 MB / 382.1 MB Notification: Performance of matching and sorting (n=18): time 0.001096/0.3508, allocations: 493.4 kB / 0.5311 GB, free: 5.199 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.635e-05/0.3508, allocations: 54.09 kB / 0.5312 GB, free: 5.137 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002379/0.3511, allocations: 237 kB / 0.5314 GB, free: 4.992 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.298e-05/0.3511, allocations: 30.67 kB / 0.5314 GB, free: 4.957 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.908e-05/0.3512, allocations: 144.6 kB / 0.5316 GB, free: 4.828 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.004e-05/0.3512, allocations: 68.7 kB / 0.5316 GB, free: 4.773 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.716e-05/0.3513, allocations: 39.61 kB / 0.5317 GB, free: 4.746 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.67e-05/0.3513, allocations: 338.1 kB / 0.532 GB, free: 4.418 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001232/0.3514, allocations: 56.2 kB / 0.5321 GB, free: 4.398 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001292/0.3516, allocations: 74.27 kB / 0.5321 GB, free: 4.363 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002366/0.3518, allocations: 136.5 kB / 0.5323 GB, free: 4.297 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.3518, allocations: 1.188 kB / 0.5323 GB, free: 4.297 MB / 382.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003214/0.3521, allocations: 192.3 kB / 0.5324 GB, free: 4.207 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.437e-05/0.3521, allocations: 4.688 kB / 0.5324 GB, free: 4.207 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.45e-06/0.3521, allocations: 1.797 kB / 0.5324 GB, free: 4.207 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.625e-05/0.3522, allocations: 1.25 kB / 0.5324 GB, free: 4.207 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004096/0.3526, allocations: 73.38 kB / 0.5325 GB, free: 4.199 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007924/0.3534, allocations: 1.34 MB / 0.5338 GB, free: 2.836 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001408/0.3535, allocations: 10.47 kB / 0.5338 GB, free: 2.832 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.277e-05/0.3535, allocations: 8.25 kB / 0.5338 GB, free: 2.828 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 8.919e-05/0.3536, allocations: 131.7 kB / 0.534 GB, free: 2.699 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.366e-05/0.3536, allocations: 22.86 kB / 0.534 GB, free: 2.688 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003173/0.354, allocations: 186.6 kB / 0.5342 GB, free: 2.59 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.266e-06/0.354, allocations: 6.531 kB / 0.5342 GB, free: 2.586 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.232e-06/0.354, allocations: 0 / 0.5342 GB, free: 2.586 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.659e-06/0.354, allocations: 1.172 kB / 0.5342 GB, free: 2.586 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006587/0.3546, allocations: 0.5097 MB / 0.5347 GB, free: 2.215 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.3546, allocations: 0 / 0.5347 GB, free: 2.215 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002192/0.3549, allocations: 44.48 kB / 0.5347 GB, free: 2.211 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.625e-06/0.3549, allocations: 4.562 kB / 0.5347 GB, free: 2.207 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.339e-05/0.3549, allocations: 6.688 kB / 0.5347 GB, free: 2.203 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.304e-06/0.3549, allocations: 0.5156 kB / 0.5347 GB, free: 2.203 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.3549, allocations: 1.219 kB / 0.5347 GB, free: 2.203 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004138/0.3553, allocations: 344.5 kB / 0.5351 GB, free: 1.992 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.782e-05/0.3554, allocations: 29.69 kB / 0.5351 GB, free: 1.977 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.869e-05/0.3554, allocations: 10.12 kB / 0.5351 GB, free: 1.969 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001457/0.3555, allocations: 9.953 kB / 0.5351 GB, free: 1.965 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.028e-05/0.3556, allocations: 10.22 kB / 0.5351 GB, free: 1.965 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.698e-06/0.3556, allocations: 12.58 kB / 0.5351 GB, free: 1.957 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001307/0.3557, allocations: 166.8 kB / 0.5353 GB, free: 1.855 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3557, allocations: 0 / 0.5353 GB, free: 1.855 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002865/0.356, allocations: 43.16 kB / 0.5353 GB, free: 1.852 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.0005849/0.3566, allocations: 0.871 MB / 0.5362 GB, free: 1.109 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005136/0.3571, allocations: 171.2 kB / 0.5363 GB, free: 1.062 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.013e-06/0.3571, allocations: 3.938 kB / 0.5363 GB, free: 1.059 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001355/0.3572, allocations: 68.88 kB / 0.5364 GB, free: 1.039 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003756/0.3576, allocations: 36.62 kB / 0.5364 GB, free: 1.023 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003243/0.3609, allocations: 2.578 MB / 0.539 GB, free: 15.19 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000415/0.3613, allocations: 0.7548 MB / 0.5397 GB, free: 14.49 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001052/0.3614, allocations: 25.23 kB / 0.5397 GB, free: 14.48 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001503/0.3615, allocations: 75.14 kB / 0.5398 GB, free: 14.43 MB / 398.1 MB Notification: Performance of SimCode: time 6.01e-07/0.3615, allocations: 0 / 0.5398 GB, free: 14.43 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03849/0.4, allocations: 5.27 MB / 0.5449 GB, free: 12.42 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.94/11.34, allocations: 9.062 kB / 0.5449 GB, free: 12.42 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoPower_4_0_0-dev_ThermoPower_Test_ElectricalComponents_TestElectrical4_fmu --startTime=0 --stopTime=10 --stepSize=0.002 --timeout=50 --tolerance=1e-06 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.064071112079546] Failed to read output from testmodel.py, exit status != 0: 11.446136504993774 11.469722392 11.118545592 Calling exit ...