Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.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.TestElectrical6,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6") translateModel(ThermoPower.Test.ElectricalComponents.TestElectrical6,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6") [: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.0009681/0.0009681, allocations: 190.4 kB / 8.136 MB, free: 2.199 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.013/1.013, allocations: 205.2 MB / 213.7 MB, free: 13.87 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.0008335/0.0008336, allocations: 101.7 kB / 261.8 MB, free: 13.55 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2951/0.2951, allocations: 48.75 MB / 358.4 MB, free: 53.16 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 8.826e-06/8.856e-06, allocations: 4 kB / 424.7 MB, free: 8.238 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1027/0.1027, allocations: 60.24 MB / 485 MB, free: 11.86 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2423/0.3451, allocations: 87.04 MB / 0.5586 GB, free: 13.91 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001903/0.3453, allocations: 74.16 kB / 0.5587 GB, free: 13.84 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.01797/0.3633, allocations: 6.566 MB / 0.5651 GB, free: 7.316 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.178e-05/0.3633, allocations: 8 kB / 0.5651 GB, free: 7.309 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: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.0008477/0.3642, allocations: 0.6294 MB / 0.5657 GB, free: 6.637 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.327e-05/0.3642, allocations: 8.031 kB / 0.5657 GB, free: 6.629 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.958e-05/0.3643, allocations: 51.34 kB / 0.5658 GB, free: 6.578 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004506/0.3648, allocations: 348.2 kB / 0.5661 GB, free: 6.199 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.363e-05/0.3648, allocations: 12 kB / 0.5661 GB, free: 6.188 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.868e-05/0.3649, allocations: 31.89 kB / 0.5661 GB, free: 6.156 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002958/0.3652, allocations: 169.2 kB / 0.5663 GB, free: 5.992 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003479/0.3655, allocations: 240.7 kB / 0.5665 GB, free: 5.742 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.616e-05/0.3655, allocations: 4 kB / 0.5665 GB, free: 5.738 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.116e-05/0.3656, allocations: 0 / 0.5665 GB, free: 5.738 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.045e-06/0.3656, allocations: 4 kB / 0.5665 GB, free: 5.734 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001401/0.367, allocations: 1.066 MB / 0.5676 GB, free: 4.617 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002373/0.3672, allocations: 162.2 kB / 0.5677 GB, free: 4.449 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001467/0.3674, allocations: 100.8 kB / 0.5678 GB, free: 4.348 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.574e-05/0.3674, allocations: 4 kB / 0.5678 GB, free: 4.344 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.581e-05/0.3675, allocations: 38.56 kB / 0.5679 GB, free: 4.297 MB / 394.7 MB Notification: Performance of pre-optimization done (n=32): time 1.303e-06/0.3675, allocations: 4 kB / 0.5679 GB, free: 4.293 MB / 394.7 MB Notification: Performance of matching and sorting (n=34): time 0.001081/0.3685, allocations: 0.6748 MB / 0.5685 GB, free: 3.562 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.776e-05/0.3686, allocations: 55.41 kB / 0.5686 GB, free: 3.496 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002626/0.3689, allocations: 282 kB / 0.5689 GB, free: 3.215 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.033e-05/0.3689, allocations: 25.7 kB / 0.5689 GB, free: 3.184 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.928e-05/0.369, allocations: 164.3 kB / 0.569 GB, free: 3.02 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.047e-05/0.3691, allocations: 122.2 kB / 0.5691 GB, free: 2.898 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.194e-05/0.3691, allocations: 4 kB / 0.5692 GB, free: 2.895 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001177/0.3692, allocations: 346.8 kB / 0.5695 GB, free: 2.547 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001276/0.3693, allocations: 76.75 kB / 0.5696 GB, free: 2.469 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001412/0.3695, allocations: 118.1 kB / 0.5697 GB, free: 2.34 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001574/0.3696, allocations: 87.97 kB / 0.5698 GB, free: 2.254 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.3697, allocations: 7.938 kB / 0.5698 GB, free: 2.246 MB / 394.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0007856/0.3704, allocations: 381 kB / 0.5701 GB, free: 1.863 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.285e-05/0.3705, allocations: 4.125 kB / 0.5701 GB, free: 1.859 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.069e-06/0.3705, allocations: 10.95 kB / 0.5701 GB, free: 1.852 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006205/0.3711, allocations: 133.2 kB / 0.5703 GB, free: 1.719 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000403/0.3715, allocations: 91.88 kB / 0.5704 GB, free: 1.629 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0014/0.3729, allocations: 1.963 MB / 0.5723 GB, free: 15.52 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002173/0.3732, allocations: 12.17 kB / 0.5723 GB, free: 15.51 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.505e-05/0.3732, allocations: 12 kB / 0.5723 GB, free: 15.5 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 32 * 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: 1 * 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: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 12} Notification: Performance of prepare postOptimizeDAE: time 9.568e-05/0.3733, allocations: 114.6 kB / 0.5724 GB, free: 15.38 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.449e-05/0.3734, allocations: 39.44 kB / 0.5724 GB, free: 15.34 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000423/0.3738, allocations: 280.2 kB / 0.5727 GB, free: 15.07 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.378e-06/0.3738, allocations: 4 kB / 0.5727 GB, free: 15.06 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.423e-06/0.3738, allocations: 6.062 kB / 0.5727 GB, free: 15.06 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.3738, allocations: 0 / 0.5727 GB, free: 15.06 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008517/0.3747, allocations: 0.6785 MB / 0.5734 GB, free: 14.34 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.3747, allocations: 0 / 0.5734 GB, free: 14.34 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004296/0.3751, allocations: 79.91 kB / 0.5735 GB, free: 14.26 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.372e-06/0.3751, allocations: 7.984 kB / 0.5735 GB, free: 14.25 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.913e-05/0.3752, allocations: 0 / 0.5735 GB, free: 14.25 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.445e-06/0.3752, allocations: 0 / 0.5735 GB, free: 14.25 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.3752, allocations: 4.547 kB / 0.5735 GB, free: 14.25 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005374/0.3757, allocations: 479.3 kB / 0.5739 GB, free: 13.77 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000125/0.3759, allocations: 136.6 kB / 0.5741 GB, free: 13.61 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.965e-05/0.3759, allocations: 224 / 0.5741 GB, free: 13.61 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002415/0.3762, allocations: 7.984 kB / 0.5741 GB, free: 13.61 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.981e-05/0.3762, allocations: 23.91 kB / 0.5741 GB, free: 13.58 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.552e-05/0.3763, allocations: 8 kB / 0.5741 GB, free: 13.57 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0001916/0.3765, allocations: 220.6 kB / 0.5743 GB, free: 13.36 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.000318/0.3768, allocations: 76.12 kB / 0.5744 GB, free: 13.29 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (gen_a.phi,gen_a.omega_m,gen_a.omega_e_filt,gen_b.phi,gen_b.omega_m,gen_b.omega_e_filt,torqueGen_a.y,torqueGen_b.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (36): * Single equations (assignments): 36 * 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.0001379/0.3769, allocations: 103.2 kB / 0.5745 GB, free: 13.18 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0006415/0.3776, allocations: 264.3 kB / 0.5747 GB, free: 12.92 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.3776, allocations: 0 / 0.5747 GB, free: 12.92 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001594/0.3777, allocations: 111.9 kB / 0.5748 GB, free: 12.81 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003705/0.3781, allocations: 68.94 kB / 0.5749 GB, free: 12.75 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001505/0.3796, allocations: 0.8653 MB / 0.5757 GB, free: 11.87 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004454/0.3801, allocations: 0.8671 MB / 0.5766 GB, free: 10.98 MB / 410.7 MB Notification: Performance of SimCode: time 2.71e-07/0.3801, allocations: 0 / 0.5766 GB, free: 10.98 MB / 410.7 MB Notification: Performance of Templates: time 0.007261/0.3874, allocations: 3.726 MB / 0.5802 GB, free: 7.277 MB / 410.7 MB make -j1 -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.makefile (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.sim & ./ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.pipe 2>&1)