Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_release_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_release_OpenIPSL_Examples_PSATSystems_ThreeArea_FourthOrder_AVRI",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRI,fileNamePrefix="OpenIPSL_release_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.002024/0.002024, allocations: 184.8 kB / 7.463 MB, free: 2.504 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.043/1.043, allocations: 221.4 MB / 229.3 MB, free: 3.074 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.0008267/0.0008267, allocations: 96.67 kB / 280.1 MB, free: 1.246 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.3542/0.3542, allocations: 78.1 MB / 409 MB, free: 15.68 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1099/0.4641, allocations: 75.49 MB / 484.5 MB, free: 4.469 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2211/0.6852, allocations: 69.35 MB / 0.5409 GB, free: 21.5 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09725/0.7825, allocations: 99.08 MB / 0.6376 GB, free: 5.816 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001907/0.7828, allocations: 75.95 kB / 0.6377 GB, free: 5.742 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.3313/1.114, allocations: 69.7 MB / 0.7057 GB, free: 96.38 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.383e-05/1.114, allocations: 9.031 kB / 0.7058 GB, free: 96.38 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01053/1.125, allocations: 1.672 MB / 0.7074 GB, free: 95.9 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003667/1.128, allocations: 1.653 MB / 0.709 GB, free: 94.73 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005911/1.129, allocations: 0.6231 MB / 0.7096 GB, free: 94.18 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006679/1.13, allocations: 127.7 kB / 0.7097 GB, free: 94.17 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004538/1.134, allocations: 2.218 MB / 0.7119 GB, free: 93.17 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003717/1.138, allocations: 2.275 MB / 0.7141 GB, free: 91.88 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.423e-05/1.138, allocations: 1.688 kB / 0.7141 GB, free: 91.88 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002187/1.138, allocations: 0 / 0.7141 GB, free: 91.88 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.256e-05/1.138, allocations: 48.62 kB / 0.7142 GB, free: 91.88 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01487/1.153, allocations: 9.901 MB / 0.7238 GB, free: 83.57 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00215/1.155, allocations: 1.571 MB / 0.7254 GB, free: 81.96 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001687/1.157, allocations: 1.45 MB / 0.7268 GB, free: 80.51 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002557/1.157, allocations: 49.47 kB / 0.7268 GB, free: 80.47 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.27e-05/1.157, allocations: 68.5 kB / 0.7269 GB, free: 80.39 MB / 490.7 MB Notification: Performance of pre-optimization done (n=242): time 3.597e-06/1.157, allocations: 0 / 0.7269 GB, free: 80.39 MB / 490.7 MB Notification: Performance of matching and sorting (n=242): time 0.03359/1.191, allocations: 12.87 MB / 0.7395 GB, free: 67.53 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.707e-05/1.191, allocations: 231.6 kB / 0.7397 GB, free: 67.25 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001932/1.193, allocations: 1.684 MB / 0.7413 GB, free: 65.56 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003063/1.193, allocations: 29.7 kB / 0.7414 GB, free: 65.53 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002675/1.193, allocations: 0.7035 MB / 0.7421 GB, free: 64.81 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008812/1.194, allocations: 0.8004 MB / 0.7428 GB, free: 64 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001794/1.194, allocations: 0 / 0.7428 GB, free: 64 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 8.649e-05/1.195, allocations: 398.5 kB / 0.7432 GB, free: 63.61 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001724/1.196, allocations: 1.188 MB / 0.7444 GB, free: 62.41 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001827/1.198, allocations: 1.492 MB / 0.7458 GB, free: 60.82 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001813/1.2, allocations: 1.318 MB / 0.7471 GB, free: 59.46 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.741e-06/1.2, allocations: 0 / 0.7471 GB, free: 59.46 MB / 490.7 MB Notification: Performance of matching and sorting (n=298) (initialization): time 0.03362/1.234, allocations: 12.94 MB / 0.7598 GB, free: 46.5 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003567/1.234, allocations: 2.761 MB / 0.7625 GB, free: 43.53 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.463e-05/1.234, allocations: 8 kB / 0.7625 GB, free: 43.52 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01452/1.249, allocations: 5.045 MB / 0.7674 GB, free: 38.51 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002024/1.251, allocations: 379.5 kB / 0.7678 GB, free: 38.14 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03219/1.283, allocations: 15.18 MB / 0.7826 GB, free: 22.82 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003614/1.286, allocations: 0.4978 MB / 0.7831 GB, free: 22.32 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002468/1.287, allocations: 79.97 kB / 0.7831 GB, free: 22.25 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.282e-06/1.287, allocations: 4 kB / 0.7831 GB, free: 22.24 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03279/1.319, allocations: 12.6 MB / 0.7955 GB, free: 9.621 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.831e-05/1.32, allocations: 12 kB / 0.7955 GB, free: 9.609 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01419/1.334, allocations: 5.05 MB / 0.8004 GB, free: 4.559 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002034/1.336, allocations: 363.5 kB / 0.8007 GB, free: 4.203 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03535/1.371, allocations: 15.16 MB / 0.8155 GB, free: 4.914 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00384/1.375, allocations: 485.9 kB / 0.816 GB, free: 4.438 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000305/1.375, allocations: 79.97 kB / 0.8161 GB, free: 4.359 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.0006273/1.376, allocations: 209.3 kB / 0.8163 GB, free: 4.137 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006088/1.377, allocations: 304.3 kB / 0.8166 GB, free: 3.836 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03708/1.414, allocations: 13.12 MB / 0.8294 GB, free: 6.719 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.255e-05/1.414, allocations: 31.98 kB / 0.8294 GB, free: 6.688 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.12e-05/1.414, allocations: 20 kB / 0.8294 GB, free: 6.668 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.41e-05/1.414, allocations: 11.95 kB / 0.8295 GB, free: 6.656 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0423/1.456, allocations: 16.63 MB / 0.8457 GB, free: 6.004 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.554e-05/1.456, allocations: 0 / 0.8457 GB, free: 6.004 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001894/1.458, allocations: 271.6 kB / 0.8459 GB, free: 5.738 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01502/1.473, allocations: 5.002 MB / 0.8508 GB, free: 0.7305 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005196/1.474, allocations: 12 kB / 0.8508 GB, free: 0.7188 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03211/1.506, allocations: 13.71 MB / 0.8642 GB, free: 2.875 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.799e-06/1.506, allocations: 3.938 kB / 0.8642 GB, free: 2.871 MB / 0.5417 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.04136/1.547, allocations: 15.13 MB / 0.879 GB, free: 3.715 MB / 0.5573 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.1812/1.728, allocations: 17.57 MB / 0.8962 GB, free: 193.8 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008397/1.729, allocations: 404.2 kB / 0.8965 GB, free: 193.7 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000515/1.73, allocations: 7.219 kB / 0.8966 GB, free: 193.7 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002876/1.733, allocations: 387 kB / 0.8969 GB, free: 193.7 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007758/1.734, allocations: 321.9 kB / 0.8972 GB, free: 193.7 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002198/1.734, allocations: 64.8 kB / 0.8973 GB, free: 193.7 MB / 0.5573 GB Notification: Performance of sort global known variables: time 0.001414/1.735, allocations: 1.257 MB / 0.8985 GB, free: 193.5 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.004484/1.74, allocations: 1.601 MB / 0.9001 GB, free: 193.5 MB / 0.5573 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.0003648/1.74, allocations: 145.6 kB / 0.9002 GB, free: 193.4 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.0228/1.763, allocations: 9.531 MB / 0.9095 GB, free: 192.7 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 4.739e-06/1.763, allocations: 3.906 kB / 0.9095 GB, free: 192.7 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.01013/1.773, allocations: 3.945 MB / 0.9134 GB, free: 192.3 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001546/1.775, allocations: 192.9 kB / 0.9136 GB, free: 192.2 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009803/1.784, allocations: 4.263 MB / 0.9177 GB, free: 191 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001804/1.786, allocations: 1.979 MB / 0.9197 GB, free: 190.2 MB / 0.5573 GB Notification: Performance of SimCode: time 6.11e-07/1.786, allocations: 4 kB / 0.9197 GB, free: 190.2 MB / 0.5573 GB (rm -f OpenIPSL_release_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRI.pipe ; mkfifo OpenIPSL_release_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRI.pipe ; head -c 1048576 < OpenIPSL_release_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRI.pipe >> ../files/OpenIPSL_release_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRI.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_OpenIPSL_release_OpenIPSL_Examples_PSATSystems_ThreeArea_FourthOrder_AVRI_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_release_OpenIPSL_Examples_PSATSystems_ThreeArea_FourthOrder_AVRI.fmu > OpenIPSL_release_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRI.pipe 2>&1)