Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.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.0.1/package.mo", uses=false) Using package OpenIPSL with version 3.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/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.ThirdOrder_AVRI,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRI") translateModel(OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRI,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_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 4.0.0+maint.om/package.mo): time 0.002419/0.002419, allocations: 178.4 kB / 7.451 MB, free: 2.34 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.284/1.284, allocations: 221.4 MB / 229.3 MB, free: 3.004 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.000915/0.000915, allocations: 103.5 kB / 280.1 MB, free: 1.242 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4122/0.4122, allocations: 78.07 MB / 409 MB, free: 15.63 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 5.29e-06/5.33e-06, allocations: 0 / 484.3 MB, free: 4.512 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2448/0.2448, allocations: 69.34 MB / 0.5407 GB, free: 21.38 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1153/0.3602, allocations: 98.37 MB / 0.6368 GB, free: 6.488 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002181/0.3604, allocations: 75.95 kB / 0.6368 GB, free: 6.414 MB / 458.7 MB Notification: Performance of FrontEnd: time 0.3614/0.7218, allocations: 65.35 MB / 0.7007 GB, free: 97.33 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0002021/0.7221, allocations: 61.38 kB / 0.7007 GB, free: 97.32 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: 516 * Number of variables: 516 Notification: Performance of Generate backend data structure: time 0.01299/0.7351, allocations: 4.144 MB / 0.7048 GB, free: 95.82 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.207e-05/0.7351, allocations: 8.469 kB / 0.7048 GB, free: 95.82 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01284/0.748, allocations: 1.667 MB / 0.7064 GB, free: 95.6 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005031/0.7531, allocations: 1.656 MB / 0.708 GB, free: 94.72 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007634/0.7539, allocations: 0.6198 MB / 0.7086 GB, free: 94.2 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001/0.7549, allocations: 119.4 kB / 0.7087 GB, free: 94.2 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006167/0.7611, allocations: 2.22 MB / 0.7109 GB, free: 93.24 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005948/0.767, allocations: 2.279 MB / 0.7131 GB, free: 91.94 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.761e-05/0.7671, allocations: 5.188 kB / 0.7131 GB, free: 91.93 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004301/0.7676, allocations: 1.281 kB / 0.7131 GB, free: 91.93 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.983e-05/0.7676, allocations: 48.28 kB / 0.7132 GB, free: 91.93 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02064/0.7883, allocations: 9.888 MB / 0.7228 GB, free: 84.23 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002901/0.7912, allocations: 1.567 MB / 0.7244 GB, free: 82.63 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002278/0.7935, allocations: 1.45 MB / 0.7258 GB, free: 81.18 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003569/0.7939, allocations: 45.8 kB / 0.7258 GB, free: 81.14 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.409e-05/0.794, allocations: 56.56 kB / 0.7259 GB, free: 81.07 MB / 490.7 MB Notification: Performance of pre-optimization done (n=241): time 4.869e-06/0.794, allocations: 4 kB / 0.7259 GB, free: 81.07 MB / 490.7 MB Notification: Performance of matching and sorting (n=241): time 0.03984/0.8338, allocations: 12.88 MB / 0.7385 GB, free: 68.21 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.131e-05/0.8339, allocations: 231.6 kB / 0.7387 GB, free: 67.93 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00303/0.837, allocations: 1.696 MB / 0.7403 GB, free: 66.23 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007132/0.8377, allocations: 25.7 kB / 0.7404 GB, free: 66.2 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004365/0.8381, allocations: 0.7074 MB / 0.7411 GB, free: 65.48 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001657/0.8398, allocations: 0.8004 MB / 0.7418 GB, free: 64.67 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004126/0.8402, allocations: 0 / 0.7418 GB, free: 64.67 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001451/0.8404, allocations: 390.6 kB / 0.7422 GB, free: 64.28 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002196/0.8426, allocations: 1.188 MB / 0.7434 GB, free: 63.09 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00228/0.8449, allocations: 1.488 MB / 0.7448 GB, free: 61.5 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002372/0.8473, allocations: 1.312 MB / 0.7461 GB, free: 60.16 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.638e-06/0.8473, allocations: 0 / 0.7461 GB, free: 60.16 MB / 490.7 MB Notification: Performance of matching and sorting (n=296) (initialization): time 0.04055/0.8878, allocations: 12.93 MB / 0.7587 GB, free: 47.21 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004096/0.8883, allocations: 2.763 MB / 0.7614 GB, free: 44.24 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.06e-05/0.8883, allocations: 12 kB / 0.7614 GB, free: 44.23 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01718/0.9055, allocations: 5.081 MB / 0.7664 GB, free: 39.19 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00225/0.9078, allocations: 379.5 kB / 0.7668 GB, free: 38.82 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03691/0.9447, allocations: 15.13 MB / 0.7815 GB, free: 23.56 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004117/0.9489, allocations: 0.4978 MB / 0.782 GB, free: 23.06 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003357/0.9492, allocations: 83.95 kB / 0.7821 GB, free: 22.98 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.165e-06/0.9492, allocations: 7.938 kB / 0.7821 GB, free: 22.97 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.05241/1.002, allocations: 12.6 MB / 0.7944 GB, free: 10.36 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.51e-05/1.002, allocations: 8 kB / 0.7944 GB, free: 10.35 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02853/1.03, allocations: 5.087 MB / 0.7994 GB, free: 5.258 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003636/1.034, allocations: 367.4 kB / 0.7997 GB, free: 4.898 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04323/1.077, allocations: 15.13 MB / 0.8145 GB, free: 5.641 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004106/1.081, allocations: 485.9 kB / 0.815 GB, free: 5.164 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003303/1.082, allocations: 79.98 kB / 0.8151 GB, free: 5.086 MB / 0.4948 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.0006897/1.082, allocations: 212.4 kB / 0.8153 GB, free: 4.863 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006461/1.083, allocations: 292.3 kB / 0.8155 GB, free: 4.574 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04382/1.127, allocations: 13.13 MB / 0.8284 GB, free: 7.441 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.808e-05/1.127, allocations: 31.91 kB / 0.8284 GB, free: 7.41 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.937e-05/1.127, allocations: 16 kB / 0.8284 GB, free: 7.395 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.408e-05/1.127, allocations: 19.89 kB / 0.8284 GB, free: 7.375 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04874/1.176, allocations: 16.62 MB / 0.8447 GB, free: 6.734 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.529e-05/1.176, allocations: 0 / 0.8447 GB, free: 6.734 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002044/1.178, allocations: 275.6 kB / 0.8449 GB, free: 6.465 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01719/1.195, allocations: 5.015 MB / 0.8498 GB, free: 1.441 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005612/1.196, allocations: 15.98 kB / 0.8498 GB, free: 1.426 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03902/1.235, allocations: 13.69 MB / 0.8632 GB, free: 3.617 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.679e-06/1.235, allocations: 4 kB / 0.8632 GB, free: 3.613 MB / 0.5417 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.04749/1.282, allocations: 15.11 MB / 0.878 GB, free: 4.477 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00103/1.283, allocations: 401 kB / 0.8783 GB, free: 4.062 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008488/1.284, allocations: 15.89 kB / 0.8784 GB, free: 4.047 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003682/1.288, allocations: 387.7 kB / 0.8787 GB, free: 3.668 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001019/1.289, allocations: 313.4 kB / 0.879 GB, free: 3.363 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002761/1.289, allocations: 67.92 kB / 0.8791 GB, free: 3.297 MB / 0.5573 GB Notification: Performance of sort global known variables: time 0.002024/1.291, allocations: 1.268 MB / 0.8803 GB, free: 2.023 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.004422/1.296, allocations: 1.591 MB / 0.8819 GB, free: 440 kB / 0.5573 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.0004443/1.296, allocations: 158.5 kB / 0.882 GB, free: 276 kB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.1747/1.471, allocations: 9.564 MB / 0.8914 GB, free: 201 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 5.41e-06/1.471, allocations: 0 / 0.8914 GB, free: 201 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.01151/1.483, allocations: 3.949 MB / 0.8952 GB, free: 200.8 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001549/1.484, allocations: 194.7 kB / 0.8954 GB, free: 200.8 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01056/1.495, allocations: 4.178 MB / 0.8995 GB, free: 199.6 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001589/1.496, allocations: 1.942 MB / 0.9014 GB, free: 198.8 MB / 0.5573 GB Notification: Performance of SimCode: time 6.61e-07/1.496, allocations: 0 / 0.9014 GB, free: 198.8 MB / 0.5573 GB Notification: Performance of Templates: time 0.1017/1.598, allocations: 75.84 MB / 0.9755 GB, free: 165.9 MB / 0.5573 GB make -j1 -f OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRI.makefile (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRI.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRI.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRI.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRI.sim & ./OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRI -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRI.pipe 2>&1)