Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_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: "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRI,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_ThreeArea_FourthOrder_AVRI",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRI,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_ThreeArea_FourthOrder_AVRI",fmuType="me",version="2.0",platforms={"static"}) [: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.003562/0.003562, allocations: 185.1 kB / 7.459 MB, free: 2.516 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.214/1.214, 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.0009202/0.0009203, allocations: 104.4 kB / 280.1 MB, free: 1.312 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.4154/0.4154, allocations: 78.92 MB / 409.8 MB, free: 14.97 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1477/0.5632, allocations: 75.65 MB / 485.5 MB, free: 3.566 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2875/0.8507, allocations: 69.5 MB / 0.542 GB, free: 20.9 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1228/0.9735, allocations: 99.78 MB / 0.6394 GB, free: 4.141 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000256/0.9738, allocations: 75.95 kB / 0.6395 GB, free: 4.066 MB / 458.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.4249/1.399, allocations: 70.89 MB / 0.7087 GB, free: 95.17 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.202e-05/1.399, allocations: 9.125 kB / 0.7087 GB, free: 95.17 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01191/1.411, allocations: 1.667 MB / 0.7103 GB, free: 94.39 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005285/1.416, allocations: 1.66 MB / 0.712 GB, free: 93.21 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007098/1.417, allocations: 0.6224 MB / 0.7126 GB, free: 92.66 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001072/1.418, allocations: 127.3 kB / 0.7127 GB, free: 92.65 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006056/1.424, allocations: 2.221 MB / 0.7149 GB, free: 91.65 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008395/1.432, allocations: 2.275 MB / 0.7171 GB, free: 90.35 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001029/1.433, allocations: 1.875 kB / 0.7171 GB, free: 90.35 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000587/1.433, allocations: 0 / 0.7171 GB, free: 90.35 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.719e-05/1.433, allocations: 48.94 kB / 0.7171 GB, free: 90.35 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02117/1.454, allocations: 9.936 MB / 0.7268 GB, free: 80.23 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002832/1.457, allocations: 1.567 MB / 0.7284 GB, free: 78.63 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002305/1.46, allocations: 1.446 MB / 0.7298 GB, free: 77.18 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003565/1.46, allocations: 45.72 kB / 0.7298 GB, free: 77.14 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.888e-05/1.46, allocations: 68.48 kB / 0.7299 GB, free: 77.07 MB / 490.7 MB Notification: Performance of pre-optimization done (n=242): time 4.849e-06/1.46, allocations: 0 / 0.7299 GB, free: 77.07 MB / 490.7 MB Notification: Performance of matching and sorting (n=242): time 0.03943/1.499, allocations: 12.87 MB / 0.7425 GB, free: 64.2 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001209/1.5, allocations: 235.6 kB / 0.7427 GB, free: 63.92 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004277/1.504, allocations: 1.688 MB / 0.7443 GB, free: 62.22 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009248/1.505, allocations: 29.7 kB / 0.7444 GB, free: 62.19 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005355/1.505, allocations: 0.6996 MB / 0.745 GB, free: 61.48 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001886/1.507, allocations: 0.8043 MB / 0.7458 GB, free: 60.66 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005434/1.508, allocations: 3.938 kB / 0.7458 GB, free: 60.66 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002216/1.508, allocations: 394.5 kB / 0.7462 GB, free: 60.27 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002385/1.511, allocations: 1.188 MB / 0.7474 GB, free: 59.07 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002305/1.513, allocations: 1.492 MB / 0.7488 GB, free: 57.48 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002401/1.515, allocations: 1.314 MB / 0.7501 GB, free: 56.13 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.297e-05/1.515, allocations: 0 / 0.7501 GB, free: 56.13 MB / 490.7 MB Notification: Performance of matching and sorting (n=298) (initialization): time 0.03805/1.553, allocations: 12.94 MB / 0.7627 GB, free: 43.17 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005526/1.554, allocations: 2.754 MB / 0.7654 GB, free: 40.21 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.024e-05/1.554, allocations: 8 kB / 0.7654 GB, free: 40.2 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01608/1.57, allocations: 5.047 MB / 0.7704 GB, free: 35.15 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002427/1.573, allocations: 383.5 kB / 0.7707 GB, free: 34.77 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03845/1.611, allocations: 15.18 MB / 0.7856 GB, free: 19.47 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005164/1.616, allocations: 0.4978 MB / 0.786 GB, free: 18.97 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008562/1.617, allocations: 83.97 kB / 0.7861 GB, free: 18.89 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.355e-05/1.617, allocations: 4 kB / 0.7861 GB, free: 18.89 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0382/1.655, allocations: 12.6 MB / 0.7984 GB, free: 6.266 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.405e-05/1.656, allocations: 8 kB / 0.7984 GB, free: 6.258 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01588/1.671, allocations: 5.05 MB / 0.8034 GB, free: 1.207 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002217/1.674, allocations: 359.5 kB / 0.8037 GB, free: 0.8555 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04141/1.715, allocations: 15.17 MB / 0.8185 GB, free: 1.566 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004604/1.72, allocations: 489.9 kB / 0.819 GB, free: 1.086 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000552/1.72, allocations: 83.97 kB / 0.8191 GB, free: 1.004 MB / 0.4948 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.0008747/1.721, allocations: 213.2 kB / 0.8193 GB, free: 0.7773 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001072/1.722, allocations: 292.3 kB / 0.8196 GB, free: 500 kB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04125/1.764, allocations: 13.12 MB / 0.8324 GB, free: 3.367 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.303e-05/1.764, allocations: 28 kB / 0.8324 GB, free: 3.34 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.08e-05/1.764, allocations: 20 kB / 0.8324 GB, free: 3.32 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.98e-05/1.764, allocations: 11.95 kB / 0.8324 GB, free: 3.309 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04951/1.813, allocations: 16.63 MB / 0.8487 GB, free: 2.652 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.667e-05/1.813, allocations: 0 / 0.8487 GB, free: 2.652 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002141/1.816, allocations: 275.6 kB / 0.8489 GB, free: 2.383 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01673/1.832, allocations: 5.007 MB / 0.8538 GB, free: 13.36 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008225/1.833, allocations: 15.98 kB / 0.8538 GB, free: 13.34 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03818/1.871, allocations: 13.67 MB / 0.8672 GB, free: 15.54 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.101e-06/1.871, allocations: 0 / 0.8672 GB, free: 15.54 MB / 0.5573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.04665/1.918, allocations: 15.13 MB / 0.882 GB, free: 392 kB / 0.5573 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.253/2.171, allocations: 17.56 MB / 0.8991 GB, free: 202.9 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001343/2.173, allocations: 398 kB / 0.8995 GB, free: 202.8 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001039/2.174, allocations: 18.23 kB / 0.8995 GB, free: 202.8 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003257/2.177, allocations: 380 kB / 0.8999 GB, free: 202.8 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008467/2.178, allocations: 328.5 kB / 0.9002 GB, free: 202.8 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002325/2.178, allocations: 65.42 kB / 0.9003 GB, free: 202.8 MB / 0.573 GB Notification: Performance of sort global known variables: time 0.00168/2.18, allocations: 1.262 MB / 0.9015 GB, free: 202.7 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.005613/2.185, allocations: 1.594 MB / 0.903 GB, free: 202.7 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 {(65,7.8%) 23} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005434/2.186, allocations: 146.6 kB / 0.9032 GB, free: 202.6 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.02586/2.212, allocations: 9.533 MB / 0.9125 GB, free: 201.9 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.012e-05/2.212, allocations: 0 / 0.9125 GB, free: 201.9 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.01157/2.223, allocations: 3.948 MB / 0.9163 GB, free: 201.6 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002439/2.226, allocations: 193.7 kB / 0.9165 GB, free: 201.6 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01251/2.238, allocations: 4.272 MB / 0.9207 GB, free: 200.5 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001687/2.24, allocations: 1.979 MB / 0.9226 GB, free: 199.8 MB / 0.573 GB Notification: Performance of SimCode: time 9.22e-07/2.24, allocations: 0 / 0.9226 GB, free: 199.8 MB / 0.573 GB (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRI.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRI.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRI.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRI.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_ThreeArea_FourthOrder_AVRI_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_ThreeArea_FourthOrder_AVRI.fmu > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRI.pipe 2>&1)