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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001027/0.001027, allocations: 187.9 kB / 8.133 MB, free: 2.125 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.047/1.047, allocations: 205.2 MB / 213.7 MB, free: 13.86 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.0008495/0.0008495, allocations: 81.56 kB / 261.7 MB, free: 13.62 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2946/0.2946, allocations: 48.74 MB / 358.4 MB, free: 53.08 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 5.36e-06/5.51e-06, allocations: 0 / 424.7 MB, free: 8.215 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1013/0.1013, allocations: 60.26 MB / 485 MB, free: 11.82 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2367/0.338, allocations: 85.88 MB / 0.5575 GB, free: 14.93 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000216/0.3383, allocations: 72.89 kB / 0.5576 GB, free: 14.86 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.0107/0.349, allocations: 3.635 MB / 0.5611 GB, free: 11.27 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.516e-05/0.3491, allocations: 8 kB / 0.5611 GB, free: 11.26 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.0005747/0.3497, allocations: 496.5 kB / 0.5616 GB, free: 10.73 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.618e-05/0.3497, allocations: 12.03 kB / 0.5616 GB, free: 10.72 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.283e-05/0.3498, allocations: 27.62 kB / 0.5616 GB, free: 10.69 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003574/0.3501, allocations: 265.3 kB / 0.5619 GB, free: 10.4 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.127e-05/0.3502, allocations: 4 kB / 0.5619 GB, free: 10.39 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.425e-05/0.3502, allocations: 19.98 kB / 0.5619 GB, free: 10.38 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001824/0.3504, allocations: 87.11 kB / 0.562 GB, free: 10.29 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002138/0.3506, allocations: 142.8 kB / 0.5621 GB, free: 10.14 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.105e-05/0.3506, allocations: 0 / 0.5621 GB, free: 10.14 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.449e-05/0.3506, allocations: 0 / 0.5621 GB, free: 10.14 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.683e-06/0.3507, allocations: 4 kB / 0.5621 GB, free: 10.14 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008034/0.3515, allocations: 0.5999 MB / 0.5627 GB, free: 9.492 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001401/0.3516, allocations: 93.73 kB / 0.5628 GB, free: 9.395 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.739e-05/0.3517, allocations: 60.86 kB / 0.5629 GB, free: 9.332 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.084e-05/0.3517, allocations: 7.922 kB / 0.5629 GB, free: 9.324 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.911e-05/0.3518, allocations: 38.59 kB / 0.5629 GB, free: 9.277 MB / 394.7 MB Notification: Performance of pre-optimization done (n=18): time 1.323e-06/0.3518, allocations: 0 / 0.5629 GB, free: 9.277 MB / 394.7 MB Notification: Performance of matching and sorting (n=19): time 0.000795/0.3526, allocations: 453.5 kB / 0.5633 GB, free: 8.781 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.575e-05/0.3526, allocations: 59.34 kB / 0.5634 GB, free: 8.711 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002076/0.3528, allocations: 196.3 kB / 0.5636 GB, free: 8.512 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.812e-05/0.3529, allocations: 25.7 kB / 0.5636 GB, free: 8.48 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.706e-05/0.3529, allocations: 124.4 kB / 0.5637 GB, free: 8.355 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.003e-05/0.353, allocations: 67 kB / 0.5638 GB, free: 8.289 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.454e-06/0.353, allocations: 0 / 0.5638 GB, free: 8.289 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001059/0.3531, allocations: 338.8 kB / 0.5641 GB, free: 7.949 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.427e-05/0.3532, allocations: 36 kB / 0.5641 GB, free: 7.914 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.89e-05/0.3533, allocations: 57.72 kB / 0.5642 GB, free: 7.852 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001014/0.3534, allocations: 51.97 kB / 0.5642 GB, free: 7.801 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.21e-07/0.3534, allocations: 0.75 kB / 0.5642 GB, free: 7.801 MB / 394.7 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0002507/0.3536, allocations: 160.2 kB / 0.5644 GB, free: 7.641 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.237e-05/0.3537, allocations: 4 kB / 0.5644 GB, free: 7.637 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.14e-06/0.3537, allocations: 0 / 0.5644 GB, free: 7.637 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.082e-05/0.3537, allocations: 6.844 kB / 0.5644 GB, free: 7.633 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004132/0.3541, allocations: 79.97 kB / 0.5645 GB, free: 7.555 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009131/0.355, allocations: 1.287 MB / 0.5657 GB, free: 6.152 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001434/0.3552, allocations: 4.031 kB / 0.5657 GB, free: 6.148 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.5e-05/0.3552, allocations: 9.312 kB / 0.5658 GB, free: 6.141 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 () * 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 7.394e-05/0.3553, allocations: 108.5 kB / 0.5659 GB, free: 6.031 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.668e-05/0.3553, allocations: 19.72 kB / 0.5659 GB, free: 6.012 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002679/0.3556, allocations: 174.1 kB / 0.566 GB, free: 5.844 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.428e-06/0.3556, allocations: 4 kB / 0.566 GB, free: 5.84 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.795e-06/0.3556, allocations: 3.984 kB / 0.566 GB, free: 5.836 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.969e-06/0.3557, allocations: 3.906 kB / 0.5661 GB, free: 5.832 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005778/0.3562, allocations: 479.2 kB / 0.5665 GB, free: 5.32 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.3562, allocations: 0 / 0.5665 GB, free: 5.32 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002589/0.3565, allocations: 51.97 kB / 0.5666 GB, free: 5.27 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.158e-06/0.3565, allocations: 7.906 kB / 0.5666 GB, free: 5.262 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.522e-05/0.3565, allocations: 0 / 0.5666 GB, free: 5.262 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.146e-06/0.3566, allocations: 7.938 kB / 0.5666 GB, free: 5.254 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.3566, allocations: 0 / 0.5666 GB, free: 5.254 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003531/0.3569, allocations: 313.5 kB / 0.5669 GB, free: 4.938 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.305e-05/0.357, allocations: 108.8 kB / 0.567 GB, free: 4.812 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.335e-05/0.3571, allocations: 3.906 kB / 0.567 GB, free: 4.809 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001621/0.3572, allocations: 15.98 kB / 0.567 GB, free: 4.793 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.058e-05/0.3573, allocations: 11.98 kB / 0.567 GB, free: 4.781 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.063e-05/0.3573, allocations: 4 kB / 0.567 GB, free: 4.777 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0001245/0.3574, allocations: 160.5 kB / 0.5672 GB, free: 4.621 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002693/0.3577, allocations: 43.06 kB / 0.5672 GB, free: 4.582 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: 0 () * Number of discrete 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.0001502/0.3579, allocations: 111.1 kB / 0.5673 GB, free: 4.465 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0003477/0.3582, allocations: 139.9 kB / 0.5674 GB, free: 4.328 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.3582, allocations: 0 / 0.5674 GB, free: 4.328 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 9.272e-05/0.3583, allocations: 65.81 kB / 0.5675 GB, free: 4.266 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002685/0.3586, allocations: 33.25 kB / 0.5675 GB, free: 4.238 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009321/0.3595, allocations: 0.512 MB / 0.568 GB, free: 3.711 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003827/0.3599, allocations: 0.7928 MB / 0.5688 GB, free: 2.895 MB / 394.7 MB Notification: Performance of SimCode: time 2.5e-07/0.3599, allocations: 0 / 0.5688 GB, free: 2.895 MB / 394.7 MB Notification: Performance of Templates: time 0.004752/0.3647, allocations: 2.061 MB / 0.5708 GB, free: 0.8594 MB / 394.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)