Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_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.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.ThreeArea.FourthOrder_AVRI,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_ThreeArea_FourthOrder_AVRI",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRI,fileNamePrefix="OpenIPSL_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.004504/0.004504, allocations: 181.9 kB / 7.459 MB, free: 1.922 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.266/1.266, allocations: 221.4 MB / 229.3 MB, free: 7.719 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.0008957/0.0008958, allocations: 99.02 kB / 280.1 MB, free: 5.496 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4389/0.4389, allocations: 78.06 MB / 408.9 MB, free: 6.523 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1366/0.5755, allocations: 75.49 MB / 484.4 MB, free: 12.59 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1245/0.6999, allocations: 69.36 MB / 0.5408 GB, free: 7.129 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3326/1.033, allocations: 99.09 MB / 0.6376 GB, free: 0.8047 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002549/1.033, allocations: 80.47 kB / 0.6377 GB, free: 0.7266 MB / 442.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.1928/1.226, allocations: 69.7 MB / 0.7057 GB, free: 10.82 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 7.935e-05/1.226, allocations: 8 kB / 0.7057 GB, free: 10.81 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01171/1.238, allocations: 1.668 MB / 0.7074 GB, free: 9.141 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005455/1.243, allocations: 1.65 MB / 0.709 GB, free: 7.426 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008486/1.244, allocations: 0.6242 MB / 0.7096 GB, free: 6.699 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009959/1.245, allocations: 123.9 kB / 0.7097 GB, free: 6.578 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005885/1.251, allocations: 2.23 MB / 0.7119 GB, free: 4.336 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005253/1.256, allocations: 2.272 MB / 0.7141 GB, free: 1.988 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.868e-05/1.256, allocations: 3.906 kB / 0.7141 GB, free: 1.984 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002345/1.256, allocations: 0 / 0.7141 GB, free: 1.984 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.961e-05/1.256, allocations: 52 kB / 0.7142 GB, free: 1.934 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01954/1.276, allocations: 9.89 MB / 0.7238 GB, free: 7.68 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002842/1.279, allocations: 1.564 MB / 0.7253 GB, free: 6.09 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002213/1.281, allocations: 1.462 MB / 0.7268 GB, free: 4.621 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002734/1.281, allocations: 50.02 kB / 0.7268 GB, free: 4.574 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.496e-05/1.281, allocations: 56.56 kB / 0.7269 GB, free: 4.508 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=242): time 4.138e-06/1.281, allocations: 4 kB / 0.7269 GB, free: 4.504 MB / 0.5261 GB Notification: Performance of matching and sorting (n=242): time 0.04086/1.322, allocations: 12.87 MB / 0.7394 GB, free: 7.602 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001088/1.322, allocations: 235.6 kB / 0.7397 GB, free: 7.324 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003094/1.326, allocations: 1.688 MB / 0.7413 GB, free: 5.629 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0006767/1.326, allocations: 25.7 kB / 0.7413 GB, free: 5.598 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005723/1.327, allocations: 0.6996 MB / 0.742 GB, free: 4.887 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.001712/1.329, allocations: 0.8081 MB / 0.7428 GB, free: 4.066 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001882/1.329, allocations: 4 kB / 0.7428 GB, free: 4.062 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001667/1.329, allocations: 386.6 kB / 0.7432 GB, free: 3.68 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002159/1.331, allocations: 1.192 MB / 0.7443 GB, free: 2.484 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002272/1.333, allocations: 1.49 MB / 0.7458 GB, free: 0.8945 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002291/1.336, allocations: 1.318 MB / 0.7471 GB, free: 15.54 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.003e-06/1.336, allocations: 3.938 kB / 0.7471 GB, free: 15.54 MB / 0.5573 GB Notification: Performance of matching and sorting (n=298) (initialization): time 0.03948/1.375, allocations: 12.94 MB / 0.7597 GB, free: 2.543 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.1916/1.567, allocations: 2.758 MB / 0.7624 GB, free: 178.2 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.129e-05/1.567, allocations: 9.125 kB / 0.7624 GB, free: 178.2 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01534/1.582, allocations: 5.046 MB / 0.7674 GB, free: 178.2 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002088/1.584, allocations: 382.5 kB / 0.7677 GB, free: 178.2 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03572/1.62, allocations: 15.18 MB / 0.7825 GB, free: 176.8 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004294/1.624, allocations: 0.4997 MB / 0.783 GB, free: 176.8 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004842/1.625, allocations: 84.12 kB / 0.7831 GB, free: 176.8 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.188e-05/1.625, allocations: 2.969 kB / 0.7831 GB, free: 176.8 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03713/1.662, allocations: 12.6 MB / 0.7954 GB, free: 176.6 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-05/1.662, allocations: 6.969 kB / 0.7954 GB, free: 176.6 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01604/1.678, allocations: 5.05 MB / 0.8004 GB, free: 176.3 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002293/1.681, allocations: 368.7 kB / 0.8007 GB, free: 176.3 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03935/1.72, allocations: 15.16 MB / 0.8155 GB, free: 174.4 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00483/1.725, allocations: 483.6 kB / 0.816 GB, free: 174.3 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009004/1.726, allocations: 83.98 kB / 0.8161 GB, free: 174.3 MB / 0.5573 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.001275/1.727, allocations: 213.8 kB / 0.8163 GB, free: 174.2 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001688/1.729, allocations: 297.6 kB / 0.8165 GB, free: 174 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04059/1.769, allocations: 13.13 MB / 0.8294 GB, free: 172.1 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.099e-05/1.769, allocations: 23.78 kB / 0.8294 GB, free: 172.1 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.376e-05/1.769, allocations: 22.69 kB / 0.8294 GB, free: 172.1 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.405e-05/1.769, allocations: 14.83 kB / 0.8294 GB, free: 172.1 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04457/1.814, allocations: 16.63 MB / 0.8457 GB, free: 166.1 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.493e-05/1.814, allocations: 0 / 0.8457 GB, free: 166.1 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001956/1.816, allocations: 275.5 kB / 0.8459 GB, free: 165.8 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01508/1.831, allocations: 4.993 MB / 0.8508 GB, free: 161.9 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009102/1.832, allocations: 15.23 kB / 0.8508 GB, free: 161.9 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03321/1.865, allocations: 13.7 MB / 0.8642 GB, free: 149.7 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.288e-06/1.865, allocations: 6.719 kB / 0.8642 GB, free: 149.7 MB / 0.5573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.04081/1.906, allocations: 15.12 MB / 0.879 GB, free: 137.2 MB / 0.5573 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.04375/1.95, allocations: 17.58 MB / 0.8961 GB, free: 122.2 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009249/1.951, allocations: 405.8 kB / 0.8965 GB, free: 121.9 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000586/1.952, allocations: 8.562 kB / 0.8965 GB, free: 121.9 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003192/1.955, allocations: 388.4 kB / 0.8969 GB, free: 121.6 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009481/1.956, allocations: 323.9 kB / 0.8972 GB, free: 121.4 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002315/1.956, allocations: 59.42 kB / 0.8973 GB, free: 121.4 MB / 0.5573 GB Notification: Performance of sort global known variables: time 0.001765/1.958, allocations: 1.268 MB / 0.8985 GB, free: 120.2 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.006407/1.964, allocations: 1.592 MB / 0.9 GB, free: 118.7 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.0006574/1.965, allocations: 157.7 kB / 0.9002 GB, free: 118.6 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.02621/1.991, allocations: 9.536 MB / 0.9095 GB, free: 110 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 8.516e-06/1.991, allocations: 0 / 0.9095 GB, free: 110 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.01179/2.003, allocations: 3.944 MB / 0.9134 GB, free: 106.5 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001995/2.005, allocations: 195.3 kB / 0.9135 GB, free: 106.3 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01129/2.016, allocations: 4.245 MB / 0.9177 GB, free: 102.5 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001614/2.018, allocations: 1.982 MB / 0.9196 GB, free: 100.9 MB / 0.5573 GB Notification: Performance of SimCode: time 1.984e-06/2.018, allocations: 0 / 0.9196 GB, free: 100.9 MB / 0.5573 GB (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRI.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRI.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRI.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRI.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_OpenIPSL_OpenIPSL_Examples_PSATSystems_ThreeArea_FourthOrder_AVRI_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_OpenIPSL_Examples_PSATSystems_ThreeArea_FourthOrder_AVRI.fmu > OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRI.pipe 2>&1)