Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_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.FourthOrder_AVRI,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRI") translateModel(OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRI,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_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.003377/0.003377, allocations: 175.2 kB / 7.451 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.303/1.303, allocations: 205.2 MB / 213.1 MB, free: 13.92 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.0009991/0.0009992, allocations: 89.5 kB / 261.1 MB, free: 13.62 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.06401/0.06401, allocations: 12.59 MB / 321.6 MB, free: 0.9648 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo): time 0.2784/0.2784, allocations: 78.04 MB / 450.4 MB, free: 3.223 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 5.581e-06/5.611e-06, allocations: 0 / 0.5141 GB, free: 29.98 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1103/0.1103, allocations: 69.32 MB / 0.5818 GB, free: 8.75 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2914/0.4018, allocations: 100.7 MB / 0.6802 GB, free: 7.516 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001843/0.402, allocations: 80.45 kB / 0.6802 GB, free: 7.473 MB / 426.7 MB Notification: Performance of FrontEnd: time 0.1629/0.565, allocations: 63.69 MB / 0.7424 GB, free: 2.809 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0002655/0.5653, allocations: 59.94 kB / 0.7425 GB, free: 2.75 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: 517 * Number of variables: 517 Notification: Performance of Generate backend data structure: time 0.01344/0.5787, allocations: 4.154 MB / 0.7466 GB, free: 14.51 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.71e-05/0.5788, allocations: 15.97 kB / 0.7466 GB, free: 14.49 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01123/0.5901, allocations: 1.666 MB / 0.7482 GB, free: 12.82 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004869/0.595, allocations: 1.654 MB / 0.7498 GB, free: 11.1 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000839/0.5958, allocations: 0.6281 MB / 0.7504 GB, free: 10.37 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009266/0.5968, allocations: 131.9 kB / 0.7506 GB, free: 10.24 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005473/0.6023, allocations: 2.218 MB / 0.7527 GB, free: 8.012 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005472/0.6078, allocations: 2.276 MB / 0.7549 GB, free: 5.66 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.411e-05/0.6078, allocations: 4 kB / 0.7549 GB, free: 5.656 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003241/0.6082, allocations: 0 / 0.7549 GB, free: 5.656 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.203e-05/0.6082, allocations: 48 kB / 0.755 GB, free: 5.609 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02/0.6282, allocations: 9.896 MB / 0.7647 GB, free: 11.32 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002857/0.6311, allocations: 1.564 MB / 0.7662 GB, free: 9.73 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002322/0.6334, allocations: 1.45 MB / 0.7676 GB, free: 8.27 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003132/0.6338, allocations: 53.97 kB / 0.7676 GB, free: 8.219 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.072e-05/0.6338, allocations: 56.56 kB / 0.7677 GB, free: 8.152 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=242): time 3.937e-06/0.6338, allocations: 4 kB / 0.7677 GB, free: 8.148 MB / 0.4948 GB Notification: Performance of matching and sorting (n=242): time 0.03982/0.6737, allocations: 12.88 MB / 0.7803 GB, free: 11.24 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001114/0.6738, allocations: 235.6 kB / 0.7805 GB, free: 10.96 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003549/0.6774, allocations: 1.693 MB / 0.7822 GB, free: 9.262 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0006519/0.678, allocations: 25.7 kB / 0.7822 GB, free: 9.23 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005416/0.6786, allocations: 0.7035 MB / 0.7829 GB, free: 8.516 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.00183/0.6804, allocations: 0.8081 MB / 0.7837 GB, free: 7.695 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004027/0.6808, allocations: 0 / 0.7837 GB, free: 7.695 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0002258/0.6811, allocations: 390.6 kB / 0.784 GB, free: 7.309 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002377/0.6835, allocations: 1.192 MB / 0.7852 GB, free: 6.113 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002575/0.6861, allocations: 1.488 MB / 0.7867 GB, free: 4.523 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002465/0.6885, allocations: 1.314 MB / 0.7879 GB, free: 3.176 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.188e-05/0.6885, allocations: 7.938 kB / 0.7879 GB, free: 3.168 MB / 0.5105 GB Notification: Performance of matching and sorting (n=298) (initialization): time 0.03922/0.7278, allocations: 12.93 MB / 0.8006 GB, free: 6.18 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009385/0.7288, allocations: 2.759 MB / 0.8033 GB, free: 3.215 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.004e-05/0.7288, allocations: 8 kB / 0.8033 GB, free: 3.207 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01678/0.7456, allocations: 5.051 MB / 0.8082 GB, free: 14.14 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002283/0.7479, allocations: 383.5 kB / 0.8086 GB, free: 13.77 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0414/0.7893, allocations: 15.17 MB / 0.8234 GB, free: 14.46 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00435/0.7937, allocations: 0.5017 MB / 0.8239 GB, free: 13.96 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006003/0.7944, allocations: 87.97 kB / 0.824 GB, free: 13.87 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.106e-05/0.7944, allocations: 7.906 kB / 0.824 GB, free: 13.86 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.04028/0.8347, allocations: 12.6 MB / 0.8363 GB, free: 1.207 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.969e-05/0.8347, allocations: 4 kB / 0.8363 GB, free: 1.203 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01724/0.852, allocations: 5.047 MB / 0.8412 GB, free: 12.15 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002189/0.8542, allocations: 363.5 kB / 0.8416 GB, free: 11.79 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2103/1.064, allocations: 15.16 MB / 0.8564 GB, free: 211.4 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004501/1.069, allocations: 487 kB / 0.8568 GB, free: 211.4 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003307/1.069, allocations: 82.89 kB / 0.8569 GB, free: 211.4 MB / 0.573 GB Warning: Assuming fixed start value for the following 7 variables: order4_1.e1d:VARIABLE(start = order4_1.e1d0 unit = "1" ) "d-axis transient voltage" type: Real order4_1.e1q:VARIABLE(start = order4_1.e1q0 unit = "1" ) "q-axis transient voltage" type: Real order4_1.w:VARIABLE(start = 1.0 ) "Rotor speed [pu]" type: Real order4_1.delta:VARIABLE(start = order4_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 (210): * Single equations (assignments): 205 * 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 {62 27} Notification: Performance of prepare postOptimizeDAE: time 0.0007507/1.07, allocations: 207.5 kB / 0.8571 GB, free: 211.2 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006607/1.071, allocations: 294.8 kB / 0.8574 GB, free: 211.2 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03714/1.108, allocations: 13.13 MB / 0.8702 GB, free: 211 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.529e-05/1.108, allocations: 25.31 kB / 0.8702 GB, free: 211 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.262e-05/1.108, allocations: 16.97 kB / 0.8702 GB, free: 211 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.834e-05/1.108, allocations: 17.7 kB / 0.8703 GB, free: 211 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04165/1.15, allocations: 16.62 MB / 0.8865 GB, free: 210.2 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.46e-05/1.15, allocations: 2.844 kB / 0.8865 GB, free: 210.2 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001785/1.152, allocations: 274.6 kB / 0.8868 GB, free: 210.2 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01433/1.166, allocations: 4.995 MB / 0.8916 GB, free: 210.1 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003504/1.166, allocations: 19.64 kB / 0.8917 GB, free: 210.1 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03152/1.198, allocations: 13.7 MB / 0.905 GB, free: 208.2 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.438e-06/1.198, allocations: 3.812 kB / 0.905 GB, free: 208.2 MB / 0.573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.03954/1.237, allocations: 15.13 MB / 0.9198 GB, free: 198.2 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008246/1.238, allocations: 399.4 kB / 0.9202 GB, free: 197.8 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005329/1.239, allocations: 11.91 kB / 0.9202 GB, free: 197.8 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003014/1.242, allocations: 389.6 kB / 0.9206 GB, free: 197.5 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007888/1.243, allocations: 316.4 kB / 0.9209 GB, free: 197.4 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002277/1.243, allocations: 63.66 kB / 0.9209 GB, free: 197.3 MB / 0.573 GB Notification: Performance of sort global known variables: time 0.001496/1.244, allocations: 1.268 MB / 0.9222 GB, free: 196.1 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.003385/1.248, allocations: 1.586 MB / 0.9237 GB, free: 194.6 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 17 (order3_2.delta,order3_2.w,order3_2.e1q,order2.delta,order2.w,order4_1.delta,order4_1.w,order4_1.e1q,order4_1.e1d,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 (163): * Single equations (assignments): 160 * 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 {(64,8.0%) 24} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000363/1.248, allocations: 156 kB / 0.9239 GB, free: 194.5 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.02358/1.272, allocations: 9.538 MB / 0.9332 GB, free: 185.9 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 4.319e-06/1.272, allocations: 0 / 0.9332 GB, free: 185.9 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.01085/1.283, allocations: 3.942 MB / 0.937 GB, free: 182.4 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001502/1.284, allocations: 192.6 kB / 0.9372 GB, free: 182.2 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009561/1.294, allocations: 4.245 MB / 0.9414 GB, free: 178.4 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001482/1.295, allocations: 1.943 MB / 0.9433 GB, free: 176.9 MB / 0.573 GB Notification: Performance of SimCode: time 6.71e-07/1.295, allocations: 0 / 0.9433 GB, free: 176.9 MB / 0.573 GB Notification: Performance of Templates: time 0.08883/1.384, allocations: 76.04 MB / 1.018 GB, free: 110.6 MB / 0.573 GB make -j1 -f OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRI.makefile (rm -f OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRI.pipe ; mkfifo OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRI.pipe ; head -c 1048576 < OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRI.pipe >> ../files/OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRI.sim & ./OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRI -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRI.pipe 2>&1)