Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoArea.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.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: "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRI,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoArea_FourthOrder_AVRI",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRI,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoArea_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.00452/0.00452, allocations: 184.1 kB / 7.46 MB, free: 2.512 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.246/1.246, allocations: 221.4 MB / 229.3 MB, free: 3.141 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.0009291/0.0009291, allocations: 98.42 kB / 280.1 MB, free: 1.305 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.5765/0.5765, allocations: 78.07 MB / 409 MB, free: 15.55 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1566/0.7332, allocations: 75.47 MB / 484.4 MB, free: 4.352 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2865/1.02, allocations: 69.35 MB / 0.5408 GB, free: 21.61 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1207/1.141, allocations: 101 MB / 0.6394 GB, free: 3.898 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002031/1.141, allocations: 83.95 kB / 0.6395 GB, free: 3.816 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: 890 * Number of variables: 890 Notification: Performance of Generate backend data structure: time 0.5063/1.647, allocations: 103.3 MB / 0.7404 GB, free: 67.48 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.897e-05/1.647, allocations: 12 kB / 0.7404 GB, free: 67.46 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01894/1.666, allocations: 2.92 MB / 0.7432 GB, free: 64.54 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006479/1.673, allocations: 2.274 MB / 0.7455 GB, free: 62.18 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007671/1.673, allocations: 0.8463 MB / 0.7463 GB, free: 61.21 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001158/1.675, allocations: 215.8 kB / 0.7465 GB, free: 61 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007451/1.682, allocations: 3.435 MB / 0.7499 GB, free: 57.56 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007886/1.69, allocations: 3.586 MB / 0.7534 GB, free: 53.94 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.53e-05/1.69, allocations: 7.938 kB / 0.7534 GB, free: 53.93 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005865/1.691, allocations: 0 / 0.7534 GB, free: 53.93 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.926e-05/1.691, allocations: 84 kB / 0.7534 GB, free: 53.85 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03682/1.728, allocations: 18.57 MB / 0.7716 GB, free: 34.24 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004357/1.732, allocations: 2.255 MB / 0.7738 GB, free: 31.96 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003624/1.736, allocations: 2.105 MB / 0.7758 GB, free: 29.85 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005909/1.736, allocations: 78.89 kB / 0.7759 GB, free: 29.77 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.128e-05/1.736, allocations: 73.48 kB / 0.776 GB, free: 29.69 MB / 490.7 MB Notification: Performance of pre-optimization done (n=380): time 6.382e-06/1.736, allocations: 0 / 0.776 GB, free: 29.69 MB / 490.7 MB Notification: Performance of matching and sorting (n=380): time 0.05451/1.791, allocations: 18.24 MB / 0.7938 GB, free: 11.4 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.711e-05/1.791, allocations: 171.5 kB / 0.794 GB, free: 11.2 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005276/1.796, allocations: 2.424 MB / 0.7963 GB, free: 8.766 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001241/1.798, allocations: 25.7 kB / 0.7964 GB, free: 8.734 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008981/1.798, allocations: 1.178 MB / 0.7975 GB, free: 7.539 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003238/1.802, allocations: 1.243 MB / 0.7987 GB, free: 6.277 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001026/1.803, allocations: 0 / 0.7987 GB, free: 6.277 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002964/1.803, allocations: 445.6 kB / 0.7991 GB, free: 5.836 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003571/1.807, allocations: 1.753 MB / 0.8009 GB, free: 4.078 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003712/1.81, allocations: 2.322 MB / 0.8031 GB, free: 1.555 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003997/1.814, allocations: 1.956 MB / 0.805 GB, free: 15.58 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.392e-05/1.814, allocations: 4 kB / 0.805 GB, free: 15.58 MB / 0.4948 GB Notification: Performance of matching and sorting (n=459) (initialization): time 0.06161/1.876, allocations: 18.33 MB / 0.8229 GB, free: 13.2 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0024/1.879, allocations: 6.608 MB / 0.8294 GB, free: 6.07 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.551e-05/1.879, allocations: 12 kB / 0.8294 GB, free: 6.059 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02619/1.905, allocations: 7.133 MB / 0.8364 GB, free: 14.91 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003171/1.908, allocations: 0.5383 MB / 0.8369 GB, free: 14.38 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06135/1.969, allocations: 22.08 MB / 0.8585 GB, free: 8.148 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006196/1.976, allocations: 0.6568 MB / 0.8591 GB, free: 7.488 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006674/1.976, allocations: 136 kB / 0.8592 GB, free: 7.355 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.107e-05/1.976, allocations: 0 / 0.8592 GB, free: 7.355 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0557/2.032, allocations: 17.86 MB / 0.8767 GB, free: 5.465 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.217e-05/2.032, allocations: 16 kB / 0.8767 GB, free: 5.449 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02554/2.058, allocations: 7.125 MB / 0.8836 GB, free: 14.31 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003399/2.061, allocations: 0.5382 MB / 0.8842 GB, free: 13.77 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2857/2.347, allocations: 22.06 MB / 0.9057 GB, free: 173.7 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006368/2.353, allocations: 0.6346 MB / 0.9063 GB, free: 173.7 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007841/2.354, allocations: 129.3 kB / 0.9064 GB, free: 173.7 MB / 0.573 GB Warning: Assuming fixed start value for the following 5 variables: order4.w:VARIABLE(start = 1.0 ) "Rotor speed [pu]" type: Real order3.w:VARIABLE(start = 1.0 ) "Rotor speed [pu]" type: Real order4.e1d:VARIABLE(start = order4.e1d0 unit = "1" ) "d-axis transient voltage" type: Real order4.e1q:VARIABLE(start = order4.e1q0 unit = "1" ) "q-axis transient voltage" type: Real order4.delta:VARIABLE(start = order4.delta0 unit = "rad" ) "Rotor angle" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 65 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (323): * Single equations (assignments): 320 * 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: 0 * Non-linear torn systems: 1 {92 45} Notification: Performance of prepare postOptimizeDAE: time 0.001048/2.355, allocations: 202.8 kB / 0.9066 GB, free: 173.6 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001/2.356, allocations: 455.8 kB / 0.9071 GB, free: 173.4 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05343/2.41, allocations: 18.65 MB / 0.9253 GB, free: 173.2 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.625e-05/2.41, allocations: 37.62 kB / 0.9253 GB, free: 173.2 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.327e-05/2.41, allocations: 30.22 kB / 0.9253 GB, free: 173.2 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001073/2.41, allocations: 19.17 kB / 0.9254 GB, free: 173.2 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06319/2.473, allocations: 23.55 MB / 0.9484 GB, free: 172.4 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.28e-05/2.473, allocations: 1.062 kB / 0.9484 GB, free: 172.4 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002954/2.476, allocations: 406.1 kB / 0.9488 GB, free: 172.4 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02591/2.502, allocations: 7.166 MB / 0.9558 GB, free: 172.1 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008823/2.503, allocations: 24.27 kB / 0.9558 GB, free: 172.1 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05061/2.554, allocations: 20.1 MB / 0.9754 GB, free: 166.4 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.401e-06/2.554, allocations: 0 / 0.9754 GB, free: 166.4 MB / 0.573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.06175/2.615, allocations: 21.59 MB / 0.9965 GB, free: 153.7 MB / 0.573 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.06462/2.68, allocations: 25.08 MB / 1.021 GB, free: 132.3 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001882/2.682, allocations: 0.5512 MB / 1.022 GB, free: 131.8 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001102/2.683, allocations: 7.516 kB / 1.022 GB, free: 131.8 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004497/2.688, allocations: 472.5 kB / 1.022 GB, free: 131.5 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001389/2.689, allocations: 450.6 kB / 1.022 GB, free: 131.2 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004168/2.689, allocations: 91.75 kB / 1.022 GB, free: 131.1 MB / 0.573 GB Notification: Performance of sort global known variables: time 0.002973/2.692, allocations: 1.798 MB / 1.024 GB, free: 129.5 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01215/2.705, allocations: 2.584 MB / 1.027 GB, free: 127 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 11 (order3.delta,order3.w,order3.e1q,order4.delta,order4.w,order4.e1q,order4.e1d,aVRTypeI.firstOrder.y,aVRTypeI.firstOrder2.y,aVRTypeI.transferFunction.x_scaled[1],aVRTypeI.transferFunction.x_scaled[2]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (250): * Single equations (assignments): 248 * Array equations: 0 * Algorithm blocks: 1 * 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 {(98,5.5%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001415/2.706, allocations: 157.7 kB / 1.027 GB, free: 126.9 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.03922/2.745, allocations: 13.87 MB / 1.04 GB, free: 114.4 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 7.204e-06/2.745, allocations: 1.625 kB / 1.04 GB, free: 114.4 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.01696/2.762, allocations: 5.793 MB / 1.046 GB, free: 109.4 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002538/2.765, allocations: 246.1 kB / 1.046 GB, free: 109.1 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01916/2.784, allocations: 6.253 MB / 1.052 GB, free: 103.4 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002647/2.787, allocations: 2.682 MB / 1.055 GB, free: 101.4 MB / 0.573 GB Notification: Performance of SimCode: time 9.12e-07/2.787, allocations: 0 / 1.055 GB, free: 101.4 MB / 0.573 GB (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRI.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRI.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRI.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRI.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoArea_FourthOrder_AVRI_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoArea_FourthOrder_AVRI.fmu > OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRI.pipe 2>&1)