Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_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.ThirdOrder_AVRI,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_ThreeArea_ThirdOrder_AVRI",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRI,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_ThreeArea_ThirdOrder_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.002276/0.002277, allocations: 182.8 kB / 7.464 MB, free: 2.508 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.202/1.202, allocations: 221.4 MB / 229.3 MB, free: 3.008 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.000968/0.0009681, allocations: 104.4 kB / 280.1 MB, free: 1.258 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.4718/0.4718, allocations: 78.92 MB / 409.8 MB, free: 15.04 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1438/0.6156, allocations: 75.65 MB / 485.5 MB, free: 3.629 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3512/0.9668, allocations: 69.49 MB / 0.5419 GB, free: 20.72 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1279/1.095, allocations: 98.95 MB / 0.6386 GB, free: 5.004 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002788/1.095, allocations: 83.88 kB / 0.6387 GB, free: 4.922 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: 516 * Number of variables: 516 Notification: Performance of Generate backend data structure: time 0.4321/1.527, allocations: 70.4 MB / 0.7074 GB, free: 95.48 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.247e-05/1.527, allocations: 9.188 kB / 0.7074 GB, free: 95.48 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01205/1.539, allocations: 1.663 MB / 0.709 GB, free: 94.7 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006717/1.546, allocations: 1.643 MB / 0.7106 GB, free: 93.53 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009035/1.547, allocations: 0.6273 MB / 0.7113 GB, free: 92.98 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001223/1.548, allocations: 121.3 kB / 0.7114 GB, free: 92.98 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005849/1.554, allocations: 2.226 MB / 0.7135 GB, free: 91.96 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004326/1.559, allocations: 2.267 MB / 0.7158 GB, free: 90.68 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.971e-05/1.559, allocations: 1.25 kB / 0.7158 GB, free: 90.68 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002295/1.559, allocations: 3.938 kB / 0.7158 GB, free: 90.67 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.076e-05/1.559, allocations: 49.44 kB / 0.7158 GB, free: 90.67 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0203/1.579, allocations: 9.892 MB / 0.7255 GB, free: 81.55 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002547/1.582, allocations: 1.571 MB / 0.727 GB, free: 79.95 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001955/1.584, allocations: 1.454 MB / 0.7284 GB, free: 78.49 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002687/1.584, allocations: 45.62 kB / 0.7285 GB, free: 78.45 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.029e-05/1.584, allocations: 67.56 kB / 0.7285 GB, free: 78.38 MB / 490.7 MB Notification: Performance of pre-optimization done (n=241): time 5.139e-06/1.584, allocations: 0 / 0.7285 GB, free: 78.38 MB / 490.7 MB Notification: Performance of matching and sorting (n=241): time 0.03626/1.62, allocations: 12.87 MB / 0.7411 GB, free: 65.52 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.145e-05/1.621, allocations: 235.6 kB / 0.7413 GB, free: 65.24 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002572/1.623, allocations: 1.685 MB / 0.743 GB, free: 63.55 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006603/1.624, allocations: 33.69 kB / 0.743 GB, free: 63.51 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003272/1.624, allocations: 0.6996 MB / 0.7437 GB, free: 62.8 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001216/1.625, allocations: 0.8082 MB / 0.7445 GB, free: 61.98 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001863/1.626, allocations: 0 / 0.7445 GB, free: 61.98 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001042/1.626, allocations: 390.6 kB / 0.7448 GB, free: 61.59 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001929/1.628, allocations: 1.184 MB / 0.746 GB, free: 60.41 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002122/1.63, allocations: 1.491 MB / 0.7475 GB, free: 58.81 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002037/1.632, allocations: 1.32 MB / 0.7488 GB, free: 57.46 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.164e-06/1.632, allocations: 0 / 0.7488 GB, free: 57.46 MB / 490.7 MB Notification: Performance of matching and sorting (n=296) (initialization): time 0.03707/1.669, allocations: 12.93 MB / 0.7614 GB, free: 44.51 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007612/1.67, allocations: 2.758 MB / 0.7641 GB, free: 41.55 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.44e-05/1.67, allocations: 12 kB / 0.7641 GB, free: 41.54 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01587/1.686, allocations: 5.086 MB / 0.769 GB, free: 36.45 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002328/1.688, allocations: 379.4 kB / 0.7694 GB, free: 36.08 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03598/1.724, allocations: 15.13 MB / 0.7842 GB, free: 20.83 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004174/1.728, allocations: 0.4939 MB / 0.7847 GB, free: 20.33 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004808/1.729, allocations: 83.98 kB / 0.7847 GB, free: 20.25 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.385e-05/1.729, allocations: 7.938 kB / 0.7848 GB, free: 20.24 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03568/1.764, allocations: 12.6 MB / 0.7971 GB, free: 7.629 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.564e-05/1.765, allocations: 8 kB / 0.7971 GB, free: 7.621 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01595/1.78, allocations: 5.083 MB / 0.802 GB, free: 2.535 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002219/1.783, allocations: 371.4 kB / 0.8024 GB, free: 2.172 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0401/1.823, allocations: 15.13 MB / 0.8172 GB, free: 2.914 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004498/1.827, allocations: 489.9 kB / 0.8176 GB, free: 2.434 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005361/1.828, allocations: 75.98 kB / 0.8177 GB, free: 2.359 MB / 0.4948 GB Warning: Assuming fixed start value for the following 6 variables: order3_1.e1q:VARIABLE(start = order3_1.e1q0 unit = "1" ) "q-axis transient voltage" type: Real order3_1.w:VARIABLE(start = 1.0 ) "Rotor speed [pu]" type: Real order3_1.delta:VARIABLE(start = order3_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 (208): * Single equations (assignments): 203 * 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 {64 25} Notification: Performance of prepare postOptimizeDAE: time 0.0009622/1.829, allocations: 217 kB / 0.8179 GB, free: 2.129 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001075/1.83, allocations: 292.3 kB / 0.8182 GB, free: 1.84 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03993/1.87, allocations: 13.12 MB / 0.831 GB, free: 4.719 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.311e-05/1.87, allocations: 27.91 kB / 0.831 GB, free: 4.691 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.25e-05/1.87, allocations: 20 kB / 0.831 GB, free: 4.672 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.249e-05/1.87, allocations: 11.95 kB / 0.8311 GB, free: 4.66 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04691/1.917, allocations: 16.63 MB / 0.8473 GB, free: 4.008 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.27e-05/1.917, allocations: 0 / 0.8473 GB, free: 4.008 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002075/1.919, allocations: 275.7 kB / 0.8476 GB, free: 3.738 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01598/1.935, allocations: 5.003 MB / 0.8524 GB, free: 14.72 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008825/1.936, allocations: 15.98 kB / 0.8525 GB, free: 14.71 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03506/1.971, allocations: 13.7 MB / 0.8658 GB, free: 0.8867 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.482e-06/1.971, allocations: 0 / 0.8658 GB, free: 0.8867 MB / 0.5417 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.04461/2.016, allocations: 15.12 MB / 0.8806 GB, free: 1.75 MB / 0.5573 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0505/2.067, allocations: 17.56 MB / 0.8977 GB, free: 172 kB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.227/2.294, allocations: 410.1 kB / 0.8981 GB, free: 209.5 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001435/2.295, allocations: 2.531 kB / 0.8981 GB, free: 209.5 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003983/2.299, allocations: 389 kB / 0.8985 GB, free: 209.5 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001297/2.3, allocations: 323 kB / 0.8988 GB, free: 209.5 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003528/2.301, allocations: 59.77 kB / 0.8989 GB, free: 209.5 MB / 0.573 GB Notification: Performance of sort global known variables: time 0.002307/2.303, allocations: 1.267 MB / 0.9001 GB, free: 209.3 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.007844/2.311, allocations: 1.595 MB / 0.9017 GB, free: 209.3 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 16 (order3_2.delta,order3_2.w,order3_2.e1q,order2.delta,order2.w,order3_1.delta,order3_1.w,order3_1.e1q,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 (162): * Single equations (assignments): 159 * 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.0007266/2.312, allocations: 158.6 kB / 0.9018 GB, free: 209.2 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.02788/2.34, allocations: 9.567 MB / 0.9112 GB, free: 208.5 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 8.426e-06/2.34, allocations: 3.969 kB / 0.9112 GB, free: 208.5 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.01232/2.352, allocations: 3.942 MB / 0.915 GB, free: 208.3 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00261/2.355, allocations: 193.1 kB / 0.9152 GB, free: 208.2 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01347/2.368, allocations: 4.201 MB / 0.9193 GB, free: 207.2 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001853/2.37, allocations: 1.978 MB / 0.9212 GB, free: 206.4 MB / 0.573 GB Notification: Performance of SimCode: time 6.31e-07/2.37, allocations: 0 / 0.9212 GB, free: 206.4 MB / 0.573 GB (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRI.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRI.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRI.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRI.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_ThreeArea_ThirdOrder_AVRI_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_ThreeArea_ThirdOrder_AVRI.fmu > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRI.pipe 2>&1)