Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.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.TestElectrical3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3") translateModel(ThermoPower.Test.ElectricalComponents.TestElectrical3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001449/0.001449, allocations: 175.7 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.282/1.282, allocations: 205.4 MB / 223.5 MB, free: 9.023 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.000739/0.0007391, allocations: 86.36 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.361/0.361, allocations: 48.78 MB / 369 MB, free: 47.37 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003681/0.0003682, allocations: 8 kB / 439.9 MB, free: 10.71 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1042/0.1045, allocations: 60.26 MB / 0.4884 GB, free: 14.31 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2588/0.3634, allocations: 86.99 MB / 0.5734 GB, free: 11.34 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001958/0.3636, allocations: 82.25 kB / 0.5734 GB, free: 11.27 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009384/0.373, allocations: 3.96 MB / 0.5773 GB, free: 7.363 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.773e-06/0.373, allocations: 3.938 kB / 0.5773 GB, free: 7.359 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.179e-05/0.3731, allocations: 12 kB / 0.5773 GB, free: 7.348 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: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.0005707/0.3736, allocations: 0.5218 MB / 0.5778 GB, free: 6.777 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.079e-05/0.3737, allocations: 8.031 kB / 0.5778 GB, free: 6.77 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.762e-05/0.3737, allocations: 38.62 kB / 0.5779 GB, free: 6.734 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002699/0.374, allocations: 274.7 kB / 0.5781 GB, free: 6.43 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.095e-05/0.3741, allocations: 38.27 kB / 0.5782 GB, free: 6.387 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.388e-05/0.3741, allocations: 24.28 kB / 0.5782 GB, free: 6.363 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002678/0.3744, allocations: 186 kB / 0.5784 GB, free: 6.172 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.35e-05/0.3744, allocations: 7.938 kB / 0.5784 GB, free: 6.164 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.566e-05/0.3744, allocations: 4.562 kB / 0.5784 GB, free: 6.16 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.069e-06/0.3744, allocations: 4 kB / 0.5784 GB, free: 6.156 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002535/0.3747, allocations: 135.3 kB / 0.5785 GB, free: 6.027 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006956/0.3754, allocations: 0.6673 MB / 0.5792 GB, free: 5.301 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003009/0.3757, allocations: 159.9 kB / 0.5793 GB, free: 5.137 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001422/0.3759, allocations: 99.11 kB / 0.5794 GB, free: 5.039 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.99e-05/0.3759, allocations: 3.938 kB / 0.5794 GB, free: 5.035 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.16e-05/0.3759, allocations: 38.5 kB / 0.5795 GB, free: 4.988 MB / 394.7 MB Notification: Performance of pre-optimization done (n=19): time 1.293e-06/0.3759, allocations: 0 / 0.5795 GB, free: 4.988 MB / 394.7 MB Notification: Performance of matching and sorting (n=20): time 0.001226/0.3771, allocations: 0.7402 MB / 0.5802 GB, free: 4.18 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.007e-05/0.3772, allocations: 51.41 kB / 0.5802 GB, free: 4.117 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001622/0.3774, allocations: 237 kB / 0.5805 GB, free: 3.879 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.294e-05/0.3774, allocations: 37.7 kB / 0.5805 GB, free: 3.836 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.72e-05/0.3774, allocations: 145 kB / 0.5806 GB, free: 3.691 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.217e-05/0.3775, allocations: 67.02 kB / 0.5807 GB, free: 3.625 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.995e-06/0.3775, allocations: 4 kB / 0.5807 GB, free: 3.621 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 4.28e-05/0.3775, allocations: 330.8 kB / 0.581 GB, free: 3.289 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001262/0.3777, allocations: 67.03 kB / 0.5811 GB, free: 3.227 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000127/0.3778, allocations: 92.73 kB / 0.5812 GB, free: 3.133 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002447/0.378, allocations: 162 kB / 0.5813 GB, free: 2.969 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.02e-07/0.3781, allocations: 3 kB / 0.5813 GB, free: 2.969 MB / 394.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003188/0.3784, allocations: 226.5 kB / 0.5815 GB, free: 2.742 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.091e-05/0.3784, allocations: 4 kB / 0.5815 GB, free: 2.738 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.978e-06/0.3784, allocations: 0 / 0.5815 GB, free: 2.738 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.193e-05/0.3784, allocations: 8.031 kB / 0.5816 GB, free: 2.73 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003831/0.3788, allocations: 83.89 kB / 0.5816 GB, free: 2.648 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.071e-06/0.3788, allocations: 224 / 0.5816 GB, free: 2.648 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001277/0.379, allocations: 11.98 kB / 0.5816 GB, free: 2.637 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.215e-05/0.379, allocations: 11.94 kB / 0.5817 GB, free: 2.625 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: 1 (Breaker1.closed) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * 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 prepare postOptimizeDAE: time 7.889e-05/0.3791, allocations: 133.8 kB / 0.5818 GB, free: 2.484 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.028e-05/0.3791, allocations: 27.66 kB / 0.5818 GB, free: 2.457 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003506/0.3795, allocations: 213 kB / 0.582 GB, free: 2.246 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.966e-06/0.3795, allocations: 4 kB / 0.582 GB, free: 2.242 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.356e-06/0.3795, allocations: 0 / 0.582 GB, free: 2.242 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.028e-06/0.3795, allocations: 7.984 kB / 0.582 GB, free: 2.234 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005844/0.3801, allocations: 0.5796 MB / 0.5826 GB, free: 1.602 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.3801, allocations: 2.188 kB / 0.5826 GB, free: 1.602 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003738/0.3805, allocations: 67.91 kB / 0.5827 GB, free: 1.535 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.474e-06/0.3805, allocations: 0 / 0.5827 GB, free: 1.535 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.477e-05/0.3805, allocations: 8 kB / 0.5827 GB, free: 1.527 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.3805, allocations: 0 / 0.5827 GB, free: 1.527 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.12e-07/0.3805, allocations: 0 / 0.5827 GB, free: 1.527 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004482/0.381, allocations: 391 kB / 0.583 GB, free: 1.129 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.461e-05/0.3811, allocations: 109 kB / 0.5831 GB, free: 1.004 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.902e-05/0.3811, allocations: 7.984 kB / 0.5832 GB, free: 0.9961 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000149/0.3812, allocations: 19.89 kB / 0.5832 GB, free: 0.9766 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.587e-05/0.3813, allocations: 15.98 kB / 0.5832 GB, free: 0.9609 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.756e-06/0.3813, allocations: 4 kB / 0.5832 GB, free: 0.957 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001067/0.3814, allocations: 168.5 kB / 0.5834 GB, free: 0.7891 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3814, allocations: 3.938 kB / 0.5834 GB, free: 0.7852 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002578/0.3817, allocations: 56 kB / 0.5834 GB, free: 0.7305 MB / 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: 1 (Breaker1.closed) * 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 9.392e-05/0.3818, allocations: 114.4 kB / 0.5835 GB, free: 0.6133 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0002968/0.3821, allocations: 159.9 kB / 0.5837 GB, free: 468 kB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.462e-06/0.3821, allocations: 0 / 0.5837 GB, free: 468 kB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000132/0.3823, allocations: 88.45 kB / 0.5838 GB, free: 380 kB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003739/0.3826, allocations: 47.38 kB / 0.5838 GB, free: 336 kB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001035/0.3837, allocations: 0.7985 MB / 0.5846 GB, free: 15.52 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002964/0.384, allocations: 0.7482 MB / 0.5853 GB, free: 14.74 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001037/0.3841, allocations: 27.67 kB / 0.5853 GB, free: 14.71 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.39e-05/0.3842, allocations: 19.44 kB / 0.5854 GB, free: 14.69 MB / 410.7 MB Notification: Performance of SimCode: time 2.5e-07/0.3842, allocations: 0 / 0.5854 GB, free: 14.69 MB / 410.7 MB Notification: Performance of Templates: time 0.00435/0.3885, allocations: 1.907 MB / 0.5872 GB, free: 12.81 MB / 410.7 MB make -j1 -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.makefile (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.sim & ./ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.pipe 2>&1)