Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII.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/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo", uses=false) Using package OpenIPSL with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.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(OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII") translateModel(OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII") [: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.003118/0.003118, allocations: 175.2 kB / 7.451 MB, free: 2.504 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.125/1.125, allocations: 205.2 MB / 213.1 MB, free: 13.93 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.0009227/0.0009226, allocations: 97.59 kB / 261.1 MB, free: 13.62 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.06686/0.06686, allocations: 12.59 MB / 321.6 MB, free: 0.9805 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo): time 0.2754/0.2754, allocations: 78.04 MB / 450.4 MB, free: 3.234 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 6.682e-06/6.712e-06, allocations: 0 / 0.5141 GB, free: 29.96 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1278/0.1278, allocations: 69.32 MB / 0.5818 GB, free: 8.73 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3338/0.4616, allocations: 103 MB / 0.6824 GB, free: 5.215 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001715/0.4618, allocations: 79.08 kB / 0.6825 GB, free: 5.172 MB / 426.7 MB Notification: Performance of FrontEnd: time 0.2516/0.7134, allocations: 95.49 MB / 0.7757 GB, free: 356 kB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0004753/0.714, allocations: 91.88 kB / 0.7758 GB, free: 264 kB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 893 * Number of variables: 893 Notification: Performance of Generate backend data structure: time 0.02064/0.7346, allocations: 5.969 MB / 0.7817 GB, free: 10.21 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 6.08e-05/0.7347, allocations: 11.97 kB / 0.7817 GB, free: 10.2 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02038/0.7551, allocations: 2.924 MB / 0.7845 GB, free: 7.266 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007316/0.7625, allocations: 2.286 MB / 0.7868 GB, free: 4.902 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001087/0.7636, allocations: 0.8792 MB / 0.7876 GB, free: 3.887 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001535/0.7651, allocations: 199.9 kB / 0.7878 GB, free: 3.691 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009088/0.7742, allocations: 3.443 MB / 0.7912 GB, free: 252 kB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01037/0.7846, allocations: 3.586 MB / 0.7947 GB, free: 12.63 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001109/0.7848, allocations: 4 kB / 0.7947 GB, free: 12.63 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009069/0.7857, allocations: 3.938 kB / 0.7947 GB, free: 12.62 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.212e-05/0.7858, allocations: 84 kB / 0.7948 GB, free: 12.54 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03974/0.8256, allocations: 18.53 MB / 0.8129 GB, free: 8.922 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004478/0.8301, allocations: 2.259 MB / 0.8151 GB, free: 6.645 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003914/0.834, allocations: 2.112 MB / 0.8171 GB, free: 4.523 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006183/0.8347, allocations: 78.89 kB / 0.8172 GB, free: 4.445 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005112/0.8398, allocations: 2.461 MB / 0.8196 GB, free: 1.945 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=383): time 6.652e-06/0.8398, allocations: 4 kB / 0.8196 GB, free: 1.941 MB / 0.5417 GB Notification: Performance of matching and sorting (n=383): time 0.06009/0.8999, allocations: 18.37 MB / 0.8376 GB, free: 15.51 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.453e-05/0.9, allocations: 153.8 kB / 0.8377 GB, free: 15.34 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004127/0.9042, allocations: 2.424 MB / 0.8401 GB, free: 12.9 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.000828/0.905, allocations: 29.69 kB / 0.8401 GB, free: 12.86 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007508/0.9058, allocations: 1.17 MB / 0.8412 GB, free: 11.68 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.002554/0.9083, allocations: 1.254 MB / 0.8425 GB, free: 10.4 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000292/0.9086, allocations: 0 / 0.8425 GB, free: 10.4 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0002049/0.9088, allocations: 453.7 kB / 0.8429 GB, free: 9.953 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003105/0.9119, allocations: 1.765 MB / 0.8446 GB, free: 8.188 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003524/0.9155, allocations: 2.329 MB / 0.8469 GB, free: 5.664 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003413/0.9189, allocations: 1.96 MB / 0.8488 GB, free: 3.688 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.271e-05/0.9189, allocations: 4 kB / 0.8488 GB, free: 3.684 MB / 0.573 GB Notification: Performance of matching and sorting (n=468) (initialization): time 0.05623/0.9752, allocations: 18.42 MB / 0.8668 GB, free: 1.215 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.847e-05/0.9752, allocations: 4 kB / 0.8668 GB, free: 1.211 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.982e-05/0.9753, allocations: 16 kB / 0.8668 GB, free: 1.195 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.1799/1.155, allocations: 7.189 MB / 0.8738 GB, free: 195.3 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003131/1.158, allocations: 0.5638 MB / 0.8744 GB, free: 195.3 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05194/1.21, allocations: 22.25 MB / 0.8961 GB, free: 193.9 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005787/1.216, allocations: 0.6757 MB / 0.8968 GB, free: 193.8 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005108/1.217, allocations: 133.2 kB / 0.8969 GB, free: 193.8 MB / 0.5886 GB Warning: Assuming fixed start value for the following 5 variables: order4.w:VARIABLE(start = 1.0 ) "Rotor speed [pu]" type: Real order3.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: 65 * 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 (331): * Single equations (assignments): 328 * 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 {93 45} Notification: Performance of prepare postOptimizeDAE: time 0.0008257/1.217, allocations: 194 kB / 0.8971 GB, free: 193.6 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008133/1.218, allocations: 461.5 kB / 0.8975 GB, free: 193.4 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05114/1.269, allocations: 18.8 MB / 0.9159 GB, free: 193.1 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.1e-05/1.27, allocations: 36.66 kB / 0.9159 GB, free: 193.1 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.225e-05/1.27, allocations: 33.55 kB / 0.916 GB, free: 193.1 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.331e-05/1.27, allocations: 25.03 kB / 0.916 GB, free: 193.1 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05987/1.33, allocations: 23.37 MB / 0.9388 GB, free: 191.4 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.013e-05/1.33, allocations: 0 / 0.9388 GB, free: 191.4 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002536/1.332, allocations: 389.1 kB / 0.9392 GB, free: 191.4 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0241/1.356, allocations: 7.281 MB / 0.9463 GB, free: 189.5 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009818/1.357, allocations: 23.28 kB / 0.9463 GB, free: 189.4 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0513/1.409, allocations: 21.99 MB / 0.9678 GB, free: 169.7 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.25e-06/1.409, allocations: 0 / 0.9678 GB, free: 169.7 MB / 0.5886 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0583/1.467, allocations: 21.74 MB / 0.989 GB, free: 151.7 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001629/1.469, allocations: 0.5519 MB / 0.9896 GB, free: 151.2 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001704/1.47, allocations: 4.062 kB / 0.9896 GB, free: 151.2 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005467/1.476, allocations: 486.8 kB / 0.99 GB, free: 150.9 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001679/1.478, allocations: 465.9 kB / 0.9905 GB, free: 150.6 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003505/1.478, allocations: 95.84 kB / 0.9906 GB, free: 150.5 MB / 0.5886 GB Notification: Performance of sort global known variables: time 0.002572/1.48, allocations: 1.792 MB / 0.9923 GB, free: 148.9 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.004828/1.485, allocations: 1.568 MB / 0.9939 GB, free: 147.4 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 11 (order3.delta,order3.w,order3.e1q,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 (247): * Single equations (assignments): 244 * 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 {(100,5.4%) 36} * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005472/1.486, allocations: 144.9 kB / 0.994 GB, free: 147.3 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.01958/1.505, allocations: 7.906 MB / 1.002 GB, free: 140.1 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 5.15e-06/1.505, allocations: 3.5 kB / 1.002 GB, free: 140.1 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.01737/1.523, allocations: 5.959 MB / 1.008 GB, free: 134.8 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004615/1.528, allocations: 239.6 kB / 1.008 GB, free: 134.6 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01605/1.544, allocations: 5.912 MB / 1.014 GB, free: 129.2 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002429/1.546, allocations: 2.649 MB / 1.016 GB, free: 127.2 MB / 0.5886 GB Notification: Performance of SimCode: time 9.81e-07/1.546, allocations: 1.312 kB / 1.016 GB, free: 127.2 MB / 0.5886 GB Notification: Performance of Templates: time 0.1031/1.649, allocations: 73.26 MB / 1.088 GB, free: 63.81 MB / 0.5886 GB make -j1 -f OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII.makefile (rm -f OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII.pipe ; mkfifo OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII.pipe >> ../files/OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII.sim & ./OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII.pipe 2>&1)