Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII.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.FourthOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoArea_FourthOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoArea_FourthOrder_AVRII",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.003739/0.003739, allocations: 181.4 kB / 7.459 MB, free: 2.496 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.265/1.265, allocations: 221.4 MB / 229.3 MB, free: 3.133 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.000869/0.0008688, allocations: 96.67 kB / 280.1 MB, free: 1.309 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.4668/0.4668, allocations: 78.91 MB / 409.8 MB, free: 14.96 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1593/0.6261, allocations: 75.64 MB / 485.5 MB, free: 3.562 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3396/0.9657, allocations: 69.5 MB / 0.542 GB, free: 20.81 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.127/1.093, allocations: 102.2 MB / 0.6417 GB, free: 1.746 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002597/1.093, allocations: 79.94 kB / 0.6418 GB, free: 1.668 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: 893 * Number of variables: 893 Notification: Performance of Generate backend data structure: time 0.5191/1.612, allocations: 106.9 MB / 0.7462 GB, free: 61.39 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.836e-05/1.612, allocations: 16 kB / 0.7462 GB, free: 61.38 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01877/1.631, allocations: 2.927 MB / 0.749 GB, free: 58.44 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006867/1.638, allocations: 2.286 MB / 0.7513 GB, free: 56.08 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001017/1.639, allocations: 0.8792 MB / 0.7521 GB, free: 55.06 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001702/1.641, allocations: 199.9 kB / 0.7523 GB, free: 54.87 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009706/1.65, allocations: 3.439 MB / 0.7557 GB, free: 51.42 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01025/1.661, allocations: 3.586 MB / 0.7592 GB, free: 47.81 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.928e-05/1.661, allocations: 7.938 kB / 0.7592 GB, free: 47.8 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007924/1.662, allocations: 0 / 0.7592 GB, free: 47.8 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.322e-05/1.662, allocations: 87.91 kB / 0.7593 GB, free: 47.71 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03913/1.701, allocations: 18.56 MB / 0.7774 GB, free: 28.12 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004416/1.705, allocations: 2.259 MB / 0.7796 GB, free: 25.85 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004014/1.709, allocations: 2.108 MB / 0.7817 GB, free: 23.73 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007267/1.71, allocations: 74.89 kB / 0.7817 GB, free: 23.66 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005119/1.715, allocations: 2.465 MB / 0.7841 GB, free: 21.15 MB / 490.7 MB Notification: Performance of pre-optimization done (n=383): time 7.514e-06/1.715, allocations: 0 / 0.7841 GB, free: 21.15 MB / 490.7 MB Notification: Performance of matching and sorting (n=383): time 0.05607/1.771, allocations: 18.37 MB / 0.8021 GB, free: 2.727 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.853e-05/1.771, allocations: 145.8 kB / 0.8022 GB, free: 2.559 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004734/1.776, allocations: 2.432 MB / 0.8046 GB, free: 116 kB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001212/1.777, allocations: 29.69 kB / 0.8046 GB, free: 80 kB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001111/1.779, allocations: 1.178 MB / 0.8058 GB, free: 14.88 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.00346/1.782, allocations: 1.254 MB / 0.807 GB, free: 13.61 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007807/1.783, allocations: 0 / 0.807 GB, free: 13.61 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.000338/1.783, allocations: 445.8 kB / 0.8074 GB, free: 13.16 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003665/1.787, allocations: 1.777 MB / 0.8091 GB, free: 11.39 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003836/1.791, allocations: 2.329 MB / 0.8114 GB, free: 8.859 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0035/1.794, allocations: 1.96 MB / 0.8133 GB, free: 6.887 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.326e-05/1.794, allocations: 4 kB / 0.8133 GB, free: 6.883 MB / 0.4948 GB Notification: Performance of matching and sorting (n=468) (initialization): time 0.05759/1.852, allocations: 18.42 MB / 0.8313 GB, free: 4.422 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 2.304e-05/1.852, allocations: 8 kB / 0.8313 GB, free: 4.414 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.187e-05/1.852, allocations: 16 kB / 0.8313 GB, free: 4.398 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02632/1.878, allocations: 7.188 MB / 0.8384 GB, free: 13.2 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003386/1.882, allocations: 0.5616 MB / 0.8389 GB, free: 12.64 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05963/1.941, allocations: 22.26 MB / 0.8607 GB, free: 6.227 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006595/1.948, allocations: 0.6918 MB / 0.8613 GB, free: 5.531 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007358/1.949, allocations: 128 kB / 0.8614 GB, free: 5.406 MB / 0.5417 GB Warning: Assuming fixed start value for the following 5 variables: order4.w:VARIABLE(start = 1.0 ) "Rotor speed [pu]" type: Real order3.w:VARIABLE(start = 1.0 ) "Rotor speed [pu]" type: Real aVRTypeII.firstOrder2.y:VARIABLE(start = aVRTypeII.firstOrder2.y_start ) "Connector of Real output signal" 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 Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 65 * Number of states: 0 () * Number of discrete variables: 2 ($whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (331): * Single equations (assignments): 328 * 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 {93 45} Notification: Performance of prepare postOptimizeDAE: time 0.000877/1.95, allocations: 210.8 kB / 0.8616 GB, free: 5.188 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001043/1.951, allocations: 454.3 kB / 0.8621 GB, free: 4.738 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05713/2.008, allocations: 18.8 MB / 0.8804 GB, free: 1.883 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.66e-05/2.008, allocations: 44 kB / 0.8805 GB, free: 1.84 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.263e-05/2.008, allocations: 32 kB / 0.8805 GB, free: 1.809 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.702e-05/2.008, allocations: 19.92 kB / 0.8805 GB, free: 1.789 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3045/2.313, allocations: 23.4 MB / 0.9034 GB, free: 169.8 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.538e-05/2.313, allocations: 3.969 kB / 0.9034 GB, free: 169.8 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002729/2.315, allocations: 389 kB / 0.9038 GB, free: 169.8 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02363/2.339, allocations: 7.251 MB / 0.9108 GB, free: 169.8 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001115/2.34, allocations: 22.81 kB / 0.9109 GB, free: 169.8 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05419/2.394, allocations: 21.96 MB / 0.9323 GB, free: 167 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.3e-06/2.394, allocations: 0 / 0.9323 GB, free: 167 MB / 0.573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.06087/2.455, allocations: 21.73 MB / 0.9535 GB, free: 166.4 MB / 0.573 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.06994/2.525, allocations: 25.23 MB / 0.9782 GB, free: 160.7 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001639/2.527, allocations: 0.5494 MB / 0.9787 GB, free: 160.4 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001458/2.528, allocations: 6.625 kB / 0.9787 GB, free: 160.4 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004908/2.533, allocations: 0.4932 MB / 0.9792 GB, free: 160.3 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00134/2.535, allocations: 457.5 kB / 0.9796 GB, free: 160.2 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003484/2.535, allocations: 92.39 kB / 0.9797 GB, free: 160.2 MB / 0.573 GB Notification: Performance of sort global known variables: time 0.002485/2.538, allocations: 1.802 MB / 0.9815 GB, free: 159.5 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.005435/2.543, allocations: 1.572 MB / 0.983 GB, free: 159.4 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 11 (order3.delta,order3.w,order3.e1q,order4.delta,order4.w,order4.e1q,order4.e1d,aVRTypeII.ExcitationSystem.x_scaled[1],aVRTypeII.derivativeBlock.x,aVRTypeII.firstOrder2.y,aVRTypeII.simpleLagLim.state) * Number of discrete variables: 2 ($whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (247): * Single equations (assignments): 244 * 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: 2 * 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: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005483/2.544, allocations: 157.8 kB / 0.9832 GB, free: 159.3 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.02156/2.565, allocations: 7.897 MB / 0.9909 GB, free: 154.2 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 6.672e-06/2.565, allocations: 5.5 kB / 0.9909 GB, free: 154.2 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.01738/2.583, allocations: 5.915 MB / 0.9966 GB, free: 149 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003269/2.586, allocations: 247.5 kB / 0.9969 GB, free: 148.8 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01718/2.603, allocations: 5.934 MB / 1.003 GB, free: 143.4 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00281/2.606, allocations: 2.67 MB / 1.005 GB, free: 141.4 MB / 0.573 GB Notification: Performance of SimCode: time 1.242e-06/2.606, allocations: 0 / 1.005 GB, free: 141.4 MB / 0.573 GB (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoArea_FourthOrder_AVRII_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoArea_FourthOrder_AVRII.fmu > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII.pipe 2>&1)