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.0009947/0.0009947, allocations: 176.1 kB / 17.4 MB, free: 4.418 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.293/1.293, allocations: 205.4 MB / 223.5 MB, free: 9.027 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.0007495/0.0007495, allocations: 89.41 kB / 271.9 MB, free: 8.25 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.3846/0.3846, allocations: 48.78 MB / 369 MB, free: 47.38 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003538/0.0003539, allocations: 12 kB / 439.9 MB, free: 10.71 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1101/0.1105, allocations: 60.25 MB / 0.4884 GB, free: 14.32 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3138/0.4243, allocations: 86.73 MB / 0.5731 GB, free: 11.62 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002181/0.4245, allocations: 81.11 kB / 0.5732 GB, free: 11.55 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009725/0.4343, allocations: 3.983 MB / 0.5771 GB, free: 7.621 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.124e-06/0.4343, allocations: 0 / 0.5771 GB, free: 7.621 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.662e-05/0.4343, allocations: 4 kB / 0.5771 GB, free: 7.617 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.0006502/0.435, allocations: 0.5256 MB / 0.5776 GB, free: 7.043 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.797e-05/0.435, allocations: 10.22 kB / 0.5776 GB, free: 7.035 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.969e-05/0.4351, allocations: 28.56 kB / 0.5776 GB, free: 7.008 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002992/0.4354, allocations: 274.7 kB / 0.5779 GB, free: 6.703 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.088e-05/0.4354, allocations: 12.38 kB / 0.5779 GB, free: 6.691 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.854e-05/0.4355, allocations: 16.38 kB / 0.5779 GB, free: 6.676 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002697/0.4358, allocations: 179.4 kB / 0.5781 GB, free: 6.492 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.622e-05/0.4358, allocations: 192 / 0.5781 GB, free: 6.492 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.742e-05/0.4358, allocations: 12.5 kB / 0.5781 GB, free: 6.48 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.051e-06/0.4358, allocations: 4 kB / 0.5781 GB, free: 6.477 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002402/0.4361, allocations: 131.7 kB / 0.5782 GB, free: 6.348 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008104/0.4369, allocations: 0.65 MB / 0.5789 GB, free: 5.641 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000229/0.4371, allocations: 156 kB / 0.579 GB, free: 5.48 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000127/0.4373, allocations: 76.83 kB / 0.5791 GB, free: 5.402 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.16e-05/0.4373, allocations: 10.19 kB / 0.5791 GB, free: 5.395 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.755e-05/0.4373, allocations: 38.5 kB / 0.5791 GB, free: 5.348 MB / 394.7 MB Notification: Performance of pre-optimization done (n=18): time 1.543e-06/0.4373, allocations: 0 / 0.5791 GB, free: 5.348 MB / 394.7 MB Notification: Performance of matching and sorting (n=19): time 0.0009524/0.4383, allocations: 0.5957 MB / 0.5797 GB, free: 4.703 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.037e-05/0.4383, allocations: 55.41 kB / 0.5798 GB, free: 4.637 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001945/0.4385, allocations: 229 kB / 0.58 GB, free: 4.406 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.378e-05/0.4386, allocations: 29.7 kB / 0.58 GB, free: 4.371 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.685e-05/0.4386, allocations: 144.4 kB / 0.5802 GB, free: 4.227 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.687e-05/0.4387, allocations: 71 kB / 0.5802 GB, free: 4.156 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.175e-06/0.4387, allocations: 0.6562 kB / 0.5802 GB, free: 4.156 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 7.532e-05/0.4388, allocations: 338.8 kB / 0.5805 GB, free: 3.816 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000117/0.4389, allocations: 59.03 kB / 0.5806 GB, free: 3.762 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000114/0.439, allocations: 80.75 kB / 0.5807 GB, free: 3.68 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002299/0.4393, allocations: 144.1 kB / 0.5808 GB, free: 3.535 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.91e-07/0.4393, allocations: 0 / 0.5808 GB, free: 3.535 MB / 394.7 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0003049/0.4396, allocations: 213.3 kB / 0.581 GB, free: 3.324 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.403e-05/0.4396, allocations: 7 kB / 0.581 GB, free: 3.32 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.77e-06/0.4396, allocations: 3.984 kB / 0.581 GB, free: 3.316 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.447e-05/0.4396, allocations: 0 / 0.581 GB, free: 3.316 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003613/0.44, allocations: 75.89 kB / 0.5811 GB, free: 3.242 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000739/0.4408, allocations: 1.341 MB / 0.5824 GB, free: 1.766 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001347/0.4409, allocations: 13.06 kB / 0.5824 GB, free: 1.754 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.199e-05/0.4409, allocations: 7.938 kB / 0.5824 GB, free: 1.746 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.544e-05/0.441, allocations: 141.7 kB / 0.5826 GB, free: 1.598 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.869e-05/0.4411, allocations: 19.72 kB / 0.5826 GB, free: 1.578 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003164/0.4414, allocations: 208.3 kB / 0.5828 GB, free: 1.371 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.358e-06/0.4414, allocations: 4 kB / 0.5828 GB, free: 1.367 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.443e-06/0.4414, allocations: 0 / 0.5828 GB, free: 1.367 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.506e-06/0.4414, allocations: 0 / 0.5828 GB, free: 1.367 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005862/0.442, allocations: 0.5658 MB / 0.5833 GB, free: 0.75 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.425e-06/0.442, allocations: 4 kB / 0.5833 GB, free: 0.7461 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002153/0.4423, allocations: 51.91 kB / 0.5834 GB, free: 0.6953 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.607e-06/0.4423, allocations: 4 kB / 0.5834 GB, free: 0.6914 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.649e-05/0.4423, allocations: 4 kB / 0.5834 GB, free: 0.6875 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.973e-06/0.4423, allocations: 0 / 0.5834 GB, free: 0.6875 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.4423, allocations: 0 / 0.5834 GB, free: 0.6875 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000425/0.4427, allocations: 375 kB / 0.5838 GB, free: 312 kB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.504e-05/0.4428, allocations: 108.9 kB / 0.5839 GB, free: 184 kB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.626e-05/0.4428, allocations: 7.984 kB / 0.5839 GB, free: 176 kB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001399/0.443, allocations: 8 kB / 0.5839 GB, free: 168 kB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.771e-05/0.443, allocations: 19.92 kB / 0.5839 GB, free: 148 kB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.979e-06/0.4431, allocations: 8 kB / 0.5839 GB, free: 140 kB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001549/0.4432, allocations: 164.5 kB / 0.5841 GB, free: 15.97 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4432, allocations: 0 / 0.5841 GB, free: 15.97 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002991/0.4435, allocations: 55.98 kB / 0.5841 GB, free: 15.92 MB / 410.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.0001682/0.4437, allocations: 118.4 kB / 0.5842 GB, free: 15.8 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0005451/0.4443, allocations: 187.7 kB / 0.5844 GB, free: 15.61 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.4443, allocations: 0 / 0.5844 GB, free: 15.61 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001472/0.4444, allocations: 80.41 kB / 0.5845 GB, free: 15.54 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003678/0.4448, allocations: 38.23 kB / 0.5845 GB, free: 15.5 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001219/0.446, allocations: 0.8103 MB / 0.5853 GB, free: 14.68 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000312/0.4464, allocations: 0.7599 MB / 0.5861 GB, free: 13.89 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001166/0.4465, allocations: 32.98 kB / 0.5861 GB, free: 13.86 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.35e-05/0.4466, allocations: 19.44 kB / 0.5861 GB, free: 13.84 MB / 410.7 MB Notification: Performance of SimCode: time 2.2e-07/0.4466, allocations: 0 / 0.5861 GB, free: 13.84 MB / 410.7 MB Notification: Performance of Templates: time 0.005328/0.4519, allocations: 2.214 MB / 0.5883 GB, free: 11.66 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)