Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.ThirdOrder_AVRI.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.1.0-master/package.mo", uses=false) Using package OpenIPSL with version 3.1.0-dev (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/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.TwoArea.ThirdOrder_AVRI,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.ThirdOrder_AVRI") translateModel(OpenIPSL.Examples.PSATSystems.TwoArea.ThirdOrder_AVRI,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.ThirdOrder_AVRI") [: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.003291/0.003292, allocations: 181.2 kB / 7.458 MB, free: 2.5 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.16/1.16, allocations: 221.4 MB / 229.3 MB, free: 3.047 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.001168/0.001168, allocations: 100.9 kB / 280.1 MB, free: 1.305 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.4385/0.4385, allocations: 78.91 MB / 409.8 MB, free: 14.96 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 5.23e-06/5.26e-06, allocations: 0 / 485.4 MB, free: 3.648 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2506/0.2506, allocations: 69.51 MB / 0.5419 GB, free: 20.8 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.115/0.3657, allocations: 100.9 MB / 0.6404 GB, free: 3.023 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002214/0.3659, allocations: 79.95 kB / 0.6405 GB, free: 2.945 MB / 458.7 MB Notification: Performance of FrontEnd: time 0.4363/0.8022, allocations: 99.01 MB / 0.7372 GB, free: 70.44 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0002283/0.8025, allocations: 87.94 kB / 0.7373 GB, free: 70.36 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: 889 * Number of variables: 889 Notification: Performance of Generate backend data structure: time 0.01806/0.8206, allocations: 5.961 MB / 0.7431 GB, free: 64.32 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.554e-05/0.8206, allocations: 12.03 kB / 0.7431 GB, free: 64.3 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01892/0.8396, allocations: 2.92 MB / 0.746 GB, free: 61.37 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00672/0.8463, allocations: 2.271 MB / 0.7482 GB, free: 59.02 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009497/0.8473, allocations: 0.8502 MB / 0.749 GB, free: 58.04 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001576/0.8489, allocations: 203.9 kB / 0.7492 GB, free: 57.84 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009134/0.8581, allocations: 3.439 MB / 0.7526 GB, free: 54.4 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006647/0.8647, allocations: 3.586 MB / 0.7561 GB, free: 50.79 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.29e-05/0.8648, allocations: 0 / 0.7561 GB, free: 50.79 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003586/0.8652, allocations: 3.984 kB / 0.7561 GB, free: 50.78 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.916e-05/0.8653, allocations: 84 kB / 0.7562 GB, free: 50.7 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03447/0.8997, allocations: 18.56 MB / 0.7743 GB, free: 31.09 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00393/0.9037, allocations: 2.247 MB / 0.7765 GB, free: 28.83 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003113/0.9069, allocations: 2.108 MB / 0.7785 GB, free: 26.71 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004402/0.9073, allocations: 74.88 kB / 0.7786 GB, free: 26.64 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.259e-05/0.9074, allocations: 69.53 kB / 0.7787 GB, free: 26.56 MB / 490.7 MB Notification: Performance of pre-optimization done (n=379): time 6.572e-06/0.9074, allocations: 0 / 0.7787 GB, free: 26.56 MB / 490.7 MB Notification: Performance of matching and sorting (n=379): time 0.05289/0.9603, allocations: 18.24 MB / 0.7965 GB, free: 8.273 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.236e-05/0.9604, allocations: 167.5 kB / 0.7966 GB, free: 8.078 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003773/0.9642, allocations: 2.443 MB / 0.799 GB, free: 5.621 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009493/0.9651, allocations: 25.7 kB / 0.799 GB, free: 5.59 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000539/0.9657, allocations: 1.178 MB / 0.8002 GB, free: 4.395 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002457/0.9682, allocations: 1.235 MB / 0.8014 GB, free: 3.141 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002814/0.9684, allocations: 4 kB / 0.8014 GB, free: 3.137 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001469/0.9686, allocations: 441.6 kB / 0.8018 GB, free: 2.699 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002799/0.9714, allocations: 1.753 MB / 0.8035 GB, free: 0.9414 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003285/0.9747, allocations: 2.318 MB / 0.8058 GB, free: 14.41 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003444/0.9782, allocations: 1.948 MB / 0.8077 GB, free: 12.45 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.327e-05/0.9782, allocations: 4 kB / 0.8077 GB, free: 12.45 MB / 0.4948 GB Notification: Performance of matching and sorting (n=457) (initialization): time 0.05723/1.035, allocations: 18.33 MB / 0.8256 GB, free: 10.08 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.00202/1.037, allocations: 6.61 MB / 0.8321 GB, free: 2.949 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.638e-05/1.038, allocations: 16 kB / 0.8321 GB, free: 2.934 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02584/1.063, allocations: 7.137 MB / 0.8391 GB, free: 11.79 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003135/1.067, allocations: 0.5383 MB / 0.8396 GB, free: 11.25 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05914/1.126, allocations: 22.1 MB / 0.8612 GB, free: 4.984 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006359/1.132, allocations: 0.6802 MB / 0.8618 GB, free: 4.301 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006818/1.133, allocations: 132 kB / 0.8619 GB, free: 4.172 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.048e-05/1.133, allocations: 7.938 kB / 0.862 GB, free: 4.164 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0573/1.19, allocations: 17.84 MB / 0.8794 GB, free: 2.297 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.495e-05/1.19, allocations: 12 kB / 0.8794 GB, free: 2.285 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02582/1.216, allocations: 7.133 MB / 0.8864 GB, free: 11.14 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003565/1.22, allocations: 0.5305 MB / 0.8869 GB, free: 10.61 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2769/1.497, allocations: 22.1 MB / 0.9084 GB, free: 174.8 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006393/1.503, allocations: 0.6475 MB / 0.9091 GB, free: 174.8 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006627/1.504, allocations: 125.9 kB / 0.9092 GB, free: 174.8 MB / 0.573 GB Warning: Assuming fixed start value for the following 4 variables: order3_1.w:VARIABLE(start = 1.0 ) "Rotor speed [pu]" type: Real order3.w:VARIABLE(start = 1.0 ) "Rotor speed [pu]" type: Real order3_1.e1q:VARIABLE(start = order3_1.e1q0 unit = "1" ) "q-axis transient voltage" type: Real order3_1.delta:VARIABLE(start = order3_1.delta0 unit = "rad" ) "Rotor angle" 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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (321): * Single equations (assignments): 318 * 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 {92 45} Notification: Performance of prepare postOptimizeDAE: time 0.0009825/1.505, allocations: 210.5 kB / 0.9094 GB, free: 174.6 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00106/1.506, allocations: 454.3 kB / 0.9098 GB, free: 174.4 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05468/1.56, allocations: 18.65 MB / 0.928 GB, free: 174.1 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.139e-05/1.561, allocations: 39.94 kB / 0.9281 GB, free: 174.1 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.49e-05/1.561, allocations: 29.38 kB / 0.9281 GB, free: 174.1 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001178/1.561, allocations: 17.16 kB / 0.9281 GB, free: 174.1 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06357/1.624, allocations: 23.56 MB / 0.9511 GB, free: 173.3 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.337e-05/1.624, allocations: 1.125 kB / 0.9511 GB, free: 173.3 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002842/1.627, allocations: 401.8 kB / 0.9515 GB, free: 173.3 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02428/1.652, allocations: 7.171 MB / 0.9585 GB, free: 172.7 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008875/1.652, allocations: 21.47 kB / 0.9585 GB, free: 172.7 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04867/1.701, allocations: 20.15 MB / 0.9782 GB, free: 166.7 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.601e-06/1.701, allocations: 0 / 0.9782 GB, free: 166.7 MB / 0.573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0589/1.76, allocations: 21.58 MB / 0.9993 GB, free: 152 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001723/1.762, allocations: 0.5529 MB / 0.9998 GB, free: 151.5 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00144/1.763, allocations: 4.75 kB / 0.9998 GB, free: 151.5 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004912/1.768, allocations: 491.6 kB / 1 GB, free: 151.1 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001347/1.77, allocations: 451.2 kB / 1.001 GB, free: 150.9 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003399/1.77, allocations: 95.8 kB / 1.001 GB, free: 150.8 MB / 0.573 GB Notification: Performance of sort global known variables: time 0.002628/1.773, allocations: 1.807 MB / 1.003 GB, free: 149.2 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.007844/1.78, allocations: 2.571 MB / 1.005 GB, free: 146.7 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 10 (order3.delta,order3.w,order3.e1q,order3_1.delta,order3_1.w,order3_1.e1q,aVRTypeI.firstOrder.y,aVRTypeI.firstOrder2.y,aVRTypeI.transferFunction.x_scaled[1],aVRTypeI.transferFunction.x_scaled[2]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (249): * Single equations (assignments): 247 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(98,5.5%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006397/1.781, allocations: 156.7 kB / 1.005 GB, free: 146.6 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.04029/1.821, allocations: 13.85 MB / 1.019 GB, free: 134.1 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 9.227e-06/1.821, allocations: 6.406 kB / 1.019 GB, free: 134.1 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.01899/1.84, allocations: 5.774 MB / 1.024 GB, free: 129.1 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004479/1.845, allocations: 247 kB / 1.025 GB, free: 128.8 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0262/1.871, allocations: 6.141 MB / 1.031 GB, free: 123.2 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00459/1.876, allocations: 2.66 MB / 1.033 GB, free: 121.2 MB / 0.573 GB Notification: Performance of SimCode: time 1.142e-06/1.876, allocations: 0 / 1.033 GB, free: 121.2 MB / 0.573 GB Notification: Performance of Templates: time 0.1605/2.036, allocations: 113.4 MB / 1.144 GB, free: 22.46 MB / 0.573 GB make -j1 -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.ThirdOrder_AVRI.makefile (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.ThirdOrder_AVRI.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.ThirdOrder_AVRI.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.ThirdOrder_AVRI.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.ThirdOrder_AVRI.sim & ./OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.ThirdOrder_AVRI -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.ThirdOrder_AVRI.pipe 2>&1)