Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.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.TestElectrical7,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7") translateModel(ThermoPower.Test.ElectricalComponents.TestElectrical7,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7") [: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.000948/0.000948, allocations: 189.1 kB / 8.135 MB, free: 2.207 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.039/1.039, allocations: 205.2 MB / 213.7 MB, free: 13.92 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.0008804/0.0008804, allocations: 98.8 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.2994/0.2994, allocations: 48.77 MB / 358.5 MB, free: 53.18 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 5.41e-06/5.781e-06, allocations: 0 / 424.7 MB, free: 8.207 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09916/0.09918, allocations: 60.24 MB / 485 MB, free: 11.82 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.236/0.3352, allocations: 87.73 MB / 0.5593 GB, free: 13.06 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001953/0.3355, allocations: 71.91 kB / 0.5593 GB, free: 13 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.02075/0.3562, allocations: 7.119 MB / 0.5663 GB, free: 5.93 MB / 394.7 MB Notification: Performance of Transformations before backend: time 3.316e-05/0.3563, allocations: 12 kB / 0.5663 GB, free: 5.918 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: 77 * Number of variables: 77 Notification: Performance of Generate backend data structure: time 0.001269/0.3576, allocations: 0.6488 MB / 0.5669 GB, free: 5.227 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.269e-05/0.3576, allocations: 12.03 kB / 0.567 GB, free: 5.215 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000176/0.3578, allocations: 56.97 kB / 0.567 GB, free: 5.16 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006746/0.3585, allocations: 364.1 kB / 0.5674 GB, free: 4.766 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.862e-05/0.3585, allocations: 12 kB / 0.5674 GB, free: 4.754 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.76e-05/0.3586, allocations: 24 kB / 0.5674 GB, free: 4.73 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003751/0.359, allocations: 181.3 kB / 0.5676 GB, free: 4.555 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004103/0.3594, allocations: 264.5 kB / 0.5678 GB, free: 4.281 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.628e-05/0.3594, allocations: 0 / 0.5678 GB, free: 4.281 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.25e-05/0.3595, allocations: 0 / 0.5678 GB, free: 4.281 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.125e-05/0.3595, allocations: 8 kB / 0.5678 GB, free: 4.273 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00169/0.3612, allocations: 1.104 MB / 0.5689 GB, free: 3.105 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002624/0.3615, allocations: 179.2 kB / 0.5691 GB, free: 2.922 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001737/0.3616, allocations: 109.1 kB / 0.5692 GB, free: 2.816 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.694e-05/0.3617, allocations: 4.281 kB / 0.5692 GB, free: 2.812 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.605e-05/0.3617, allocations: 38.84 kB / 0.5692 GB, free: 2.766 MB / 394.7 MB Notification: Performance of pre-optimization done (n=34): time 1.463e-06/0.3617, allocations: 0 / 0.5692 GB, free: 2.766 MB / 394.7 MB Notification: Performance of matching and sorting (n=36): time 0.001221/0.363, allocations: 0.7144 MB / 0.5699 GB, free: 2.004 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.759e-05/0.363, allocations: 59.41 kB / 0.57 GB, free: 1.934 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000328/0.3633, allocations: 296.9 kB / 0.5703 GB, free: 1.641 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.429e-05/0.3634, allocations: 29.69 kB / 0.5703 GB, free: 1.605 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.677e-05/0.3635, allocations: 176.5 kB / 0.5705 GB, free: 1.43 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.806e-05/0.3636, allocations: 126.1 kB / 0.5706 GB, free: 1.305 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.363e-05/0.3636, allocations: 0 / 0.5706 GB, free: 1.305 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001325/0.3637, allocations: 346.8 kB / 0.5709 GB, free: 0.957 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001403/0.3639, allocations: 80.88 kB / 0.571 GB, free: 0.8789 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000169/0.364, allocations: 132.1 kB / 0.5711 GB, free: 0.7344 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001818/0.3642, allocations: 97.78 kB / 0.5712 GB, free: 0.6406 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-06/0.3642, allocations: 0 / 0.5712 GB, free: 0.6406 MB / 394.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0004663/0.3647, allocations: 313.8 kB / 0.5715 GB, free: 336 kB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.219e-05/0.3647, allocations: 4 kB / 0.5715 GB, free: 332 kB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.983e-06/0.3647, allocations: 3.594 kB / 0.5715 GB, free: 332 kB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.44e-05/0.3648, allocations: 6.953 kB / 0.5715 GB, free: 328 kB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007769/0.3655, allocations: 148.6 kB / 0.5717 GB, free: 180 kB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009895/0.3665, allocations: 1.291 MB / 0.5729 GB, free: 14.77 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002648/0.3668, allocations: 12.17 kB / 0.5729 GB, free: 14.76 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.763e-05/0.3668, allocations: 15.91 kB / 0.5729 GB, free: 14.75 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 (49): * Single equations (assignments): 48 * 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 0.0001005/0.367, allocations: 114.3 kB / 0.5731 GB, free: 14.63 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.951e-05/0.367, allocations: 39.53 kB / 0.5731 GB, free: 14.59 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00046/0.3675, allocations: 286.6 kB / 0.5734 GB, free: 14.31 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.628e-06/0.3675, allocations: 4 kB / 0.5734 GB, free: 14.31 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.322e-06/0.3675, allocations: 0.75 kB / 0.5734 GB, free: 14.31 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.024e-06/0.3675, allocations: 3.984 kB / 0.5734 GB, free: 14.3 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009813/0.3685, allocations: 0.7136 MB / 0.5741 GB, free: 13.55 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.973e-06/0.3685, allocations: 0 / 0.5741 GB, free: 13.55 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004633/0.369, allocations: 87.89 kB / 0.5742 GB, free: 13.46 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.424e-06/0.369, allocations: 4 kB / 0.5742 GB, free: 13.46 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.399e-05/0.369, allocations: 0 / 0.5742 GB, free: 13.46 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.759e-06/0.3691, allocations: 7.984 kB / 0.5742 GB, free: 13.45 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.003e-06/0.3691, allocations: 0.75 kB / 0.5742 GB, free: 13.45 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006489/0.3697, allocations: 496.7 kB / 0.5746 GB, free: 12.95 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001421/0.3699, allocations: 132.6 kB / 0.5748 GB, free: 12.8 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.946e-05/0.37, allocations: 11.89 kB / 0.5748 GB, free: 12.79 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002541/0.3702, allocations: 7.984 kB / 0.5748 GB, free: 12.78 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.534e-05/0.3703, allocations: 19.91 kB / 0.5748 GB, free: 12.76 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.988e-05/0.3703, allocations: 13.94 kB / 0.5748 GB, free: 12.75 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0002278/0.3705, allocations: 243.2 kB / 0.575 GB, free: 12.52 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003478/0.3709, allocations: 76.55 kB / 0.5751 GB, free: 12.44 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 9 (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,secondaryController.powerOffset) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 38 * 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.0001567/0.3711, allocations: 107.1 kB / 0.5752 GB, free: 12.33 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0004944/0.3716, allocations: 249.4 kB / 0.5755 GB, free: 12.09 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.3716, allocations: 256 / 0.5755 GB, free: 12.09 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001677/0.3717, allocations: 127.9 kB / 0.5756 GB, free: 11.96 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004159/0.3722, allocations: 61.28 kB / 0.5756 GB, free: 11.91 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001748/0.3739, allocations: 0.9176 MB / 0.5765 GB, free: 10.96 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005014/0.3744, allocations: 0.8854 MB / 0.5774 GB, free: 10.04 MB / 410.7 MB Notification: Performance of SimCode: time 2.4e-07/0.3744, allocations: 0 / 0.5774 GB, free: 10.04 MB / 410.7 MB Notification: Performance of Templates: time 0.007973/0.3824, allocations: 3.764 MB / 0.5811 GB, free: 6.309 MB / 410.7 MB make -j1 -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.makefile (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.sim & ./ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.pipe 2>&1)