Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_release_OpenIPSL.Examples.PSATSystems.TwoArea.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.TwoArea.ThirdOrder_AVRI,fileNamePrefix="OpenIPSL_release_OpenIPSL_Examples_PSATSystems_TwoArea_ThirdOrder_AVRI",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoArea.ThirdOrder_AVRI,fileNamePrefix="OpenIPSL_release_OpenIPSL_Examples_PSATSystems_TwoArea_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.001086/0.001086, allocations: 178.2 kB / 7.456 MB, free: 1.535 MB / 6.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.047/1.047, allocations: 221.4 MB / 229.3 MB, free: 8.414 MB / 194.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000848/0.0008479, allocations: 90.05 kB / 280.1 MB, free: 7.852 MB / 226.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.3615/0.3615, allocations: 78.1 MB / 409 MB, free: 5.496 MB / 290.8 MB Notification: Performance of FrontEnd - loaded program: time 0.1226/0.4841, allocations: 75.49 MB / 484.5 MB, free: 10.33 MB / 370.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2308/0.7149, allocations: 69.33 MB / 0.5408 GB, free: 15.78 MB / 370.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1024/0.8174, allocations: 100.3 MB / 0.6387 GB, free: 11.42 MB / 466.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001932/0.8176, allocations: 75.97 kB / 0.6388 GB, free: 11.34 MB / 466.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 889 * Number of variables: 889 Notification: Performance of Generate backend data structure: time 0.411/1.229, allocations: 103.2 MB / 0.7396 GB, free: 52.35 MB / 482.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.42e-05/1.229, allocations: 8 kB / 0.7396 GB, free: 52.34 MB / 482.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01689/1.246, allocations: 2.931 MB / 0.7424 GB, free: 49.4 MB / 482.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005102/1.251, allocations: 2.267 MB / 0.7446 GB, free: 47.05 MB / 482.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007201/1.251, allocations: 0.8501 MB / 0.7455 GB, free: 46.07 MB / 482.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001092/1.253, allocations: 203.9 kB / 0.7457 GB, free: 45.88 MB / 482.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00684/1.259, allocations: 3.439 MB / 0.749 GB, free: 42.43 MB / 482.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007692/1.267, allocations: 3.583 MB / 0.7525 GB, free: 38.82 MB / 482.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.811e-05/1.267, allocations: 4 kB / 0.7525 GB, free: 38.82 MB / 482.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006815/1.268, allocations: 0 / 0.7525 GB, free: 38.82 MB / 482.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.075e-05/1.268, allocations: 88 kB / 0.7526 GB, free: 38.73 MB / 482.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02927/1.297, allocations: 18.57 MB / 0.7707 GB, free: 19.12 MB / 482.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00286/1.3, allocations: 2.243 MB / 0.7729 GB, free: 16.86 MB / 482.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002466/1.303, allocations: 2.108 MB / 0.775 GB, free: 14.74 MB / 482.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003551/1.303, allocations: 66.91 kB / 0.7751 GB, free: 14.67 MB / 482.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.829e-05/1.303, allocations: 69.53 kB / 0.7751 GB, free: 14.59 MB / 482.8 MB Notification: Performance of pre-optimization done (n=379): time 5.47e-06/1.303, allocations: 4 kB / 0.7751 GB, free: 14.59 MB / 482.8 MB Notification: Performance of matching and sorting (n=379): time 0.04861/1.352, allocations: 18.24 MB / 0.7929 GB, free: 12.29 MB / 498.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.366e-05/1.352, allocations: 171.4 kB / 0.7931 GB, free: 12.09 MB / 498.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003646/1.355, allocations: 2.432 MB / 0.7955 GB, free: 9.648 MB / 498.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0007051/1.356, allocations: 25.7 kB / 0.7955 GB, free: 9.617 MB / 498.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006628/1.357, allocations: 1.186 MB / 0.7967 GB, free: 8.414 MB / 498.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002097/1.359, allocations: 1.235 MB / 0.7979 GB, free: 7.16 MB / 498.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002756/1.359, allocations: 0 / 0.7979 GB, free: 7.16 MB / 498.8 MB Notification: Performance of setup shared object (initialization): time 0.0001938/1.359, allocations: 441.6 kB / 0.7983 GB, free: 6.723 MB / 498.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002922/1.362, allocations: 1.757 MB / 0.8 GB, free: 4.965 MB / 498.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003102/1.365, allocations: 2.315 MB / 0.8023 GB, free: 2.449 MB / 498.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003094/1.369, allocations: 1.952 MB / 0.8042 GB, free: 496 kB / 498.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.146e-05/1.369, allocations: 4 kB / 0.8042 GB, free: 492 kB / 498.8 MB Notification: Performance of matching and sorting (n=457) (initialization): time 0.05154/1.42, allocations: 18.33 MB / 0.8221 GB, free: 14.11 MB / 0.5183 GB Notification: Performance of prepare postOptimizeDAE: time 0.001989/1.422, allocations: 6.602 MB / 0.8285 GB, free: 6.984 MB / 0.5183 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.793e-05/1.422, allocations: 20 kB / 0.8285 GB, free: 6.965 MB / 0.5183 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02335/1.446, allocations: 7.133 MB / 0.8355 GB, free: 15.82 MB / 0.5339 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002876/1.448, allocations: 0.5344 MB / 0.836 GB, free: 15.29 MB / 0.5339 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05346/1.502, allocations: 22.1 MB / 0.8576 GB, free: 9.035 MB / 0.5496 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005552/1.508, allocations: 0.6646 MB / 0.8583 GB, free: 8.367 MB / 0.5496 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004793/1.508, allocations: 135.9 kB / 0.8584 GB, free: 8.234 MB / 0.5496 GB Notification: Performance of prepare postOptimizeDAE: time 8.155e-06/1.508, allocations: 4 kB / 0.8584 GB, free: 8.23 MB / 0.5496 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.05074/1.559, allocations: 17.84 MB / 0.8758 GB, free: 6.355 MB / 0.5652 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.356e-05/1.559, allocations: 16 kB / 0.8758 GB, free: 6.34 MB / 0.5652 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.177/1.736, allocations: 7.137 MB / 0.8828 GB, free: 153 MB / 0.5652 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002741/1.739, allocations: 0.5341 MB / 0.8833 GB, free: 153 MB / 0.5652 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05032/1.789, allocations: 22.08 MB / 0.9049 GB, free: 151.6 MB / 0.5652 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005386/1.794, allocations: 0.6324 MB / 0.9055 GB, free: 151.5 MB / 0.5652 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000704/1.795, allocations: 138.4 kB / 0.9056 GB, free: 151.5 MB / 0.5652 GB Warning: Assuming fixed start value for the following 4 variables: order3_1.w:VARIABLE(start = 1.0 ) "Rotor speed [pu]" type: Real order3.w:VARIABLE(start = 1.0 ) "Rotor speed [pu]" type: Real order3_1.e1q:VARIABLE(start = order3_1.e1q0 unit = "1" ) "q-axis transient voltage" type: Real order3_1.delta:VARIABLE(start = order3_1.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 (321): * Single equations (assignments): 318 * 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.0009103/1.796, allocations: 200.9 kB / 0.9058 GB, free: 151.4 MB / 0.5652 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001059/1.797, allocations: 450.9 kB / 0.9062 GB, free: 151.1 MB / 0.5652 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04879/1.846, allocations: 18.65 MB / 0.9245 GB, free: 150.9 MB / 0.5652 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.489e-05/1.846, allocations: 38.91 kB / 0.9245 GB, free: 150.9 MB / 0.5652 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.31e-05/1.846, allocations: 33.06 kB / 0.9245 GB, free: 150.9 MB / 0.5652 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.208e-05/1.846, allocations: 19.03 kB / 0.9245 GB, free: 150.9 MB / 0.5652 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05779/1.904, allocations: 23.55 MB / 0.9475 GB, free: 150.1 MB / 0.5652 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.762e-05/1.904, allocations: 1.5 kB / 0.9475 GB, free: 150.1 MB / 0.5652 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00251/1.907, allocations: 402.6 kB / 0.9479 GB, free: 150.1 MB / 0.5652 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02304/1.93, allocations: 7.173 MB / 0.9549 GB, free: 149.6 MB / 0.5652 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008319/1.93, allocations: 20.77 kB / 0.955 GB, free: 149.6 MB / 0.5652 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0461/1.977, allocations: 20.15 MB / 0.9746 GB, free: 140.8 MB / 0.5652 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.639e-06/1.977, allocations: 2.156 kB / 0.9746 GB, free: 140.8 MB / 0.5652 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.05411/2.031, allocations: 21.58 MB / 0.9957 GB, free: 127.8 MB / 0.5652 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.05818/2.089, allocations: 25.06 MB / 1.02 GB, free: 106.4 MB / 0.5652 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001263/2.09, allocations: 0.5503 MB / 1.021 GB, free: 106 MB / 0.5652 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008027/2.091, allocations: 7.75 kB / 1.021 GB, free: 106 MB / 0.5652 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004024/2.095, allocations: 477.6 kB / 1.021 GB, free: 105.6 MB / 0.5652 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001055/2.096, allocations: 448.3 kB / 1.022 GB, free: 105.3 MB / 0.5652 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003166/2.096, allocations: 91.75 kB / 1.022 GB, free: 105.3 MB / 0.5652 GB Notification: Performance of sort global known variables: time 0.002027/2.098, allocations: 1.807 MB / 1.023 GB, free: 103.6 MB / 0.5652 GB Notification: Performance of remove unused functions: time 0.00639/2.105, allocations: 2.583 MB / 1.026 GB, free: 101.2 MB / 0.5652 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 10 (order3.delta,order3.w,order3.e1q,order3_1.delta,order3_1.w,order3_1.e1q,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 (249): * Single equations (assignments): 247 * 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.0004676/2.105, allocations: 151.8 kB / 1.026 GB, free: 101 MB / 0.5652 GB Notification: Performance of simCode: created initialization part: time 0.03444/2.14, allocations: 13.85 MB / 1.04 GB, free: 88.57 MB / 0.5652 GB Notification: Performance of simCode: created event and clocks part: time 5.971e-06/2.14, allocations: 7.844 kB / 1.04 GB, free: 88.57 MB / 0.5652 GB Notification: Performance of simCode: created simulation system equations: time 0.01541/2.155, allocations: 5.773 MB / 1.045 GB, free: 83.48 MB / 0.5652 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002278/2.158, allocations: 255.9 kB / 1.046 GB, free: 83.25 MB / 0.5652 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01494/2.173, allocations: 6.141 MB / 1.052 GB, free: 77.66 MB / 0.5652 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002154/2.175, allocations: 2.683 MB / 1.054 GB, free: 75.61 MB / 0.5652 GB Notification: Performance of SimCode: time 9.72e-07/2.175, allocations: 0 / 1.054 GB, free: 75.61 MB / 0.5652 GB (rm -f OpenIPSL_release_OpenIPSL.Examples.PSATSystems.TwoArea.ThirdOrder_AVRI.pipe ; mkfifo OpenIPSL_release_OpenIPSL.Examples.PSATSystems.TwoArea.ThirdOrder_AVRI.pipe ; head -c 1048576 < OpenIPSL_release_OpenIPSL.Examples.PSATSystems.TwoArea.ThirdOrder_AVRI.pipe >> ../files/OpenIPSL_release_OpenIPSL.Examples.PSATSystems.TwoArea.ThirdOrder_AVRI.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_OpenIPSL_release_OpenIPSL_Examples_PSATSystems_TwoArea_ThirdOrder_AVRI_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_release_OpenIPSL_Examples_PSATSystems_TwoArea_ThirdOrder_AVRI.fmu > OpenIPSL_release_OpenIPSL.Examples.PSATSystems.TwoArea.ThirdOrder_AVRI.pipe 2>&1)