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.001319/0.001319, allocations: 112.2 kB / 21.19 MB, free: 0.7578 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.001413/0.001413, allocations: 210 kB / 24.5 MB, free: 4.133 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.423/1.423, allocations: 230.6 MB / 258.3 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.1453/0.1453, allocations: 26.81 MB / 341.5 MB, free: 8.219 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: translateModel(ThermoPower.Test.ElectricalComponents.TestElectrical4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_4.0.0-dev_ThermoPower.Test.ElectricalComponents.TestElectrical4") translateModel(ThermoPower.Test.ElectricalComponents.TestElectrical4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_4.0.0-dev_ThermoPower.Test.ElectricalComponents.TestElectrical4") [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.002023/0.002023, allocations: 67.89 kB / 478.1 MB, free: 3.215 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3062/0.3082, allocations: 60.48 MB / 0.5259 GB, free: 9.801 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical4): time 0.003712/0.312, allocations: 2.315 MB / 0.5282 GB, free: 8.184 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001221/0.3132, allocations: 0.6767 MB / 0.5289 GB, free: 7.699 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001289/0.3133, allocations: 2.875 kB / 0.5289 GB, free: 7.699 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001476/0.3135, allocations: 32.19 kB / 0.5289 GB, free: 7.676 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002269/0.3137, allocations: 83.92 kB / 0.529 GB, free: 7.617 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000164/0.3138, allocations: 61.67 kB / 0.529 GB, free: 7.582 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000293/0.3141, allocations: 267.5 kB / 0.5293 GB, free: 7.453 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001457/0.3143, allocations: 64.84 kB / 0.5293 GB, free: 7.41 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001842/0.3145, allocations: 118.8 kB / 0.5295 GB, free: 7.355 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001588/0.3146, allocations: 106.2 kB / 0.5296 GB, free: 7.305 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.253e-05/0.3147, allocations: 25.42 kB / 0.5296 GB, free: 7.297 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.183e-05/0.3147, allocations: 23.09 kB / 0.5296 GB, free: 7.297 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.081e-05/0.3148, allocations: 47.05 kB / 0.5297 GB, free: 7.266 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 8.726e-05/0.3148, allocations: 117 kB / 0.5298 GB, free: 7.191 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000277/0.3151, allocations: 229.9 kB / 0.53 GB, free: 7.09 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.3151, allocations: 0 / 0.53 GB, free: 7.09 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.3151, allocations: 4 kB / 0.53 GB, free: 7.086 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.871e-06/0.3151, allocations: 0 / 0.53 GB, free: 7.086 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.0007851/0.3159, allocations: 0.4907 MB / 0.5305 GB, free: 6.691 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.156e-05/0.3159, allocations: 10 kB / 0.5305 GB, free: 6.691 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.117e-05/0.316, allocations: 31.06 kB / 0.5305 GB, free: 6.676 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002919/0.3163, allocations: 212.7 kB / 0.5307 GB, free: 6.492 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.509e-05/0.3163, allocations: 9.781 kB / 0.5307 GB, free: 6.488 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.115e-05/0.3164, allocations: 21.09 kB / 0.5307 GB, free: 6.48 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003001/0.3167, allocations: 172.2 kB / 0.5309 GB, free: 6.387 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.473e-05/0.3167, allocations: 0.5 kB / 0.5309 GB, free: 6.387 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.715e-05/0.3167, allocations: 5.781 kB / 0.5309 GB, free: 6.383 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.906e-06/0.3167, allocations: 8.375 kB / 0.5309 GB, free: 6.379 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002995/0.317, allocations: 116.2 kB / 0.531 GB, free: 6.348 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008841/0.3179, allocations: 0.5898 MB / 0.5316 GB, free: 5.906 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002662/0.3182, allocations: 133.3 kB / 0.5317 GB, free: 5.84 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000153/0.3183, allocations: 68.61 kB / 0.5318 GB, free: 5.812 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.383e-05/0.3184, allocations: 2.656 kB / 0.5318 GB, free: 5.812 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.776e-05/0.3184, allocations: 32.31 kB / 0.5318 GB, free: 5.773 MB / 382.1 MB Notification: Performance of pre-optimization done (n=17): time 1.243e-06/0.3184, allocations: 0 / 0.5318 GB, free: 5.773 MB / 382.1 MB Notification: Performance of matching and sorting (n=18): time 0.0009585/0.3193, allocations: 498.1 kB / 0.5323 GB, free: 5.469 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.986e-05/0.3194, allocations: 53.34 kB / 0.5324 GB, free: 5.406 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001994/0.3196, allocations: 236.8 kB / 0.5326 GB, free: 5.262 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.188e-05/0.3196, allocations: 35.08 kB / 0.5326 GB, free: 5.223 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.053e-05/0.3196, allocations: 145 kB / 0.5328 GB, free: 5.094 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.573e-05/0.3197, allocations: 71.86 kB / 0.5328 GB, free: 5.035 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.273e-05/0.3197, allocations: 39.27 kB / 0.5329 GB, free: 5.008 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.553e-05/0.3198, allocations: 339.4 kB / 0.5332 GB, free: 4.68 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001209/0.3199, allocations: 55.42 kB / 0.5332 GB, free: 4.66 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001215/0.32, allocations: 69.19 kB / 0.5333 GB, free: 4.629 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002183/0.3202, allocations: 137.9 kB / 0.5334 GB, free: 4.562 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.92e-07/0.3202, allocations: 0 / 0.5334 GB, free: 4.562 MB / 382.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002939/0.3205, allocations: 196.8 kB / 0.5336 GB, free: 4.469 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.283e-05/0.3205, allocations: 5.875 kB / 0.5336 GB, free: 4.469 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.558e-06/0.3205, allocations: 0 / 0.5336 GB, free: 4.469 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.502e-05/0.3206, allocations: 2.922 kB / 0.5336 GB, free: 4.469 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003599/0.3209, allocations: 72.44 kB / 0.5337 GB, free: 4.461 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007214/0.3216, allocations: 1.336 MB / 0.535 GB, free: 3.102 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001274/0.3218, allocations: 10.59 kB / 0.535 GB, free: 3.098 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.321e-05/0.3218, allocations: 9.25 kB / 0.535 GB, free: 3.094 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.044e-05/0.3219, allocations: 130.5 kB / 0.5351 GB, free: 2.965 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.194e-05/0.3219, allocations: 22.55 kB / 0.5352 GB, free: 2.953 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000305/0.3222, allocations: 190.1 kB / 0.5353 GB, free: 2.852 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.406e-06/0.3222, allocations: 2.719 kB / 0.5353 GB, free: 2.852 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.234e-06/0.3222, allocations: 4.656 kB / 0.5354 GB, free: 2.848 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.3222, allocations: 2.625 kB / 0.5354 GB, free: 2.848 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006002/0.3228, allocations: 0.5041 MB / 0.5358 GB, free: 2.48 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.522e-06/0.3228, allocations: 0 / 0.5358 GB, free: 2.48 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002109/0.323, allocations: 48 kB / 0.5359 GB, free: 2.473 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.735e-06/0.323, allocations: 5.344 kB / 0.5359 GB, free: 2.469 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.393e-05/0.3231, allocations: 6.094 kB / 0.5359 GB, free: 2.465 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.435e-06/0.3231, allocations: 1.375 kB / 0.5359 GB, free: 2.465 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.3231, allocations: 0.7031 kB / 0.5359 GB, free: 2.465 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000405/0.3235, allocations: 341.1 kB / 0.5362 GB, free: 2.258 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.438e-05/0.3235, allocations: 28.94 kB / 0.5363 GB, free: 2.242 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.73e-05/0.3236, allocations: 9.719 kB / 0.5363 GB, free: 2.234 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001639/0.3237, allocations: 9.703 kB / 0.5363 GB, free: 2.23 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.17e-05/0.3238, allocations: 10.86 kB / 0.5363 GB, free: 2.23 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.678e-06/0.3238, allocations: 4.453 kB / 0.5363 GB, free: 2.23 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001319/0.3239, allocations: 169.9 kB / 0.5365 GB, free: 2.121 MB / 382.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3239, allocations: 5.344 kB / 0.5365 GB, free: 2.117 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002715/0.3242, allocations: 42.22 kB / 0.5365 GB, free: 2.113 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 7.763e-05/0.3243, allocations: 99.86 kB / 0.5366 GB, free: 2.02 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004376/0.3247, allocations: 152.1 kB / 0.5367 GB, free: 1.98 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.3247, allocations: 3.938 kB / 0.5367 GB, free: 1.977 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001284/0.3248, allocations: 70.34 kB / 0.5368 GB, free: 1.957 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003735/0.3252, allocations: 41.44 kB / 0.5369 GB, free: 1.941 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001022/0.3262, allocations: 0.6726 MB / 0.5375 GB, free: 1.465 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001723/0.3264, allocations: 0.753 MB / 0.5382 GB, free: 0.7578 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.059e-05/0.3265, allocations: 19.56 kB / 0.5383 GB, free: 0.75 MB / 382.1 MB Notification: Performance of SimCode: time 3.01e-07/0.3265, allocations: 0 / 0.5383 GB, free: 0.75 MB / 382.1 MB Notification: Performance of Templates: time 0.005073/0.3315, allocations: 2.989 MB / 0.5412 GB, free: 15.93 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f ThermoPower_4.0.0-dev_ThermoPower.Test.ElectricalComponents.TestElectrical4.makefile [Timeout 660] (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 & ./ThermoPower_4.0.0-dev_ThermoPower.Test.ElectricalComponents.TestElectrical4 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoPower_4.0.0-dev_ThermoPower.Test.ElectricalComponents.TestElectrical4.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 6.826350956922397] Failed to read output from testmodel.py, exit status != 0: 0.3399306470528245 0.353660207 0.035562608 Calling exit ...