Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRI.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.ThreeArea.ThirdOrder_AVRI,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRI") translateModel(OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRI,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.ThreeArea.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 3.2.3+maint.om/package.mo): time 0.002161/0.002161, allocations: 181 kB / 7.458 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.056/1.056, allocations: 205.2 MB / 213.1 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.0008545/0.0008545, allocations: 97.36 kB / 261.1 MB, free: 13.61 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.06155/0.06155, allocations: 12.58 MB / 321.6 MB, free: 0.9609 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo): time 0.2678/0.2678, allocations: 78.05 MB / 450.4 MB, free: 3.219 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 5.33e-06/5.35e-06, allocations: 0 / 0.5141 GB, free: 29.98 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09782/0.09784, allocations: 69.32 MB / 0.5818 GB, free: 8.75 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2694/0.3673, allocations: 99.96 MB / 0.6795 GB, free: 8.234 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001903/0.3675, allocations: 78.33 kB / 0.6795 GB, free: 8.195 MB / 426.7 MB Notification: Performance of FrontEnd: time 0.1661/0.5337, allocations: 63.56 MB / 0.7416 GB, free: 3.656 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0001426/0.5338, allocations: 67.88 kB / 0.7417 GB, free: 3.59 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 516 * Number of variables: 516 Notification: Performance of Generate backend data structure: time 0.01193/0.5458, allocations: 4.142 MB / 0.7457 GB, free: 15.36 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.595e-05/0.5458, allocations: 11.97 kB / 0.7457 GB, free: 15.35 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0109/0.5567, allocations: 1.677 MB / 0.7474 GB, free: 13.66 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003351/0.5601, allocations: 1.643 MB / 0.749 GB, free: 11.96 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006326/0.5608, allocations: 0.6202 MB / 0.7496 GB, free: 11.24 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003754/0.5611, allocations: 131.9 kB / 0.7497 GB, free: 11.11 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004343/0.5655, allocations: 2.226 MB / 0.7519 GB, free: 8.875 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004223/0.5697, allocations: 2.268 MB / 0.7541 GB, free: 6.527 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.401e-05/0.5698, allocations: 0 / 0.7541 GB, free: 6.527 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002296/0.57, allocations: 0 / 0.7541 GB, free: 6.527 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.449e-05/0.5701, allocations: 48 kB / 0.7541 GB, free: 6.48 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01817/0.5883, allocations: 9.892 MB / 0.7638 GB, free: 12.2 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00269/0.591, allocations: 1.56 MB / 0.7653 GB, free: 10.62 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002184/0.5932, allocations: 1.446 MB / 0.7667 GB, free: 9.16 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002704/0.5934, allocations: 53.95 kB / 0.7668 GB, free: 9.109 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.329e-05/0.5935, allocations: 56.56 kB / 0.7668 GB, free: 9.043 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=241): time 4.378e-06/0.5935, allocations: 0 / 0.7668 GB, free: 9.043 MB / 0.4948 GB Notification: Performance of matching and sorting (n=241): time 0.04063/0.6342, allocations: 12.88 MB / 0.7794 GB, free: 12.14 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001093/0.6343, allocations: 231.6 kB / 0.7796 GB, free: 11.87 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002755/0.6371, allocations: 1.7 MB / 0.7813 GB, free: 10.16 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0004732/0.6376, allocations: 25.7 kB / 0.7813 GB, free: 10.13 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004569/0.638, allocations: 0.6997 MB / 0.782 GB, free: 9.418 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001281/0.6393, allocations: 0.8043 MB / 0.7828 GB, free: 8.602 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001993/0.6395, allocations: 7.938 kB / 0.7828 GB, free: 8.594 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001796/0.6397, allocations: 390.6 kB / 0.7832 GB, free: 8.207 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002169/0.6419, allocations: 1.184 MB / 0.7843 GB, free: 7.02 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002418/0.6443, allocations: 1.487 MB / 0.7858 GB, free: 5.43 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002308/0.6466, allocations: 1.312 MB / 0.787 GB, free: 4.086 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.256e-06/0.6466, allocations: 7.938 kB / 0.7871 GB, free: 4.078 MB / 0.5105 GB Notification: Performance of matching and sorting (n=296) (initialization): time 0.04021/0.6868, allocations: 12.93 MB / 0.7997 GB, free: 7.082 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009436/0.6878, allocations: 2.764 MB / 0.8024 GB, free: 4.117 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.768e-05/0.6879, allocations: 8 kB / 0.8024 GB, free: 4.109 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01729/0.7052, allocations: 5.087 MB / 0.8074 GB, free: 15.02 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002237/0.7074, allocations: 375.5 kB / 0.8077 GB, free: 14.65 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04003/0.7475, allocations: 15.14 MB / 0.8225 GB, free: 15.37 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004023/0.7515, allocations: 0.4978 MB / 0.823 GB, free: 14.87 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003264/0.7519, allocations: 87.95 kB / 0.8231 GB, free: 14.78 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 8.155e-06/0.7519, allocations: 4 kB / 0.8231 GB, free: 14.78 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.04131/0.7932, allocations: 12.6 MB / 0.8354 GB, free: 2.121 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.641e-05/0.7933, allocations: 4 kB / 0.8354 GB, free: 2.117 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01759/0.8109, allocations: 5.091 MB / 0.8404 GB, free: 13.02 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002217/0.8132, allocations: 359.5 kB / 0.8407 GB, free: 12.67 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1769/0.9901, allocations: 15.14 MB / 0.8555 GB, free: 212.4 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003548/0.9937, allocations: 478.4 kB / 0.8559 GB, free: 212.4 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002504/0.9939, allocations: 80.98 kB / 0.856 GB, free: 212.4 MB / 0.573 GB Warning: Assuming fixed start value for the following 6 variables: order3_1.e1q:VARIABLE(start = order3_1.e1q0 unit = "1" ) "q-axis transient voltage" type: Real order3_1.w:VARIABLE(start = 1.0 ) "Rotor speed [pu]" type: Real order3_1.delta:VARIABLE(start = order3_1.delta0 unit = "rad" ) "Rotor angle" type: Real order2.w:VARIABLE(start = 1.0 ) "Rotor speed [pu]" type: Real order2.delta:VARIABLE(start = order2.delta0 unit = "rad" ) "Rotor angle" type: Real order3_2.w:VARIABLE(start = 1.0 ) "Rotor speed [pu]" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (208): * Single equations (assignments): 203 * Array equations: 0 * Algorithm blocks: 4 * 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 {64 25} Notification: Performance of prepare postOptimizeDAE: time 0.000572/0.9945, allocations: 204.3 kB / 0.8562 GB, free: 212.2 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004726/0.995, allocations: 295.6 kB / 0.8565 GB, free: 212.2 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03651/1.032, allocations: 13.13 MB / 0.8693 GB, free: 212.1 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.093e-05/1.032, allocations: 23.88 kB / 0.8693 GB, free: 212.1 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.577e-05/1.032, allocations: 16.78 kB / 0.8694 GB, free: 212.1 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.204e-05/1.032, allocations: 13.97 kB / 0.8694 GB, free: 212.1 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04117/1.073, allocations: 16.62 MB / 0.8856 GB, free: 211.3 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.251e-05/1.073, allocations: 5.859 kB / 0.8856 GB, free: 211.3 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001695/1.075, allocations: 275.8 kB / 0.8859 GB, free: 211.3 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01423/1.089, allocations: 5.009 MB / 0.8908 GB, free: 211 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003454/1.089, allocations: 18.44 kB / 0.8908 GB, free: 211 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03196/1.121, allocations: 13.69 MB / 0.9041 GB, free: 209.1 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.441e-06/1.121, allocations: 1.062 kB / 0.9041 GB, free: 209.1 MB / 0.573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.04087/1.162, allocations: 15.12 MB / 0.9189 GB, free: 199.1 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008662/1.163, allocations: 407.8 kB / 0.9193 GB, free: 198.8 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005769/1.164, allocations: 8 kB / 0.9193 GB, free: 198.8 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003087/1.167, allocations: 387.1 kB / 0.9197 GB, free: 198.5 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008232/1.167, allocations: 327.7 kB / 0.92 GB, free: 198.3 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002292/1.168, allocations: 59.14 kB / 0.92 GB, free: 198.2 MB / 0.573 GB Notification: Performance of sort global known variables: time 0.001547/1.169, allocations: 1.267 MB / 0.9213 GB, free: 197.1 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.003422/1.173, allocations: 1.59 MB / 0.9228 GB, free: 195.6 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 16 (order3_2.delta,order3_2.w,order3_2.e1q,order2.delta,order2.w,order3_1.delta,order3_1.w,order3_1.e1q,Exc1.firstOrder.y,Exc1.firstOrder2.y,Exc1.transferFunction.x_scaled[1],Exc1.transferFunction.x_scaled[2],Exc2.firstOrder.y,Exc2.firstOrder2.y,Exc2.transferFunction.x_scaled[1],Exc2.transferFunction.x_scaled[2]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (162): * Single equations (assignments): 159 * 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: 1 {(65,7.8%) 23} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003666/1.173, allocations: 159.9 kB / 0.923 GB, free: 195.4 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.02445/1.198, allocations: 9.568 MB / 0.9323 GB, free: 186.8 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 5.019e-06/1.198, allocations: 4.062 kB / 0.9323 GB, free: 186.8 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.01111/1.209, allocations: 3.948 MB / 0.9362 GB, free: 183.3 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001487/1.21, allocations: 193.2 kB / 0.9364 GB, free: 183.2 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01003/1.22, allocations: 4.182 MB / 0.9405 GB, free: 179.4 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001556/1.222, allocations: 1.936 MB / 0.9423 GB, free: 177.8 MB / 0.573 GB Notification: Performance of SimCode: time 7.11e-07/1.222, allocations: 0 / 0.9423 GB, free: 177.8 MB / 0.573 GB Notification: Performance of Templates: time 0.08879/1.311, allocations: 75.88 MB / 1.016 GB, free: 111.6 MB / 0.573 GB make -j1 -f OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRI.makefile (rm -f OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRI.pipe ; mkfifo OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRI.pipe ; head -c 1048576 < OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRI.pipe >> ../files/OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRI.sim & ./OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRI -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRI.pipe 2>&1)