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.001335/0.001335, allocations: 75.86 kB / 20.53 MB, free: 1.211 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.001472/0.001472, allocations: 170.8 kB / 23.79 MB, free: 4.215 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.421/1.421, allocations: 177.2 MB / 204.2 MB, free: 9.281 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.1368/0.1368, allocations: 19.7 MB / 280.3 MB, free: 13.05 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.TestElectrical3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_4.0.0-dev_ThermoPower.Test.ElectricalComponents.TestElectrical3") translateModel(ThermoPower.Test.ElectricalComponents.TestElectrical3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_4.0.0-dev_ThermoPower.Test.ElectricalComponents.TestElectrical3") [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.002159/0.002159, allocations: 71.89 kB / 416.8 MB, free: 0.7188 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2443/0.2465, allocations: 60.46 MB / 477.3 MB, free: 15.56 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical3): time 0.003514/0.25, allocations: 2.196 MB / 479.5 MB, free: 13.88 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001124/0.2511, allocations: 0.6174 MB / 480.1 MB, free: 13.39 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001089/0.2512, allocations: 2.344 kB / 480.1 MB, free: 13.39 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001469/0.2513, allocations: 33.97 kB / 480.1 MB, free: 13.36 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002408/0.2516, allocations: 84.61 kB / 480.2 MB, free: 13.29 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001608/0.2518, allocations: 61.48 kB / 480.3 MB, free: 13.24 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003217/0.2521, allocations: 290.5 kB / 480.6 MB, free: 13.06 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001422/0.2522, allocations: 47.19 kB / 480.6 MB, free: 13.04 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002926/0.2525, allocations: 181.2 kB / 480.8 MB, free: 12.92 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001718/0.2527, allocations: 101.7 kB / 480.9 MB, free: 12.86 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.356e-05/0.2527, allocations: 19.44 kB / 480.9 MB, free: 12.86 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.496e-05/0.2528, allocations: 24.22 kB / 480.9 MB, free: 12.85 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.333e-05/0.2528, allocations: 46.72 kB / 481 MB, free: 12.81 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001148/0.2529, allocations: 111.6 kB / 481.1 MB, free: 12.74 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003037/0.2532, allocations: 227.9 kB / 481.3 MB, free: 12.59 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.2533, allocations: 0 / 481.3 MB, free: 12.59 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.2533, allocations: 1.344 kB / 481.3 MB, free: 12.59 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.821e-06/0.2533, allocations: 0 / 481.3 MB, free: 12.59 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.0009693/0.2542, allocations: 0.5047 MB / 481.8 MB, free: 12.14 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.94e-05/0.2543, allocations: 10.53 kB / 481.8 MB, free: 12.14 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000106/0.2544, allocations: 34.88 kB / 481.9 MB, free: 12.12 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003513/0.2547, allocations: 207.4 kB / 482.1 MB, free: 11.93 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.963e-05/0.2548, allocations: 67.75 kB / 482.1 MB, free: 11.86 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.681e-05/0.2548, allocations: 15.66 kB / 482.1 MB, free: 11.86 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003589/0.2552, allocations: 180.2 kB / 482.3 MB, free: 11.73 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.51e-05/0.2552, allocations: 5.328 kB / 482.3 MB, free: 11.73 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.779e-05/0.2552, allocations: 9.281 kB / 482.3 MB, free: 11.72 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.67e-06/0.2552, allocations: 3.594 kB / 482.3 MB, free: 11.72 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003122/0.2555, allocations: 130.3 kB / 482.5 MB, free: 11.66 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009437/0.2565, allocations: 0.5298 MB / 483 MB, free: 11.2 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003711/0.2569, allocations: 142.7 kB / 483.1 MB, free: 11.12 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001693/0.257, allocations: 79.42 kB / 483.2 MB, free: 11.08 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.79e-05/0.257, allocations: 1.25 kB / 483.2 MB, free: 11.08 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.166e-05/0.2571, allocations: 32.75 kB / 483.2 MB, free: 11.04 MB / 382.1 MB Notification: Performance of pre-optimization done (n=18): time 1.974e-06/0.2571, allocations: 0 / 483.2 MB, free: 11.04 MB / 382.1 MB Notification: Performance of matching and sorting (n=19): time 0.001158/0.2582, allocations: 0.5183 MB / 483.8 MB, free: 10.69 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.513e-05/0.2583, allocations: 62.94 kB / 483.8 MB, free: 10.62 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000257/0.2585, allocations: 234.9 kB / 484.1 MB, free: 10.45 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.479e-05/0.2586, allocations: 31.02 kB / 484.1 MB, free: 10.42 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000119/0.2587, allocations: 151.9 kB / 484.2 MB, free: 10.27 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.043e-05/0.2587, allocations: 67.17 kB / 484.3 MB, free: 10.21 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.747e-05/0.2588, allocations: 44.95 kB / 484.3 MB, free: 10.18 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001661/0.259, allocations: 336 kB / 484.7 MB, free: 9.848 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001529/0.2591, allocations: 59.34 kB / 484.7 MB, free: 9.82 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001655/0.2593, allocations: 86.92 kB / 484.8 MB, free: 9.766 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003005/0.2596, allocations: 146.7 kB / 485 MB, free: 9.688 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.112e-06/0.2596, allocations: 3.938 kB / 485 MB, free: 9.684 MB / 382.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0004033/0.26, allocations: 203.6 kB / 485.2 MB, free: 9.574 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.248e-05/0.26, allocations: 5.969 kB / 485.2 MB, free: 9.574 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.817e-06/0.26, allocations: 0 / 485.2 MB, free: 9.574 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.595e-05/0.26, allocations: 6.406 kB / 485.2 MB, free: 9.57 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004318/0.2605, allocations: 79.92 kB / 485.2 MB, free: 9.551 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.061e-06/0.2605, allocations: 1.094 kB / 485.2 MB, free: 9.551 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001416/0.2606, allocations: 9.703 kB / 485.3 MB, free: 9.547 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.511e-05/0.2606, allocations: 8.344 kB / 485.3 MB, free: 9.543 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.0001329/0.2608, allocations: 134.9 kB / 485.4 MB, free: 9.41 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.351e-05/0.2608, allocations: 26.36 kB / 485.4 MB, free: 9.395 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.683e-05/0.2609, allocations: 35.98 kB / 485.5 MB, free: 9.363 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.118e-06/0.2609, allocations: 2.406 kB / 485.5 MB, free: 9.363 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.977e-06/0.2609, allocations: 0 / 485.5 MB, free: 9.363 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.2609, allocations: 0 / 485.5 MB, free: 9.363 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007634/0.2617, allocations: 472.5 kB / 485.9 MB, free: 8.988 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.2617, allocations: 0 / 485.9 MB, free: 8.988 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003917/0.2621, allocations: 59.97 kB / 486 MB, free: 8.977 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.265e-06/0.2621, allocations: 1.125 kB / 486 MB, free: 8.977 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.709e-05/0.2621, allocations: 10.34 kB / 486 MB, free: 8.969 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.104e-06/0.2621, allocations: 1.188 kB / 486 MB, free: 8.969 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.2621, allocations: 0 / 486 MB, free: 8.969 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005891/0.2627, allocations: 359.8 kB / 486.3 MB, free: 8.727 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.831e-05/0.2628, allocations: 27.61 kB / 486.4 MB, free: 8.707 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.278e-05/0.2628, allocations: 5.156 kB / 486.4 MB, free: 8.703 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001727/0.263, allocations: 13.58 kB / 486.4 MB, free: 8.695 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.461e-05/0.263, allocations: 15.91 kB / 486.4 MB, free: 8.684 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.165e-05/0.263, allocations: 7.875 kB / 486.4 MB, free: 8.68 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001713/0.2632, allocations: 173.3 kB / 486.6 MB, free: 8.559 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2632, allocations: 3.938 kB / 486.6 MB, free: 8.555 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000292/0.2635, allocations: 47.88 kB / 486.6 MB, free: 8.547 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 9.579e-05/0.2636, allocations: 89.88 kB / 486.7 MB, free: 8.461 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003514/0.2639, allocations: 146.5 kB / 486.9 MB, free: 8.402 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.2639, allocations: 0 / 486.9 MB, free: 8.402 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001579/0.2641, allocations: 78.06 kB / 486.9 MB, free: 8.352 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003836/0.2645, allocations: 35.67 kB / 487 MB, free: 8.316 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0012/0.2657, allocations: 0.6524 MB / 487.6 MB, free: 7.641 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001478/0.2658, allocations: 142.1 kB / 487.8 MB, free: 7.473 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 9.108e-05/0.2659, allocations: 25.94 kB / 487.8 MB, free: 7.445 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.03e-05/0.266, allocations: 20.5 kB / 487.8 MB, free: 7.426 MB / 382.1 MB Notification: Performance of SimCode: time 3.51e-07/0.266, allocations: 0 / 487.8 MB, free: 7.426 MB / 382.1 MB Notification: Performance of Templates: time 0.005774/0.2718, allocations: 2.055 MB / 489.9 MB, free: 5.398 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f ThermoPower_4.0.0-dev_ThermoPower.Test.ElectricalComponents.TestElectrical3.makefile [Timeout 660] (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 & ./ThermoPower_4.0.0-dev_ThermoPower.Test.ElectricalComponents.TestElectrical3 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoPower_4.0.0-dev_ThermoPower.Test.ElectricalComponents.TestElectrical3.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.488270416855812] Failed to read output from testmodel.py, exit status != 0: 0.28004274889826775 0.29488576 0.038462211 Calling exit ...