Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2.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.TestElectrical2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2") translateModel(ThermoPower.Test.ElectricalComponents.TestElectrical2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2") [: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.0009193/0.0009194, allocations: 188.7 kB / 8.133 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.043/1.043, 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.0008173/0.0008173, allocations: 94.28 kB / 261.8 MB, free: 13.54 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2997/0.2997, allocations: 48.75 MB / 358.4 MB, free: 53.11 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 8.466e-06/8.556e-06, allocations: 0 / 424.7 MB, free: 8.191 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1015/0.1015, allocations: 60.26 MB / 485 MB, free: 11.79 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2282/0.3297, allocations: 85.73 MB / 0.5573 GB, free: 15.06 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002373/0.33, allocations: 71.95 kB / 0.5574 GB, free: 14.99 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.01005/0.3401, allocations: 3.333 MB / 0.5606 GB, free: 11.7 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.482e-05/0.3401, allocations: 4 kB / 0.5607 GB, free: 11.7 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.000538/0.3406, allocations: 471.5 kB / 0.5611 GB, free: 11.2 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.459e-05/0.3407, allocations: 12.03 kB / 0.5611 GB, free: 11.18 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.391e-05/0.3408, allocations: 27.72 kB / 0.5611 GB, free: 11.16 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003599/0.3411, allocations: 261.5 kB / 0.5614 GB, free: 10.86 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.864e-05/0.3412, allocations: 4 kB / 0.5614 GB, free: 10.86 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.045e-05/0.3412, allocations: 8 kB / 0.5614 GB, free: 10.85 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001613/0.3414, allocations: 71.98 kB / 0.5615 GB, free: 10.78 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001899/0.3416, allocations: 134 kB / 0.5616 GB, free: 10.64 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.23e-05/0.3416, allocations: 4 kB / 0.5616 GB, free: 10.64 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.597e-05/0.3416, allocations: 0 / 0.5616 GB, free: 10.64 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.488e-06/0.3416, allocations: 3.906 kB / 0.5616 GB, free: 10.64 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008456/0.3425, allocations: 0.5546 MB / 0.5621 GB, free: 10.04 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001456/0.3426, allocations: 89.78 kB / 0.5622 GB, free: 9.941 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001029/0.3427, allocations: 56.8 kB / 0.5623 GB, free: 9.883 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.997e-05/0.3428, allocations: 0 / 0.5623 GB, free: 9.883 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.309e-05/0.3428, allocations: 34.88 kB / 0.5623 GB, free: 9.84 MB / 394.7 MB Notification: Performance of pre-optimization done (n=17): time 1.452e-06/0.3428, allocations: 8 kB / 0.5623 GB, free: 9.832 MB / 394.7 MB Notification: Performance of matching and sorting (n=19): time 0.0008399/0.3436, allocations: 465 kB / 0.5628 GB, free: 9.324 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.714e-05/0.3437, allocations: 55.41 kB / 0.5628 GB, free: 9.258 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001906/0.3439, allocations: 195 kB / 0.563 GB, free: 9.062 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.731e-05/0.3439, allocations: 25.7 kB / 0.563 GB, free: 9.031 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.298e-05/0.344, allocations: 117.1 kB / 0.5631 GB, free: 8.914 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.781e-05/0.344, allocations: 66.95 kB / 0.5632 GB, free: 8.848 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.344e-06/0.3441, allocations: 4 kB / 0.5632 GB, free: 8.844 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001152/0.3442, allocations: 330.8 kB / 0.5635 GB, free: 8.512 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.443e-05/0.3443, allocations: 40 kB / 0.5636 GB, free: 8.473 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.347e-05/0.3443, allocations: 66.75 kB / 0.5636 GB, free: 8.398 MB / 394.7 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: $DER.generator.theta = generator.omega_e_nom (6.283185307179586 * grid.fnom = generator.omega_e_nom) Notification: Performance of analyzeInitialSystem (initialization): time 0.0008292/0.3452, allocations: 263 kB / 0.5639 GB, free: 8.125 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.252e-06/0.3452, allocations: 0 / 0.5639 GB, free: 8.125 MB / 394.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003048/0.3455, allocations: 170.9 kB / 0.564 GB, free: 7.957 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.351e-05/0.3455, allocations: 8 kB / 0.5641 GB, free: 7.949 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.48e-06/0.3455, allocations: 0 / 0.5641 GB, free: 7.949 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.107e-05/0.3456, allocations: 0 / 0.5641 GB, free: 7.949 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002776/0.3458, allocations: 59.91 kB / 0.5641 GB, free: 7.891 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.458e-06/0.3459, allocations: 5.016 kB / 0.5641 GB, free: 7.887 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001371/0.346, allocations: 12.02 kB / 0.5641 GB, free: 7.875 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.864e-05/0.346, allocations: 11.31 kB / 0.5641 GB, free: 7.867 MB / 394.7 MB Warning: Assuming redundant initial conditions for the following 1 initial equations: $DER.generator.theta = generator.omega_e_nom 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 (24): * 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): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001318/0.3462, allocations: 113.6 kB / 0.5642 GB, free: 7.75 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.753e-05/0.3462, allocations: 19.72 kB / 0.5643 GB, free: 7.73 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002947/0.3465, allocations: 155.5 kB / 0.5644 GB, free: 7.574 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.459e-06/0.3465, allocations: 4 kB / 0.5644 GB, free: 7.57 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.02e-06/0.3465, allocations: 0 / 0.5644 GB, free: 7.57 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.957e-06/0.3466, allocations: 0 / 0.5644 GB, free: 7.57 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005915/0.3471, allocations: 482.8 kB / 0.5649 GB, free: 7.055 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.846e-06/0.3472, allocations: 0.6562 kB / 0.5649 GB, free: 7.055 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003579/0.3475, allocations: 55.97 kB / 0.5649 GB, free: 7 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.432e-06/0.3475, allocations: 4 kB / 0.5649 GB, free: 6.996 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.464e-05/0.3476, allocations: 0 / 0.5649 GB, free: 6.996 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.418e-06/0.3476, allocations: 7.844 kB / 0.5649 GB, free: 6.988 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.3476, allocations: 4 kB / 0.5649 GB, free: 6.984 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000391/0.348, allocations: 305.8 kB / 0.5652 GB, free: 6.672 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.47e-05/0.3481, allocations: 104.8 kB / 0.5653 GB, free: 6.551 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.654e-05/0.3481, allocations: 3.984 kB / 0.5653 GB, free: 6.547 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001629/0.3483, allocations: 8 kB / 0.5653 GB, free: 6.539 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.844e-05/0.3484, allocations: 15.92 kB / 0.5654 GB, free: 6.523 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.631e-05/0.3484, allocations: 8 kB / 0.5654 GB, free: 6.516 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0001385/0.3485, allocations: 152.5 kB / 0.5655 GB, free: 6.367 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002708/0.3488, allocations: 40 kB / 0.5656 GB, free: 6.328 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 (20): * Single equations (assignments): 20 * 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.0001321/0.349, allocations: 103.2 kB / 0.5657 GB, free: 6.219 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0002426/0.3492, allocations: 120.9 kB / 0.5658 GB, free: 6.102 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.3492, allocations: 0 / 0.5658 GB, free: 6.102 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 9.464e-05/0.3493, allocations: 64.27 kB / 0.5658 GB, free: 6.039 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004084/0.3497, allocations: 37.77 kB / 0.5659 GB, free: 6.008 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009342/0.3507, allocations: 439.6 kB / 0.5663 GB, free: 5.562 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000351/0.3511, allocations: 0.7705 MB / 0.567 GB, free: 4.766 MB / 394.7 MB Notification: Performance of SimCode: time 2.5e-07/0.3511, allocations: 4 kB / 0.567 GB, free: 4.762 MB / 394.7 MB Notification: Performance of Templates: time 0.004326/0.3554, allocations: 1.843 MB / 0.5688 GB, free: 2.945 MB / 394.7 MB make -j1 -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2.makefile (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2.sim & ./ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2.pipe 2>&1)