Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.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.TestElectrical1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1") translateModel(ThermoPower.Test.ElectricalComponents.TestElectrical1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1") [: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.0009707/0.0009707, allocations: 196.3 kB / 8.138 MB, free: 2.184 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9979/0.9979, allocations: 205.2 MB / 213.7 MB, free: 13.91 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.0008581/0.0008582, allocations: 104.7 kB / 261.8 MB, free: 13.61 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2993/0.2993, allocations: 48.75 MB / 358.4 MB, free: 53.14 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 9.658e-06/9.678e-06, allocations: 3.938 kB / 424.7 MB, free: 8.188 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1028/0.1028, allocations: 60.24 MB / 485 MB, free: 11.81 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.242/0.3449, allocations: 85.5 MB / 0.5571 GB, free: 15.31 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001748/0.3451, allocations: 71.95 kB / 0.5572 GB, free: 15.24 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.008346/0.3535, allocations: 2.764 MB / 0.5599 GB, free: 12.52 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.221e-05/0.3535, allocations: 4 kB / 0.5599 GB, free: 12.52 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: 26 * Number of variables: 26 Notification: Performance of Generate backend data structure: time 0.0004441/0.3539, allocations: 440.9 kB / 0.5603 GB, free: 12.05 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.522e-05/0.354, allocations: 8.031 kB / 0.5603 GB, free: 12.04 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.082e-05/0.354, allocations: 23.72 kB / 0.5603 GB, free: 12.02 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003107/0.3544, allocations: 247.6 kB / 0.5606 GB, free: 11.73 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.231e-05/0.3544, allocations: 4 kB / 0.5606 GB, free: 11.73 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.848e-05/0.3544, allocations: 11.91 kB / 0.5606 GB, free: 11.72 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001348/0.3546, allocations: 63.97 kB / 0.5606 GB, free: 11.66 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000171/0.3547, allocations: 110.7 kB / 0.5607 GB, free: 11.54 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.131e-05/0.3548, allocations: 0 / 0.5607 GB, free: 11.54 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.215e-05/0.3548, allocations: 0 / 0.5607 GB, free: 11.54 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.713e-06/0.3548, allocations: 4 kB / 0.5607 GB, free: 11.54 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005859/0.3554, allocations: 0.5026 MB / 0.5612 GB, free: 10.98 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001175/0.3555, allocations: 69.73 kB / 0.5613 GB, free: 10.91 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.167e-05/0.3556, allocations: 36.86 kB / 0.5613 GB, free: 10.87 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.978e-05/0.3556, allocations: 4 kB / 0.5613 GB, free: 10.87 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.109e-05/0.3556, allocations: 37.2 kB / 0.5614 GB, free: 10.82 MB / 394.7 MB Notification: Performance of pre-optimization done (n=12): time 1.212e-06/0.3556, allocations: 4 kB / 0.5614 GB, free: 10.82 MB / 394.7 MB Notification: Performance of matching and sorting (n=13): time 0.0006535/0.3563, allocations: 386.8 kB / 0.5617 GB, free: 10.39 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.304e-05/0.3563, allocations: 51.41 kB / 0.5618 GB, free: 10.33 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001557/0.3565, allocations: 170 kB / 0.562 GB, free: 10.16 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.432e-05/0.3565, allocations: 25.7 kB / 0.562 GB, free: 10.12 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.418e-05/0.3566, allocations: 120.2 kB / 0.5621 GB, free: 10 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.708e-05/0.3566, allocations: 47.81 kB / 0.5621 GB, free: 9.953 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.09e-06/0.3566, allocations: 4 kB / 0.5621 GB, free: 9.949 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.79e-05/0.3567, allocations: 326.8 kB / 0.5625 GB, free: 9.621 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.98e-05/0.3568, allocations: 24 kB / 0.5625 GB, free: 9.598 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.069e-05/0.3568, allocations: 50.56 kB / 0.5625 GB, free: 9.539 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.309e-05/0.3569, allocations: 39.77 kB / 0.5626 GB, free: 9.504 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.62e-07/0.3569, allocations: 0 / 0.5626 GB, free: 9.504 MB / 394.7 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0001939/0.3571, allocations: 123.5 kB / 0.5627 GB, free: 9.379 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.195e-05/0.3572, allocations: 4 kB / 0.5627 GB, free: 9.375 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.034e-06/0.3572, allocations: 7.906 kB / 0.5627 GB, free: 9.367 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.236e-05/0.3572, allocations: 0.75 kB / 0.5627 GB, free: 9.367 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001876/0.3574, allocations: 47.91 kB / 0.5627 GB, free: 9.32 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.518e-06/0.3574, allocations: 0 / 0.5627 GB, free: 9.32 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001042/0.3575, allocations: 4 kB / 0.5627 GB, free: 9.316 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.221e-05/0.3575, allocations: 12.05 kB / 0.5628 GB, free: 9.305 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 17 * 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 6.736e-05/0.3576, allocations: 108.9 kB / 0.5629 GB, free: 9.191 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.044e-05/0.3576, allocations: 19.72 kB / 0.5629 GB, free: 9.172 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000222/0.3579, allocations: 119.1 kB / 0.563 GB, free: 9.047 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.667e-06/0.3579, allocations: 5.312 kB / 0.563 GB, free: 9.043 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/0.3579, allocations: 0 / 0.563 GB, free: 9.043 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.476e-06/0.3579, allocations: 0 / 0.563 GB, free: 9.043 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004401/0.3583, allocations: 410.9 kB / 0.5634 GB, free: 8.598 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.3584, allocations: 7.625 kB / 0.5634 GB, free: 8.594 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001855/0.3586, allocations: 31.98 kB / 0.5634 GB, free: 8.562 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.424e-06/0.3586, allocations: 0 / 0.5634 GB, free: 8.562 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.223e-05/0.3586, allocations: 4 kB / 0.5634 GB, free: 8.559 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.3586, allocations: 0 / 0.5634 GB, free: 8.559 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.035e-06/0.3586, allocations: 0 / 0.5634 GB, free: 8.559 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002735/0.3589, allocations: 249.9 kB / 0.5637 GB, free: 8.301 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.937e-05/0.359, allocations: 108.9 kB / 0.5638 GB, free: 8.176 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.952e-05/0.359, allocations: 0 / 0.5638 GB, free: 8.176 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001308/0.3591, allocations: 7.906 kB / 0.5638 GB, free: 8.168 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.584e-05/0.3592, allocations: 14.05 kB / 0.5638 GB, free: 8.156 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.322e-06/0.3592, allocations: 0 / 0.5638 GB, free: 8.156 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0001038/0.3593, allocations: 140.6 kB / 0.5639 GB, free: 8.02 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002484/0.3596, allocations: 40.12 kB / 0.564 GB, free: 7.98 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (generator.phi,generator.omega_m,generator.omega_e_filt) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 14 * 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.0001181/0.3597, allocations: 95.73 kB / 0.5641 GB, free: 7.879 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001424/0.3598, allocations: 83.94 kB / 0.5641 GB, free: 7.797 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.463e-06/0.3598, allocations: 0 / 0.5641 GB, free: 7.797 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 5.966e-05/0.3599, allocations: 47.92 kB / 0.5642 GB, free: 7.75 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002622/0.3602, allocations: 23.98 kB / 0.5642 GB, free: 7.727 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007396/0.3609, allocations: 386.4 kB / 0.5646 GB, free: 7.336 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002972/0.3612, allocations: 0.7534 MB / 0.5653 GB, free: 6.562 MB / 394.7 MB Notification: Performance of SimCode: time 2.31e-07/0.3612, allocations: 0 / 0.5653 GB, free: 6.562 MB / 394.7 MB Notification: Performance of Templates: time 0.003881/0.3651, allocations: 1.503 MB / 0.5668 GB, free: 5.094 MB / 394.7 MB make -j1 -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.makefile (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.sim & ./ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.pipe 2>&1)