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.001346/0.001346, allocations: 77.59 kB / 20.52 MB, free: 1.367 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.001468/0.001468, allocations: 163.4 kB / 23.78 MB, free: 4.539 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.413/1.413, allocations: 177.2 MB / 204.2 MB, free: 9.277 MB / 190.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.1378/0.1378, allocations: 19.7 MB / 280.3 MB, free: 13.06 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.002146/0.002146, allocations: 70.25 kB / 416.8 MB, free: 0.7227 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.244/0.2462, allocations: 60.46 MB / 477.3 MB, free: 15.55 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical4): time 0.00343/0.2496, allocations: 2.181 MB / 479.5 MB, free: 13.89 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001126/0.2507, allocations: 0.6179 MB / 480.1 MB, free: 13.4 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001113/0.2508, allocations: 7.156 kB / 480.1 MB, free: 13.39 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001266/0.251, allocations: 29.78 kB / 480.1 MB, free: 13.37 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002387/0.2512, allocations: 89.8 kB / 480.2 MB, free: 13.29 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001706/0.2514, allocations: 56.7 kB / 480.3 MB, free: 13.24 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003318/0.2517, allocations: 274.6 kB / 480.5 MB, free: 13.08 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001435/0.2518, allocations: 49.95 kB / 480.6 MB, free: 13.04 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002771/0.2521, allocations: 170.5 kB / 480.8 MB, free: 12.94 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001711/0.2523, allocations: 101.5 kB / 480.9 MB, free: 12.87 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.192e-05/0.2523, allocations: 22.56 kB / 480.9 MB, free: 12.87 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.143e-05/0.2524, allocations: 22.69 kB / 480.9 MB, free: 12.86 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.402e-05/0.2524, allocations: 46.75 kB / 481 MB, free: 12.82 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001206/0.2526, allocations: 103.7 kB / 481.1 MB, free: 12.76 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002924/0.2528, allocations: 223 kB / 481.3 MB, free: 12.61 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.935e-06/0.2528, allocations: 0 / 481.3 MB, free: 12.61 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.233e-06/0.2529, allocations: 0 / 481.3 MB, free: 12.61 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.591e-06/0.2529, allocations: 0 / 481.3 MB, free: 12.61 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.00093/0.2538, allocations: 0.4898 MB / 481.8 MB, free: 12.18 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.08e-05/0.2538, allocations: 13.66 kB / 481.8 MB, free: 12.18 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001016/0.2539, allocations: 34.88 kB / 481.8 MB, free: 12.16 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003451/0.2543, allocations: 213.2 kB / 482 MB, free: 11.96 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.701e-05/0.2543, allocations: 11.28 kB / 482 MB, free: 11.95 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.955e-05/0.2543, allocations: 19.5 kB / 482 MB, free: 11.95 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003424/0.2547, allocations: 178.5 kB / 482.2 MB, free: 11.82 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.281e-05/0.2547, allocations: 0 / 482.2 MB, free: 11.82 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.779e-05/0.2547, allocations: 5.406 kB / 482.2 MB, free: 11.82 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.091e-06/0.2547, allocations: 4.25 kB / 482.2 MB, free: 11.82 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002811/0.255, allocations: 118.7 kB / 482.3 MB, free: 11.76 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009256/0.2559, allocations: 0.5114 MB / 482.9 MB, free: 11.32 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002625/0.2562, allocations: 135.8 kB / 483 MB, free: 11.24 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001477/0.2563, allocations: 67.48 kB / 483.1 MB, free: 11.21 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.751e-05/0.2563, allocations: 10.8 kB / 483.1 MB, free: 11.2 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.092e-05/0.2564, allocations: 36.44 kB / 483.1 MB, free: 11.16 MB / 382.1 MB Notification: Performance of pre-optimization done (n=17): time 1.333e-06/0.2564, allocations: 0 / 483.1 MB, free: 11.16 MB / 382.1 MB Notification: Performance of matching and sorting (n=18): time 0.001077/0.2575, allocations: 488.1 kB / 483.6 MB, free: 10.83 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.67e-05/0.2575, allocations: 62.08 kB / 483.6 MB, free: 10.76 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000255/0.2578, allocations: 233.6 kB / 483.9 MB, free: 10.59 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.422e-05/0.2578, allocations: 30.8 kB / 483.9 MB, free: 10.55 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001102/0.2579, allocations: 144.1 kB / 484 MB, free: 10.42 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.883e-05/0.2579, allocations: 66.44 kB / 484.1 MB, free: 10.36 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.748e-05/0.258, allocations: 39.98 kB / 484.1 MB, free: 10.33 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000159/0.2582, allocations: 332.7 kB / 484.5 MB, free: 10 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001324/0.2583, allocations: 55.73 kB / 484.5 MB, free: 9.973 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001488/0.2585, allocations: 82.72 kB / 484.6 MB, free: 9.922 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002659/0.2587, allocations: 129.1 kB / 484.7 MB, free: 9.852 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.376e-06/0.2587, allocations: 5.062 kB / 484.7 MB, free: 9.848 MB / 382.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.000361/0.2591, allocations: 195.4 kB / 484.9 MB, free: 9.742 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.222e-05/0.2591, allocations: 5.375 kB / 484.9 MB, free: 9.742 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.208e-06/0.2591, allocations: 1.125 kB / 484.9 MB, free: 9.742 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.285e-05/0.2591, allocations: 1.062 kB / 484.9 MB, free: 9.742 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003938/0.2595, allocations: 71.28 kB / 485 MB, free: 9.723 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001212/0.2607, allocations: 1.321 MB / 486.3 MB, free: 8.367 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001499/0.2609, allocations: 16.03 kB / 486.3 MB, free: 8.355 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.211e-05/0.2609, allocations: 5.25 kB / 486.3 MB, free: 8.355 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.0001281/0.261, allocations: 135.1 kB / 486.5 MB, free: 8.223 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.825e-05/0.2611, allocations: 25.55 kB / 486.5 MB, free: 8.207 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003637/0.2614, allocations: 182.7 kB / 486.7 MB, free: 8.09 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.076e-06/0.2614, allocations: 2.312 kB / 486.7 MB, free: 8.09 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.937e-06/0.2614, allocations: 3.938 kB / 486.7 MB, free: 8.086 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.2614, allocations: 1.281 kB / 486.7 MB, free: 8.086 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007096/0.2621, allocations: 469.2 kB / 487.1 MB, free: 7.711 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.2621, allocations: 4 kB / 487.1 MB, free: 7.707 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002325/0.2624, allocations: 38.11 kB / 487.2 MB, free: 7.703 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.695e-06/0.2624, allocations: 1.25 kB / 487.2 MB, free: 7.703 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.744e-05/0.2624, allocations: 9.25 kB / 487.2 MB, free: 7.695 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.054e-06/0.2624, allocations: 1.219 kB / 487.2 MB, free: 7.695 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.2624, allocations: 0 / 487.2 MB, free: 7.695 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000508/0.2629, allocations: 340.4 kB / 487.5 MB, free: 7.465 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.05e-05/0.263, allocations: 31.25 kB / 487.6 MB, free: 7.441 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.145e-05/0.263, allocations: 9.062 kB / 487.6 MB, free: 7.434 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001572/0.2632, allocations: 7.938 kB / 487.6 MB, free: 7.43 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.192e-05/0.2632, allocations: 16.97 kB / 487.6 MB, free: 7.418 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.896e-06/0.2632, allocations: 2.781 kB / 487.6 MB, free: 7.418 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001786/0.2634, allocations: 172.8 kB / 487.8 MB, free: 7.297 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2634, allocations: 0 / 487.8 MB, free: 7.297 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002875/0.2637, allocations: 43.5 kB / 487.8 MB, free: 7.293 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 9.846e-05/0.2638, allocations: 102 kB / 487.9 MB, free: 7.195 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005094/0.2643, allocations: 164.8 kB / 488.1 MB, free: 7.129 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.2643, allocations: 3.938 kB / 488.1 MB, free: 7.125 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001703/0.2645, allocations: 71.69 kB / 488.1 MB, free: 7.059 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003721/0.2649, allocations: 35.39 kB / 488.2 MB, free: 7.023 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001213/0.2661, allocations: 0.6644 MB / 488.8 MB, free: 6.336 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001526/0.2662, allocations: 147 kB / 489 MB, free: 6.168 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 9.264e-05/0.2663, allocations: 25.62 kB / 489 MB, free: 6.145 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.719e-05/0.2664, allocations: 20.5 kB / 489 MB, free: 6.125 MB / 382.1 MB Notification: Performance of SimCode: time 3.4e-07/0.2664, allocations: 0 / 489 MB, free: 6.125 MB / 382.1 MB Notification: Performance of Templates: time 0.006368/0.2727, allocations: 2.444 MB / 491.5 MB, free: 3.707 MB / 382.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: 4.535420184955001] Failed to read output from testmodel.py, exit status != 0: 0.281183322891593 0.30500170400000004 0.04731722 Calling exit ...