Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_2.0.0_OpenIPSL.Examples.TwoAreas.Two_Areas_PSAT.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.TwoAreas.Two_Areas_PSAT,tolerance=1e-06,outputFormat="empty",numberOfIntervals=200000,variableFilter="",fileNamePrefix="OpenIPSL_2.0.0_OpenIPSL.Examples.TwoAreas.Two_Areas_PSAT") translateModel(OpenIPSL.Examples.TwoAreas.Two_Areas_PSAT,tolerance=1e-06,outputFormat="empty",numberOfIntervals=200000,variableFilter="",fileNamePrefix="OpenIPSL_2.0.0_OpenIPSL.Examples.TwoAreas.Two_Areas_PSAT") [: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.002272/0.002272, allocations: 183.6 kB / 7.457 MB, free: 2.5 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.196/1.196, 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.001022/0.001022, allocations: 95.27 kB / 261.1 MB, free: 13.6 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.06921/0.06921, allocations: 12.57 MB / 321.6 MB, free: 0.957 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo): time 0.283/0.283, allocations: 78.04 MB / 450.4 MB, free: 3.219 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 4.96e-06/4.98e-06, allocations: 0 / 0.5141 GB, free: 29.99 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1424/0.1424, allocations: 69.32 MB / 0.5818 GB, free: 8.762 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4195/0.5619, allocations: 100.8 MB / 0.6802 GB, free: 7.684 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002378/0.5623, allocations: 73.89 kB / 0.6803 GB, free: 7.645 MB / 426.7 MB Notification: Performance of FrontEnd: time 0.1895/0.7517, allocations: 70.21 MB / 0.7489 GB, free: 12.18 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001948/0.752, allocations: 48 kB / 0.7489 GB, free: 12.13 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: 451 * Number of variables: 451 Notification: Performance of Generate backend data structure: time 0.01083/0.7628, allocations: 3.577 MB / 0.7524 GB, free: 8.488 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.566e-05/0.7629, allocations: 15.97 kB / 0.7524 GB, free: 8.473 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01066/0.7735, allocations: 1.51 MB / 0.7539 GB, free: 6.957 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005035/0.7786, allocations: 1.744 MB / 0.7556 GB, free: 5.148 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004811/0.7792, allocations: 386.8 kB / 0.756 GB, free: 4.715 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005854/0.7798, allocations: 119.8 kB / 0.7561 GB, free: 4.598 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004312/0.7841, allocations: 1.956 MB / 0.758 GB, free: 2.641 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003739/0.7878, allocations: 1.777 MB / 0.7597 GB, free: 0.8516 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.905e-05/0.7879, allocations: 0 / 0.7597 GB, free: 0.8516 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000194/0.7881, allocations: 0 / 0.7597 GB, free: 0.8516 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.459e-05/0.7882, allocations: 44 kB / 0.7598 GB, free: 0.8086 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02117/0.8093, allocations: 9.52 MB / 0.7691 GB, free: 6.887 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00269/0.8121, allocations: 1.383 MB / 0.7704 GB, free: 5.496 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002/0.8141, allocations: 1.272 MB / 0.7716 GB, free: 4.223 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000241/0.8143, allocations: 45.94 kB / 0.7717 GB, free: 4.18 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.58e-05/0.8144, allocations: 56.56 kB / 0.7717 GB, free: 4.113 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=223): time 4.849e-06/0.8144, allocations: 4 kB / 0.7717 GB, free: 4.109 MB / 0.4948 GB Notification: Performance of matching and sorting (n=223): time 0.02832/0.8427, allocations: 8.58 MB / 0.7801 GB, free: 11.51 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.008e-05/0.8428, allocations: 73.41 kB / 0.7802 GB, free: 11.43 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004555/0.8474, allocations: 2.058 MB / 0.7822 GB, free: 9.359 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0008429/0.8483, allocations: 29.7 kB / 0.7822 GB, free: 9.324 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005544/0.8488, allocations: 0.6543 MB / 0.7829 GB, free: 8.656 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002079/0.8509, allocations: 0.7542 MB / 0.7836 GB, free: 7.891 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001666/0.8511, allocations: 0 / 0.7836 GB, free: 7.891 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0002473/0.8513, allocations: 394.1 kB / 0.784 GB, free: 7.5 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002022/0.8534, allocations: 1.028 MB / 0.785 GB, free: 6.469 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002139/0.8555, allocations: 1.3 MB / 0.7863 GB, free: 5.074 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002141/0.8577, allocations: 1.158 MB / 0.7874 GB, free: 3.922 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.227e-06/0.8577, allocations: 0 / 0.7874 GB, free: 3.922 MB / 0.5105 GB Notification: Performance of matching and sorting (n=273) (initialization): time 0.02023/0.8779, allocations: 6.163 MB / 0.7934 GB, free: 13.7 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.287e-05/0.878, allocations: 4 kB / 0.7934 GB, free: 13.69 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.71e-05/0.878, allocations: 4 kB / 0.7934 GB, free: 13.69 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01472/0.8928, allocations: 3.352 MB / 0.7967 GB, free: 10.29 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007797/0.9006, allocations: 1.639 MB / 0.7983 GB, free: 8.645 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02795/0.9286, allocations: 16.64 MB / 0.8145 GB, free: 7.172 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004723/0.9334, allocations: 346 kB / 0.8149 GB, free: 6.832 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008401/0.9342, allocations: 75.98 kB / 0.8149 GB, free: 6.758 MB / 0.5417 GB Warning: Assuming fixed start value for the following 8 variables: g4.order6_1.w:VARIABLE(start = 1.0 ) "Rotor speed [pu]" type: Real g3.order6_1.w:VARIABLE(start = 1.0 ) "Rotor speed [pu]" type: Real g2.order6_1.w:VARIABLE(start = 1.0 ) "Rotor speed [pu]" type: Real g1.order6_1.w:VARIABLE(start = 1.0 ) "Rotor speed [pu]" type: Real g4.order6_1.e2d:VARIABLE(start = g4.order6_1.e2d0 unit = "1" ) "d-axis sub-transient voltage" type: Real g4.order6_1.delta:VARIABLE(start = g4.order6_1.delta0 unit = "rad" ) "Rotor angle" type: Real g3.order6_1.e2d:VARIABLE(start = g3.order6_1.e2d0 unit = "1" ) "d-axis sub-transient voltage" type: Real g3.order6_1.delta:VARIABLE(start = g3.order6_1.delta0 unit = "rad" ) "Rotor angle" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (203): * Single equations (assignments): 187 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 9 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 9 {(2,100.0%),(2,100.0%),(2,100.0%),(2,100.0%),(2,100.0%),(2,100.0%),(2,100.0%),(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(4,75.0%) 2,(4,75.0%) 2,(1,100.0%) 1,(3,88.9%) 17,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 1 {8 22} Notification: Performance of prepare postOptimizeDAE: time 0.0007501/0.935, allocations: 162.2 kB / 0.8151 GB, free: 6.598 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001146/0.9362, allocations: 300.2 kB / 0.8154 GB, free: 6.301 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0272/0.9634, allocations: 8.803 MB / 0.824 GB, free: 13.48 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.729e-05/0.9635, allocations: 20 kB / 0.824 GB, free: 13.46 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.9635, allocations: 0 / 0.824 GB, free: 13.46 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.346e-05/0.9636, allocations: 19.86 kB / 0.824 GB, free: 13.44 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03548/0.9991, allocations: 12.15 MB / 0.8359 GB, free: 1.156 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.594e-05/0.9992, allocations: 0 / 0.8359 GB, free: 1.156 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002114/1.001, allocations: 219.7 kB / 0.8361 GB, free: 0.9414 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01409/1.015, allocations: 4.054 MB / 0.84 GB, free: 12.88 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008277/1.016, allocations: 19.98 kB / 0.8401 GB, free: 12.86 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03163/1.048, allocations: 11.96 MB / 0.8517 GB, free: 0.7734 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.79e-06/1.048, allocations: 0 / 0.8517 GB, free: 0.7734 MB / 0.573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.256/1.304, allocations: 10.54 MB / 0.862 GB, free: 217.2 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001239/1.305, allocations: 462.8 kB / 0.8625 GB, free: 217 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006231/1.306, allocations: 6.781 kB / 0.8625 GB, free: 217 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002742/1.309, allocations: 199.6 kB / 0.8627 GB, free: 217 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005467/1.309, allocations: 223.8 kB / 0.8629 GB, free: 217 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001889/1.309, allocations: 53.41 kB / 0.8629 GB, free: 217 MB / 0.573 GB Notification: Performance of sort global known variables: time 0.002198/1.312, allocations: 1.553 MB / 0.8645 GB, free: 216.9 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.002521/1.314, allocations: 0.8873 MB / 0.8653 GB, free: 216.9 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 24 (g1.order6_1.delta,g1.order6_1.w,g1.order6_1.e1q,g1.order6_1.e1d,g1.order6_1.e2q,g1.order6_1.e2d,g2.order6_1.delta,g2.order6_1.w,g2.order6_1.e1q,g2.order6_1.e1d,g2.order6_1.e2q,g2.order6_1.e2d,g3.order6_1.delta,g3.order6_1.w,g3.order6_1.e1q,g3.order6_1.e1d,g3.order6_1.e2q,g3.order6_1.e2d,g4.order6_1.delta,g4.order6_1.w,g4.order6_1.e1q,g4.order6_1.e1d,g4.order6_1.e2q,g4.order6_1.e2d) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (136): * Single equations (assignments): 135 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {54 42} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005256/1.315, allocations: 285 kB / 0.8656 GB, free: 216.8 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.01091/1.326, allocations: 5.238 MB / 0.8707 GB, free: 215.1 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 6.512e-06/1.326, allocations: 0 / 0.8707 GB, free: 215.1 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.009978/1.336, allocations: 3.098 MB / 0.8737 GB, free: 214.9 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002837/1.339, allocations: 167.8 kB / 0.8739 GB, free: 214.9 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01151/1.35, allocations: 4.779 MB / 0.8786 GB, free: 213.6 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001987/1.352, allocations: 1.947 MB / 0.8805 GB, free: 212.8 MB / 0.573 GB Notification: Performance of SimCode: time 1.403e-06/1.352, allocations: 0 / 0.8805 GB, free: 212.8 MB / 0.573 GB Notification: Performance of Templates: time 0.06925/1.421, allocations: 46.03 MB / 0.9254 GB, free: 197.6 MB / 0.573 GB make -j1 -f OpenIPSL_2.0.0_OpenIPSL.Examples.TwoAreas.Two_Areas_PSAT.makefile (rm -f OpenIPSL_2.0.0_OpenIPSL.Examples.TwoAreas.Two_Areas_PSAT.pipe ; mkfifo OpenIPSL_2.0.0_OpenIPSL.Examples.TwoAreas.Two_Areas_PSAT.pipe ; head -c 1048576 < OpenIPSL_2.0.0_OpenIPSL.Examples.TwoAreas.Two_Areas_PSAT.pipe >> ../files/OpenIPSL_2.0.0_OpenIPSL.Examples.TwoAreas.Two_Areas_PSAT.sim & ./OpenIPSL_2.0.0_OpenIPSL.Examples.TwoAreas.Two_Areas_PSAT -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_2.0.0_OpenIPSL.Examples.TwoAreas.Two_Areas_PSAT.pipe 2>&1)