Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo", uses=false) Using package OpenIPSL with version 3.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous") translateModel(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous") [: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 4.0.0+maint.om/package.mo): time 0.00256/0.00256, allocations: 181 kB / 7.454 MB, free: 2.508 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.22/1.22, allocations: 221.4 MB / 229.3 MB, free: 3.043 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009714/0.0009715, allocations: 101.9 kB / 280.1 MB, free: 1.23 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4009/0.4009, allocations: 78.05 MB / 408.9 MB, free: 15.52 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 5.62e-06/5.65e-06, allocations: 0 / 484.3 MB, free: 4.422 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2317/0.2317, allocations: 69.34 MB / 0.5407 GB, free: 21.48 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1083/0.34, allocations: 98.1 MB / 0.6365 GB, free: 6.609 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002002/0.3403, allocations: 75.91 kB / 0.6366 GB, free: 6.535 MB / 458.7 MB Notification: Performance of FrontEnd: time 0.1057/0.446, allocations: 35.67 MB / 0.6714 GB, free: 2.609 MB / 490.7 MB Notification: Performance of Transformations before backend: time 7.245e-05/0.4461, allocations: 24 kB / 0.6714 GB, free: 2.586 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 190 * Number of variables: 190 Notification: Performance of Generate backend data structure: time 0.004695/0.4508, allocations: 1.761 MB / 0.6732 GB, free: 0.7656 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.389e-05/0.4509, allocations: 8.031 kB / 0.6732 GB, free: 0.7578 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003879/0.4548, allocations: 0.5836 MB / 0.6737 GB, free: 176 kB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.134/0.5888, allocations: 0.7798 MB / 0.6745 GB, free: 141.9 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002311/0.589, allocations: 240.8 kB / 0.6747 GB, free: 141.7 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001384/0.5892, allocations: 45.88 kB / 0.6748 GB, free: 141.7 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001364/0.5906, allocations: 0.7986 MB / 0.6756 GB, free: 141.7 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001324/0.5919, allocations: 0.837 MB / 0.6764 GB, free: 141.7 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.118e-05/0.5919, allocations: 2.531 kB / 0.6764 GB, free: 141.7 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.674e-05/0.592, allocations: 0 / 0.6764 GB, free: 141.7 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.448e-05/0.5921, allocations: 19.72 kB / 0.6764 GB, free: 141.7 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006031/0.5981, allocations: 3.742 MB / 0.68 GB, free: 140.6 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001092/0.5992, allocations: 0.6138 MB / 0.6806 GB, free: 140.6 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007046/0.5999, allocations: 0.5099 MB / 0.6811 GB, free: 140.6 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001085/0.6, allocations: 19.22 kB / 0.6812 GB, free: 140.6 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008736/0.6009, allocations: 0.624 MB / 0.6818 GB, free: 140.5 MB / 490.7 MB Notification: Performance of pre-optimization done (n=96): time 2.975e-06/0.6009, allocations: 3.797 kB / 0.6818 GB, free: 140.5 MB / 490.7 MB Notification: Performance of matching and sorting (n=96): time 0.01295/0.6139, allocations: 4.186 MB / 0.6859 GB, free: 140.3 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.877e-05/0.6139, allocations: 113.2 kB / 0.686 GB, free: 140.2 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009292/0.6149, allocations: 0.8027 MB / 0.6868 GB, free: 140.1 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 8.861e-05/0.615, allocations: 29.55 kB / 0.6868 GB, free: 140 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001212/0.6151, allocations: 323.1 kB / 0.6871 GB, free: 139.9 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000283/0.6154, allocations: 333.4 kB / 0.6874 GB, free: 139.7 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.297e-05/0.6155, allocations: 4.031 kB / 0.6874 GB, free: 139.7 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 5.517e-05/0.6155, allocations: 342 kB / 0.6877 GB, free: 139.4 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007044/0.6162, allocations: 448.1 kB / 0.6882 GB, free: 139.4 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007495/0.617, allocations: 0.5608 MB / 0.6887 GB, free: 139.3 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000766/0.6178, allocations: 498 kB / 0.6892 GB, free: 139.3 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.887e-06/0.6178, allocations: 0 / 0.6892 GB, free: 139.3 MB / 490.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.01261/0.6304, allocations: 4.192 MB / 0.6933 GB, free: 138.9 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.39e-05/0.6304, allocations: 3.281 kB / 0.6933 GB, free: 138.9 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.085e-05/0.6304, allocations: 6.406 kB / 0.6933 GB, free: 138.9 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005692/0.6361, allocations: 1.569 MB / 0.6948 GB, free: 138.7 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001018/0.6372, allocations: 184.9 kB / 0.695 GB, free: 138.7 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01386/0.6511, allocations: 6.004 MB / 0.7009 GB, free: 137.3 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001739/0.6528, allocations: 191.5 kB / 0.701 GB, free: 137.2 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001186/0.653, allocations: 44.28 kB / 0.7011 GB, free: 137.2 MB / 490.7 MB Warning: Assuming fixed start value for the following 4 variables: order4.w:VARIABLE(start = 1.0 ) "Rotor speed [pu]" type: Real aVRTypeII.firstOrder2.y:VARIABLE(start = aVRTypeII.firstOrder2.y_start ) "Connector of Real output signal" type: Real order4.e1d:VARIABLE(start = order4.e1d0 unit = "1" ) "d-axis transient voltage" type: Real order4.e1q:VARIABLE(start = order4.e1q0 unit = "1" ) "q-axis transient voltage" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 2 ($whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (96): * Single equations (assignments): 93 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {19 14} Notification: Performance of prepare postOptimizeDAE: time 0.0002728/0.6532, allocations: 159.4 kB / 0.7012 GB, free: 137.1 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002041/0.6534, allocations: 122.1 kB / 0.7014 GB, free: 137 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01354/0.667, allocations: 4.263 MB / 0.7055 GB, free: 136.6 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.203e-05/0.667, allocations: 13.66 kB / 0.7055 GB, free: 136.6 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.098e-05/0.667, allocations: 7.25 kB / 0.7055 GB, free: 136.6 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.386e-05/0.6671, allocations: 10.98 kB / 0.7055 GB, free: 136.6 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01456/0.6816, allocations: 5.655 MB / 0.7111 GB, free: 135.8 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.009e-06/0.6817, allocations: 7.938 kB / 0.7111 GB, free: 135.8 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006493/0.6823, allocations: 102 kB / 0.7112 GB, free: 135.8 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004985/0.6873, allocations: 1.526 MB / 0.7127 GB, free: 135.7 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001033/0.6874, allocations: 12.83 kB / 0.7127 GB, free: 135.7 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01301/0.7004, allocations: 7.134 MB / 0.7196 GB, free: 131.4 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.457e-06/0.7005, allocations: 0 / 0.7196 GB, free: 131.4 MB / 490.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01405/0.7145, allocations: 5.027 MB / 0.7246 GB, free: 130 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003891/0.7149, allocations: 219.6 kB / 0.7248 GB, free: 129.8 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002331/0.7152, allocations: 10.78 kB / 0.7248 GB, free: 129.8 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001375/0.7166, allocations: 140.2 kB / 0.7249 GB, free: 129.8 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000321/0.7169, allocations: 113.3 kB / 0.725 GB, free: 129.7 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.333e-05/0.717, allocations: 27.69 kB / 0.725 GB, free: 129.7 MB / 490.7 MB Notification: Performance of sort global known variables: time 0.0007792/0.7178, allocations: 0.6123 MB / 0.7256 GB, free: 129.4 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.001182/0.719, allocations: 392.5 kB / 0.726 GB, free: 129.4 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 10 (order2.delta,order2.w,order4.delta,order4.w,order4.e1q,order4.e1d,aVRTypeII.ExcitationSystem.x_scaled[1],aVRTypeII.derivativeBlock.x,aVRTypeII.firstOrder2.y,aVRTypeII.simpleLagLim.state) * Number of discrete variables: 2 ($whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (64): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(18,25.9%) 14} * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002443/0.7192, allocations: 143 kB / 0.7262 GB, free: 129.3 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.004827/0.7241, allocations: 1.941 MB / 0.728 GB, free: 128.6 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.7241, allocations: 0 / 0.728 GB, free: 128.6 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004001/0.7281, allocations: 1.479 MB / 0.7295 GB, free: 128 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006018/0.7287, allocations: 84.77 kB / 0.7296 GB, free: 128 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003931/0.7327, allocations: 1.725 MB / 0.7313 GB, free: 127.1 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008798/0.7335, allocations: 1.19 MB / 0.7324 GB, free: 126.4 MB / 490.7 MB Notification: Performance of SimCode: time 3.71e-07/0.7336, allocations: 1.125 kB / 0.7324 GB, free: 126.4 MB / 490.7 MB Notification: Performance of Templates: time 0.0261/0.7597, allocations: 19.34 MB / 0.7513 GB, free: 115.7 MB / 490.7 MB make -j1 -f OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.makefile (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.sim & ./OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe 2>&1)