Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_release_OpenIPSL.Examples.PSATSystems.TwoAreaOld.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.TwoAreaOld.FourthOrder_AVRI,fileNamePrefix="OpenIPSL_release_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FourthOrder_AVRI",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRI,fileNamePrefix="OpenIPSL_release_OpenIPSL_Examples_PSATSystems_TwoAreaOld_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.002051/0.002052, allocations: 179.5 kB / 7.454 MB, free: 2.523 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.07/1.07, allocations: 221.4 MB / 229.3 MB, free: 3.191 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.000833/0.000833, allocations: 94.95 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.3632/0.3632, allocations: 78.11 MB / 409 MB, free: 15.68 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1146/0.4778, allocations: 75.49 MB / 484.5 MB, free: 4.469 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2231/0.7009, allocations: 69.34 MB / 0.5408 GB, free: 21.43 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09684/0.7978, allocations: 97.65 MB / 0.6362 GB, free: 7.254 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001961/0.798, allocations: 71.97 kB / 0.6363 GB, free: 7.184 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: 187 * Number of variables: 187 Notification: Performance of Generate backend data structure: time 0.092/0.8901, allocations: 36.15 MB / 0.6716 GB, free: 2.715 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.447e-05/0.8901, allocations: 12 kB / 0.6716 GB, free: 2.703 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003437/0.8935, allocations: 0.5797 MB / 0.6721 GB, free: 2.121 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001411/0.895, allocations: 0.7955 MB / 0.6729 GB, free: 1.27 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002197/0.8952, allocations: 202.5 kB / 0.6731 GB, free: 1.043 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001456/0.8954, allocations: 48 kB / 0.6732 GB, free: 0.9961 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001391/0.8968, allocations: 0.8045 MB / 0.674 GB, free: 196 kB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.129/1.026, allocations: 0.8299 MB / 0.6748 GB, free: 141.6 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.671e-05/1.026, allocations: 0 / 0.6748 GB, free: 141.6 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.137e-05/1.026, allocations: 2.031 kB / 0.6748 GB, free: 141.6 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.289e-05/1.026, allocations: 19.38 kB / 0.6748 GB, free: 141.6 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005868/1.032, allocations: 3.794 MB / 0.6785 GB, free: 140.6 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000949/1.033, allocations: 0.6071 MB / 0.6791 GB, free: 140.6 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000691/1.033, allocations: 0.5053 MB / 0.6796 GB, free: 140.5 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001116/1.034, allocations: 15.97 kB / 0.6796 GB, free: 140.5 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.25e-05/1.034, allocations: 45.31 kB / 0.6796 GB, free: 140.5 MB / 490.7 MB Notification: Performance of pre-optimization done (n=93): time 2.786e-06/1.034, allocations: 0 / 0.6796 GB, free: 140.5 MB / 490.7 MB Notification: Performance of matching and sorting (n=93): time 0.01106/1.045, allocations: 4.043 MB / 0.6836 GB, free: 140.4 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.346e-05/1.045, allocations: 140.7 kB / 0.6837 GB, free: 140.2 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009307/1.046, allocations: 0.8095 MB / 0.6845 GB, free: 140.1 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 9.255e-05/1.046, allocations: 25.7 kB / 0.6845 GB, free: 140 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001199/1.046, allocations: 319.3 kB / 0.6848 GB, free: 139.9 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002805/1.046, allocations: 324.3 kB / 0.6851 GB, free: 139.7 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.707e-05/1.046, allocations: 3.75 kB / 0.6851 GB, free: 139.7 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 6.399e-05/1.046, allocations: 348.4 kB / 0.6855 GB, free: 139.4 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006141/1.047, allocations: 426.5 kB / 0.6859 GB, free: 139.4 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006549/1.048, allocations: 0.5467 MB / 0.6864 GB, free: 139.3 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006746/1.048, allocations: 485.5 kB / 0.6869 GB, free: 139.3 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.29e-06/1.048, allocations: 3.812 kB / 0.6869 GB, free: 139.3 MB / 490.7 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.01101/1.059, allocations: 4.174 MB / 0.691 GB, free: 138.9 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001523/1.059, allocations: 1.147 MB / 0.6921 GB, free: 137.7 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.566e-06/1.059, allocations: 3.375 kB / 0.6921 GB, free: 137.7 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004639/1.064, allocations: 1.504 MB / 0.6936 GB, free: 137.6 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007984/1.065, allocations: 163.6 kB / 0.6937 GB, free: 137.6 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01179/1.077, allocations: 5.84 MB / 0.6994 GB, free: 136.1 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001465/1.078, allocations: 175.5 kB / 0.6996 GB, free: 136.1 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000149/1.078, allocations: 35.61 kB / 0.6996 GB, free: 136.1 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.963e-06/1.078, allocations: 7.812 kB / 0.6996 GB, free: 136.1 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01168/1.09, allocations: 4.008 MB / 0.7035 GB, free: 135.8 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.037e-05/1.09, allocations: 2.656 kB / 0.7035 GB, free: 135.8 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004875/1.095, allocations: 1.506 MB / 0.705 GB, free: 135.7 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007885/1.096, allocations: 164.3 kB / 0.7052 GB, free: 135.7 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01149/1.107, allocations: 5.827 MB / 0.7109 GB, free: 134.2 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001319/1.109, allocations: 168.4 kB / 0.711 GB, free: 134.2 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001009/1.109, allocations: 35.91 kB / 0.7111 GB, free: 134.2 MB / 490.7 MB Warning: Assuming fixed start value for the following 4 variables: order4.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: 13 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (88): * Single equations (assignments): 85 * 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 {18 14} Notification: Performance of prepare postOptimizeDAE: time 0.0002886/1.109, allocations: 163.6 kB / 0.7112 GB, free: 134.1 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002656/1.109, allocations: 125.5 kB / 0.7113 GB, free: 134 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01086/1.12, allocations: 4.126 MB / 0.7154 GB, free: 133.2 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.267e-06/1.12, allocations: 11.5 kB / 0.7154 GB, free: 133.2 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.065e-05/1.12, allocations: 13.59 kB / 0.7154 GB, free: 133.2 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.039e-05/1.12, allocations: 3.141 kB / 0.7154 GB, free: 133.2 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0125/1.133, allocations: 5.608 MB / 0.7209 GB, free: 131.4 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.19e-06/1.133, allocations: 10.38 kB / 0.7209 GB, free: 131.4 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006417/1.133, allocations: 111.2 kB / 0.721 GB, free: 131.4 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004471/1.138, allocations: 1.444 MB / 0.7224 GB, free: 131.1 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001018/1.138, allocations: 12.62 kB / 0.7224 GB, free: 131.1 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01044/1.148, allocations: 5.225 MB / 0.7275 GB, free: 128.3 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.396e-06/1.148, allocations: 0.7969 kB / 0.7275 GB, free: 128.3 MB / 490.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01264/1.161, allocations: 4.875 MB / 0.7323 GB, free: 126.9 MB / 490.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01283/1.174, allocations: 5.961 MB / 0.7381 GB, free: 122.8 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003289/1.174, allocations: 221.3 kB / 0.7383 GB, free: 122.6 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002302/1.175, allocations: 4 kB / 0.7383 GB, free: 122.6 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001159/1.176, allocations: 137.2 kB / 0.7384 GB, free: 122.5 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002432/1.176, allocations: 108.5 kB / 0.7385 GB, free: 122.5 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.726e-05/1.176, allocations: 28 kB / 0.7386 GB, free: 122.4 MB / 490.7 MB Notification: Performance of sort global known variables: time 0.0006873/1.177, allocations: 0.6113 MB / 0.7392 GB, free: 121.9 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.002613/1.179, allocations: 0.6095 MB / 0.7398 GB, free: 121.2 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 10 (order2.delta,order2.w,order4.delta,order4.w,order4.e1q,order4.e1d,aVRTypeIchange1_1.firstOrder.y,aVRTypeIchange1_1.firstOrder2.y,aVRTypeIchange1_1.transferFunction.x_scaled[1],aVRTypeIchange1_1.transferFunction.x_scaled[2]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (67): * Single equations (assignments): 65 * 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 {(19,24.4%) 13} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002244/1.18, allocations: 140.8 kB / 0.7399 GB, free: 121.1 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.007559/1.187, allocations: 3.355 MB / 0.7432 GB, free: 118.1 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/1.187, allocations: 192 / 0.7432 GB, free: 118.1 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003402/1.191, allocations: 1.363 MB / 0.7445 GB, free: 116.8 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007761/1.191, allocations: 94.44 kB / 0.7446 GB, free: 116.8 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00409/1.196, allocations: 1.804 MB / 0.7463 GB, free: 115.1 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007089/1.196, allocations: 1.216 MB / 0.7475 GB, free: 114.1 MB / 490.7 MB Notification: Performance of SimCode: time 4.71e-07/1.196, allocations: 0 / 0.7475 GB, free: 114.1 MB / 490.7 MB (rm -f OpenIPSL_release_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRI.pipe ; mkfifo OpenIPSL_release_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRI.pipe ; head -c 1048576 < OpenIPSL_release_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRI.pipe >> ../files/OpenIPSL_release_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRI.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_OpenIPSL_release_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FourthOrder_AVRI_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_release_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FourthOrder_AVRI.fmu > OpenIPSL_release_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRI.pipe 2>&1)