Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo", uses=false) Using package ThermoPower with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ThermoPower.Test.ElectricalComponents.TestElectrical4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4") translateModel(ThermoPower.Test.ElectricalComponents.TestElectrical4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001052/0.001052, allocations: 179.9 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.294/1.294, allocations: 205.4 MB / 222.5 MB, free: 9.113 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008506/0.0008509, allocations: 96.33 kB / 270.9 MB, free: 8.371 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.362/0.362, allocations: 48.78 MB / 367.9 MB, free: 47.4 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002857/0.0002857, allocations: 12 kB / 438.6 MB, free: 10.98 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1012/0.1015, allocations: 60.25 MB / 498.9 MB, free: 14.59 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2795/0.3811, allocations: 86.7 MB / 0.5719 GB, free: 11.95 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002396/0.3814, allocations: 71.95 kB / 0.5719 GB, free: 11.88 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01005/0.3914, allocations: 3.972 MB / 0.5758 GB, free: 7.961 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.933e-06/0.3915, allocations: 3.938 kB / 0.5758 GB, free: 7.957 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.568e-05/0.3915, allocations: 4 kB / 0.5758 GB, free: 7.953 MB / 394.7 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.0006812/0.3922, allocations: 0.5216 MB / 0.5763 GB, free: 7.387 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.059e-05/0.3922, allocations: 14.22 kB / 0.5763 GB, free: 7.375 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.497e-05/0.3923, allocations: 27.62 kB / 0.5764 GB, free: 7.348 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003406/0.3926, allocations: 265.6 kB / 0.5766 GB, free: 7.051 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.732e-05/0.3927, allocations: 12 kB / 0.5766 GB, free: 7.039 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.786e-05/0.3927, allocations: 16 kB / 0.5766 GB, free: 7.023 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002805/0.393, allocations: 182.4 kB / 0.5768 GB, free: 6.836 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.639e-05/0.393, allocations: 7.938 kB / 0.5768 GB, free: 6.828 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.85e-05/0.393, allocations: 4 kB / 0.5768 GB, free: 6.824 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.636e-06/0.3931, allocations: 4 kB / 0.5768 GB, free: 6.82 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002509/0.3933, allocations: 135.7 kB / 0.577 GB, free: 6.688 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000817/0.3941, allocations: 0.6478 MB / 0.5776 GB, free: 5.98 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002338/0.3944, allocations: 148.1 kB / 0.5777 GB, free: 5.828 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.083e-05/0.3944, allocations: 0 / 0.5777 GB, free: 5.828 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.532e-05/0.3944, allocations: 44.86 kB / 0.5778 GB, free: 5.777 MB / 394.7 MB Notification: Performance of pre-optimization done (n=18): time 1.152e-06/0.3944, allocations: 0 / 0.5778 GB, free: 5.777 MB / 394.7 MB Notification: Performance of matching and sorting (n=19): time 0.0009412/0.3954, allocations: 0.5993 MB / 0.5784 GB, free: 5.125 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.979e-05/0.3954, allocations: 55.34 kB / 0.5784 GB, free: 5.059 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001539/0.3956, allocations: 200.2 kB / 0.5786 GB, free: 4.859 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.52e-05/0.3956, allocations: 33.7 kB / 0.5786 GB, free: 4.82 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.453e-05/0.3957, allocations: 140.4 kB / 0.5788 GB, free: 4.68 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.341e-05/0.3957, allocations: 67.02 kB / 0.5788 GB, free: 4.613 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.365e-06/0.3957, allocations: 8 kB / 0.5788 GB, free: 4.605 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 4.936e-05/0.3958, allocations: 334.8 kB / 0.5792 GB, free: 4.27 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001155/0.3959, allocations: 59.03 kB / 0.5792 GB, free: 4.215 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001167/0.396, allocations: 83.86 kB / 0.5793 GB, free: 4.129 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001196/0.3962, allocations: 64.84 kB / 0.5794 GB, free: 4.066 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.082e-06/0.3962, allocations: 0 / 0.5794 GB, free: 4.066 MB / 394.7 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0003062/0.3965, allocations: 205.4 kB / 0.5796 GB, free: 3.863 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.348e-05/0.3965, allocations: 12.03 kB / 0.5796 GB, free: 3.852 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.529e-06/0.3965, allocations: 0 / 0.5796 GB, free: 3.852 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.229e-05/0.3965, allocations: 0 / 0.5796 GB, free: 3.852 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003821/0.3969, allocations: 75.94 kB / 0.5796 GB, free: 3.777 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007615/0.3977, allocations: 1.345 MB / 0.581 GB, free: 2.297 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001408/0.3978, allocations: 12.03 kB / 0.581 GB, free: 2.285 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.537e-05/0.3979, allocations: 11.02 kB / 0.581 GB, free: 2.277 MB / 394.7 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 (25): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 9.74e-05/0.398, allocations: 142 kB / 0.5811 GB, free: 2.129 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.181e-05/0.398, allocations: 27.66 kB / 0.5811 GB, free: 2.102 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003257/0.3983, allocations: 203.9 kB / 0.5813 GB, free: 1.902 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.554e-06/0.3984, allocations: 0 / 0.5813 GB, free: 1.902 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.363e-06/0.3984, allocations: 0 / 0.5813 GB, free: 1.902 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.108e-06/0.3984, allocations: 7.984 kB / 0.5813 GB, free: 1.895 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000583/0.399, allocations: 0.5639 MB / 0.5819 GB, free: 1.277 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.983e-06/0.399, allocations: 0 / 0.5819 GB, free: 1.277 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002292/0.3992, allocations: 50.92 kB / 0.5819 GB, free: 1.23 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.036e-06/0.3992, allocations: 3.984 kB / 0.5819 GB, free: 1.227 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.402e-05/0.3992, allocations: 4 kB / 0.582 GB, free: 1.223 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.462e-06/0.3993, allocations: 4 kB / 0.582 GB, free: 1.219 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.3993, allocations: 0 / 0.582 GB, free: 1.219 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004176/0.3997, allocations: 379 kB / 0.5823 GB, free: 0.832 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.732e-05/0.3998, allocations: 112.8 kB / 0.5824 GB, free: 0.7031 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.621e-05/0.3998, allocations: 0 / 0.5824 GB, free: 0.7031 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001525/0.4, allocations: 12 kB / 0.5824 GB, free: 0.6914 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.239e-05/0.4, allocations: 11.97 kB / 0.5824 GB, free: 0.6797 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.022e-05/0.4, allocations: 8 kB / 0.5825 GB, free: 0.6719 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001039/0.4001, allocations: 164.5 kB / 0.5826 GB, free: 0.5078 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4001, allocations: 0 / 0.5826 GB, free: 0.5078 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002739/0.4004, allocations: 56 kB / 0.5827 GB, free: 464 kB / 394.7 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 (21): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001143/0.4005, allocations: 107.2 kB / 0.5828 GB, free: 348 kB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0004023/0.4009, allocations: 176.9 kB / 0.5829 GB, free: 172 kB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.407e-06/0.401, allocations: 1.375 kB / 0.5829 GB, free: 172 kB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000132/0.4011, allocations: 88.03 kB / 0.583 GB, free: 88 kB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000311/0.4014, allocations: 25.5 kB / 0.583 GB, free: 64 kB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001223/0.4027, allocations: 0.8272 MB / 0.5839 GB, free: 15.23 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003297/0.403, allocations: 0.756 MB / 0.5846 GB, free: 14.44 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 9.776e-05/0.4031, allocations: 23.2 kB / 0.5846 GB, free: 14.42 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.483e-05/0.4032, allocations: 27.42 kB / 0.5846 GB, free: 14.39 MB / 410.7 MB Notification: Performance of SimCode: time 2.4e-07/0.4032, allocations: 0 / 0.5846 GB, free: 14.39 MB / 410.7 MB Notification: Performance of Templates: time 0.004951/0.4081, allocations: 2.095 MB / 0.5867 GB, free: 12.33 MB / 410.7 MB make -j1 -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.makefile (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.sim & ./ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.pipe 2>&1)