Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_release_OpenIPSL.Examples.PSATSystems.ThreeArea.SixthOrder_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.ThreeArea.SixthOrder_AVRI,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="OpenIPSL_release_OpenIPSL.Examples.PSATSystems.ThreeArea.SixthOrder_AVRI") translateModel(OpenIPSL.Examples.PSATSystems.ThreeArea.SixthOrder_AVRI,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="OpenIPSL_release_OpenIPSL.Examples.PSATSystems.ThreeArea.SixthOrder_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.001861/0.001861, allocations: 184.2 kB / 7.462 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.059/1.059, allocations: 221.4 MB / 229.3 MB, free: 3.016 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.0008623/0.0008623, allocations: 97.53 kB / 280.1 MB, free: 1.316 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.3666/0.3666, allocations: 78.1 MB / 409 MB, free: 15.66 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 5.53e-06/5.63e-06, allocations: 0 / 484.4 MB, free: 4.57 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2256/0.2257, allocations: 69.35 MB / 0.5408 GB, free: 21.35 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09946/0.3251, allocations: 99.72 MB / 0.6381 GB, free: 5.242 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001905/0.3254, allocations: 79.94 kB / 0.6382 GB, free: 5.164 MB / 458.7 MB Notification: Performance of FrontEnd: time 0.3303/0.6557, allocations: 66.72 MB / 0.7034 GB, free: 97.8 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0002256/0.656, allocations: 55.28 kB / 0.7034 GB, free: 97.8 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: 519 * Number of variables: 519 Notification: Performance of Generate backend data structure: time 0.013/0.669, allocations: 4.21 MB / 0.7075 GB, free: 95.7 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.383e-05/0.669, allocations: 8.531 kB / 0.7075 GB, free: 95.7 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01049/0.6795, allocations: 1.673 MB / 0.7092 GB, free: 94.91 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004159/0.6837, allocations: 1.681 MB / 0.7108 GB, free: 93.72 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005268/0.6842, allocations: 0.6202 MB / 0.7114 GB, free: 93.17 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006469/0.6849, allocations: 129.6 kB / 0.7115 GB, free: 93.16 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004284/0.6892, allocations: 2.236 MB / 0.7137 GB, free: 92.15 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00407/0.6933, allocations: 2.304 MB / 0.716 GB, free: 90.84 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.443e-05/0.6933, allocations: 1.031 kB / 0.716 GB, free: 90.84 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000225/0.6935, allocations: 1.094 kB / 0.716 GB, free: 90.84 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.094e-05/0.6936, allocations: 48.94 kB / 0.716 GB, free: 90.84 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0155/0.7091, allocations: 10.03 MB / 0.7258 GB, free: 81.66 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00214/0.7112, allocations: 1.583 MB / 0.7274 GB, free: 80.04 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001709/0.713, allocations: 1.47 MB / 0.7288 GB, free: 78.57 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002396/0.7132, allocations: 45.8 kB / 0.7288 GB, free: 78.53 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.842e-05/0.7132, allocations: 64.5 kB / 0.7289 GB, free: 78.46 MB / 490.7 MB Notification: Performance of pre-optimization done (n=244): time 3.527e-06/0.7133, allocations: 0 / 0.7289 GB, free: 78.46 MB / 490.7 MB Notification: Performance of matching and sorting (n=244): time 0.03362/0.7469, allocations: 12.9 MB / 0.7415 GB, free: 65.57 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.916e-05/0.747, allocations: 243.6 kB / 0.7417 GB, free: 65.28 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002142/0.7491, allocations: 1.733 MB / 0.7434 GB, free: 63.54 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003623/0.7495, allocations: 29.7 kB / 0.7435 GB, free: 63.5 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002728/0.7498, allocations: 0.7037 MB / 0.7441 GB, free: 62.79 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009396/0.7507, allocations: 0.812 MB / 0.7449 GB, free: 61.96 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001809/0.7509, allocations: 0 / 0.7449 GB, free: 61.96 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 8.202e-05/0.751, allocations: 398.6 kB / 0.7453 GB, free: 61.57 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001738/0.7527, allocations: 1.204 MB / 0.7465 GB, free: 60.36 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001843/0.7546, allocations: 1.511 MB / 0.748 GB, free: 58.75 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001816/0.7564, allocations: 1.332 MB / 0.7493 GB, free: 57.39 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.092e-06/0.7564, allocations: 3.938 kB / 0.7493 GB, free: 57.38 MB / 490.7 MB Notification: Performance of matching and sorting (n=302) (initialization): time 0.03368/0.7901, allocations: 13.04 MB / 0.762 GB, free: 44.32 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003394/0.7905, allocations: 2.773 MB / 0.7647 GB, free: 41.35 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.215e-05/0.7905, allocations: 8 kB / 0.7647 GB, free: 41.34 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01437/0.8048, allocations: 5.137 MB / 0.7697 GB, free: 36.21 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001691/0.8065, allocations: 379.5 kB / 0.7701 GB, free: 35.84 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03277/0.8393, allocations: 16.49 MB / 0.7862 GB, free: 19.11 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003411/0.8428, allocations: 0.5056 MB / 0.7867 GB, free: 18.61 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002417/0.843, allocations: 79.98 kB / 0.7868 GB, free: 18.53 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.01e-06/0.843, allocations: 4 kB / 0.7868 GB, free: 18.52 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03332/0.8763, allocations: 12.7 MB / 0.7992 GB, free: 5.805 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.225e-05/0.8764, allocations: 4 kB / 0.7992 GB, free: 5.801 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01441/0.8908, allocations: 5.142 MB / 0.8042 GB, free: 0.6523 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001573/0.8924, allocations: 359.5 kB / 0.8046 GB, free: 308 kB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03615/0.9285, allocations: 16.5 MB / 0.8207 GB, free: 15.56 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003457/0.932, allocations: 485.9 kB / 0.8211 GB, free: 15.08 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002533/0.9323, allocations: 83.98 kB / 0.8212 GB, free: 15 MB / 0.5105 GB Warning: Assuming fixed start value for the following 6 variables: Syn2.e2d:VARIABLE(start = Syn2.e2d0 unit = "1" ) "d-axis sub-transient voltage" type: Real Syn2.w:VARIABLE(start = 1.0 ) "Rotor speed [pu]" type: Real Syn2.delta:VARIABLE(start = Syn2.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 (213): * Single equations (assignments): 207 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {63 26} Notification: Performance of prepare postOptimizeDAE: time 0.0005623/0.9328, allocations: 205.2 kB / 0.8214 GB, free: 14.78 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005155/0.9334, allocations: 300.3 kB / 0.8217 GB, free: 14.48 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03655/0.9699, allocations: 13.17 MB / 0.8346 GB, free: 1.309 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.485e-05/0.97, allocations: 28 kB / 0.8346 GB, free: 1.281 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.275e-05/0.97, allocations: 20 kB / 0.8346 GB, free: 1.262 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.638e-05/0.9701, allocations: 11.95 kB / 0.8346 GB, free: 1.25 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04238/1.012, allocations: 16.72 MB / 0.8509 GB, free: 0.5117 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.452e-05/1.013, allocations: 0 / 0.8509 GB, free: 0.5117 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00187/1.014, allocations: 279.6 kB / 0.8512 GB, free: 244 kB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01474/1.029, allocations: 4.97 MB / 0.8561 GB, free: 11.26 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006063/1.03, allocations: 19.98 kB / 0.8561 GB, free: 11.24 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03276/1.063, allocations: 13.74 MB / 0.8695 GB, free: 13.38 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.027e-06/1.063, allocations: 4 kB / 0.8695 GB, free: 13.38 MB / 0.5573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.1736/1.236, allocations: 15.2 MB / 0.8843 GB, free: 188.5 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007759/1.237, allocations: 408.6 kB / 0.8847 GB, free: 188.4 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005475/1.238, allocations: 10.97 kB / 0.8847 GB, free: 188.4 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002959/1.241, allocations: 388.2 kB / 0.8851 GB, free: 188.4 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007668/1.241, allocations: 320.3 kB / 0.8854 GB, free: 188.4 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002202/1.242, allocations: 63.66 kB / 0.8855 GB, free: 188.4 MB / 0.5573 GB Notification: Performance of sort global known variables: time 0.00139/1.243, allocations: 1.302 MB / 0.8868 GB, free: 188.2 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.00307/1.246, allocations: 1.611 MB / 0.8883 GB, free: 188.2 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 19 (order3_2.delta,order3_2.w,order3_2.e1q,order2.delta,order2.w,Syn2.delta,Syn2.w,Syn2.e1q,Syn2.e1d,Syn2.e2q,Syn2.e2d,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 (165): * Single equations (assignments): 162 * 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 {(63,8.1%) 25} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003412/1.246, allocations: 154.6 kB / 0.8885 GB, free: 188.1 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.02256/1.269, allocations: 9.863 MB / 0.8981 GB, free: 187.3 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/1.269, allocations: 0 / 0.8981 GB, free: 187.3 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.009775/1.279, allocations: 3.947 MB / 0.902 GB, free: 187 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001201/1.28, allocations: 196.6 kB / 0.9021 GB, free: 187 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009123/1.289, allocations: 4.439 MB / 0.9065 GB, free: 185.9 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00143/1.291, allocations: 1.963 MB / 0.9084 GB, free: 185.1 MB / 0.5573 GB Notification: Performance of SimCode: time 6.12e-07/1.291, allocations: 7.688 kB / 0.9084 GB, free: 185.1 MB / 0.5573 GB Notification: Performance of Templates: time 0.08633/1.377, allocations: 77.48 MB / 0.9841 GB, free: 157.8 MB / 0.5573 GB make -j1 -f OpenIPSL_release_OpenIPSL.Examples.PSATSystems.ThreeArea.SixthOrder_AVRI.makefile (rm -f OpenIPSL_release_OpenIPSL.Examples.PSATSystems.ThreeArea.SixthOrder_AVRI.pipe ; mkfifo OpenIPSL_release_OpenIPSL.Examples.PSATSystems.ThreeArea.SixthOrder_AVRI.pipe ; head -c 1048576 < OpenIPSL_release_OpenIPSL.Examples.PSATSystems.ThreeArea.SixthOrder_AVRI.pipe >> ../files/OpenIPSL_release_OpenIPSL.Examples.PSATSystems.ThreeArea.SixthOrder_AVRI.sim & ./OpenIPSL_release_OpenIPSL.Examples.PSATSystems.ThreeArea.SixthOrder_AVRI -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_release_OpenIPSL.Examples.PSATSystems.ThreeArea.SixthOrder_AVRI.pipe 2>&1)