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") [: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.0008857/0.0008857, allocations: 189 kB / 8.132 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.051/1.051, allocations: 205.2 MB / 213.7 MB, free: 13.84 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.0008594/0.0008594, allocations: 95.56 kB / 261.7 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.2912/0.2912, allocations: 48.76 MB / 358.4 MB, free: 53.16 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 5.34e-06/5.37e-06, allocations: 0 / 424.7 MB, free: 8.207 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09919/0.09921, allocations: 60.26 MB / 485 MB, free: 11.81 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2329/0.3321, allocations: 86.14 MB / 0.5577 GB, free: 14.7 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002398/0.3324, allocations: 67.97 kB / 0.5578 GB, free: 14.63 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.01081/0.3432, allocations: 3.629 MB / 0.5613 GB, free: 11.05 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.699e-05/0.3433, allocations: 4 kB / 0.5613 GB, free: 11.05 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.0006403/0.3439, allocations: 0.4888 MB / 0.5618 GB, free: 10.52 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.605e-05/0.344, allocations: 8.031 kB / 0.5618 GB, free: 10.51 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.064e-05/0.3441, allocations: 31.62 kB / 0.5619 GB, free: 10.48 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004245/0.3445, allocations: 276.3 kB / 0.5621 GB, free: 10.17 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.198e-05/0.3446, allocations: 33.7 kB / 0.5622 GB, free: 10.13 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.963e-05/0.3446, allocations: 19.97 kB / 0.5622 GB, free: 10.11 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001956/0.3448, allocations: 87.98 kB / 0.5623 GB, free: 10.02 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002317/0.3451, allocations: 138.7 kB / 0.5624 GB, free: 9.879 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.681e-05/0.3451, allocations: 7.984 kB / 0.5624 GB, free: 9.871 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.853e-05/0.3451, allocations: 3.906 kB / 0.5624 GB, free: 9.867 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.024e-06/0.3451, allocations: 4 kB / 0.5624 GB, free: 9.863 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009931/0.3461, allocations: 0.6041 MB / 0.563 GB, free: 9.211 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002309/0.3464, allocations: 89.69 kB / 0.5631 GB, free: 9.117 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001213/0.3465, allocations: 64.89 kB / 0.5631 GB, free: 9.051 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.833e-05/0.3465, allocations: 4 kB / 0.5631 GB, free: 9.047 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.037e-05/0.3466, allocations: 38 kB / 0.5632 GB, free: 9.004 MB / 394.7 MB Notification: Performance of pre-optimization done (n=19): time 1.804e-06/0.3466, allocations: 0 / 0.5632 GB, free: 9.004 MB / 394.7 MB Notification: Performance of matching and sorting (n=20): time 0.0008608/0.3474, allocations: 477.7 kB / 0.5636 GB, free: 8.488 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.72e-05/0.3475, allocations: 51.41 kB / 0.5637 GB, free: 8.426 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001977/0.3477, allocations: 196.3 kB / 0.5639 GB, free: 8.227 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.972e-05/0.3477, allocations: 25.7 kB / 0.5639 GB, free: 8.195 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.9e-05/0.3478, allocations: 131.4 kB / 0.564 GB, free: 8.066 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.727e-05/0.3478, allocations: 66.92 kB / 0.5641 GB, free: 8 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.045e-06/0.3479, allocations: 0 / 0.5641 GB, free: 8 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001381/0.348, allocations: 330.8 kB / 0.5644 GB, free: 7.668 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.264e-05/0.3481, allocations: 46.06 kB / 0.5644 GB, free: 7.625 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.172e-05/0.3482, allocations: 69.7 kB / 0.5645 GB, free: 7.551 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00011/0.3483, allocations: 47.27 kB / 0.5646 GB, free: 7.508 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.52e-07/0.3483, allocations: 0 / 0.5646 GB, free: 7.508 MB / 394.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002876/0.3486, allocations: 170.6 kB / 0.5647 GB, free: 7.336 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.41e-05/0.3486, allocations: 4 kB / 0.5647 GB, free: 7.332 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.533e-06/0.3486, allocations: 1.016 kB / 0.5647 GB, free: 7.332 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.683e-05/0.3487, allocations: 12.02 kB / 0.5647 GB, free: 7.32 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004441/0.3491, allocations: 87.45 kB / 0.5648 GB, free: 7.238 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.247e-06/0.3491, allocations: 0 / 0.5648 GB, free: 7.238 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001471/0.3493, allocations: 11.91 kB / 0.5648 GB, free: 7.227 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.673e-05/0.3493, allocations: 11.98 kB / 0.5648 GB, free: 7.215 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 () * 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 9.065e-05/0.3494, allocations: 108.9 kB / 0.5649 GB, free: 7.102 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.126e-05/0.3495, allocations: 23.72 kB / 0.565 GB, free: 7.078 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003202/0.3498, allocations: 162.7 kB / 0.5651 GB, free: 6.914 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.555e-06/0.3498, allocations: 0 / 0.5651 GB, free: 6.914 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.688e-06/0.3498, allocations: 0 / 0.5651 GB, free: 6.914 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.933e-06/0.3498, allocations: 7.984 kB / 0.5651 GB, free: 6.906 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006409/0.3505, allocations: 499.5 kB / 0.5656 GB, free: 6.375 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.3505, allocations: 8 kB / 0.5656 GB, free: 6.367 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004281/0.3509, allocations: 63.95 kB / 0.5657 GB, free: 6.305 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.388e-06/0.3509, allocations: 0 / 0.5657 GB, free: 6.305 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.528e-05/0.351, allocations: 1.203 kB / 0.5657 GB, free: 6.305 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.318e-06/0.351, allocations: 4 kB / 0.5657 GB, free: 6.301 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.351, allocations: 0 / 0.5657 GB, free: 6.301 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003928/0.3514, allocations: 328 kB / 0.566 GB, free: 5.965 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.366e-05/0.3515, allocations: 112.8 kB / 0.5661 GB, free: 5.836 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.781e-05/0.3515, allocations: 3.828 kB / 0.5661 GB, free: 5.836 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001688/0.3517, allocations: 11.91 kB / 0.5661 GB, free: 5.824 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.643e-05/0.3518, allocations: 14.12 kB / 0.5661 GB, free: 5.812 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.283e-05/0.3518, allocations: 8 kB / 0.5661 GB, free: 5.805 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0001294/0.3519, allocations: 160.5 kB / 0.5663 GB, free: 5.648 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002728/0.3522, allocations: 44 kB / 0.5663 GB, free: 5.605 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 () * 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.0001528/0.3524, allocations: 99.19 kB / 0.5664 GB, free: 5.5 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0002347/0.3526, allocations: 132 kB / 0.5666 GB, free: 5.371 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.3526, allocations: 0 / 0.5666 GB, free: 5.371 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001088/0.3527, allocations: 61.81 kB / 0.5666 GB, free: 5.312 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003121/0.353, allocations: 33.23 kB / 0.5666 GB, free: 5.281 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009861/0.354, allocations: 0.503 MB / 0.5671 GB, free: 4.766 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000372/0.3544, allocations: 0.7857 MB / 0.5679 GB, free: 3.961 MB / 394.7 MB Notification: Performance of SimCode: time 3.2e-07/0.3544, allocations: 0 / 0.5679 GB, free: 3.961 MB / 394.7 MB Notification: Performance of Templates: time 0.004778/0.3592, allocations: 1.996 MB / 0.5699 GB, free: 2 MB / 394.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)