Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRI.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo", uses=false) Using package OpenIPSL with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRI,fileNamePrefix="OpenIPSL_2_0_0_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FifthOrder_AVRI",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRI,fileNamePrefix="OpenIPSL_2_0_0_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FifthOrder_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 3.2.3+maint.om/package.mo): time 0.003817/0.003817, allocations: 183.7 kB / 7.459 MB, free: 2.512 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.483/1.483, allocations: 205.2 MB / 213.1 MB, free: 13.86 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008869/0.0008869, allocations: 93.56 kB / 261.1 MB, free: 13.54 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.07253/0.07253, allocations: 12.19 MB / 321.2 MB, free: 1.297 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo): time 0.3435/0.3435, allocations: 78.04 MB / 449.9 MB, free: 3.652 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.3076/0.6512, allocations: 76.09 MB / 0.5137 GB, free: 30.32 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1476/0.7988, allocations: 69.22 MB / 0.5813 GB, free: 9.18 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3919/1.191, allocations: 99.58 MB / 0.6785 GB, free: 9.496 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002782/1.191, allocations: 83.34 kB / 0.6786 GB, free: 9.48 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 188 * Number of variables: 188 Notification: Performance of Generate backend data structure: time 0.08852/1.28, allocations: 31.18 MB / 0.709 GB, free: 15.66 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.519e-05/1.28, allocations: 15.94 kB / 0.7091 GB, free: 15.64 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004206/1.284, allocations: 0.5738 MB / 0.7096 GB, free: 15.11 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002601/1.287, allocations: 0.8031 MB / 0.7104 GB, free: 14.44 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003309/1.287, allocations: 214.4 kB / 0.7106 GB, free: 14.2 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003471/1.287, allocations: 51.12 kB / 0.7107 GB, free: 14.15 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002007/1.289, allocations: 0.8087 MB / 0.7114 GB, free: 13.65 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00171/1.291, allocations: 0.8415 MB / 0.7123 GB, free: 13.06 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.564e-05/1.291, allocations: 0 / 0.7123 GB, free: 13.06 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.337e-05/1.291, allocations: 0 / 0.7123 GB, free: 13.06 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.357e-05/1.291, allocations: 20 kB / 0.7123 GB, free: 13.04 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008128/1.299, allocations: 3.875 MB / 0.7161 GB, free: 9.922 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001149/1.301, allocations: 0.5991 MB / 0.7167 GB, free: 9.562 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008636/1.301, allocations: 0.5245 MB / 0.7172 GB, free: 9.273 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001402/1.302, allocations: 16.77 kB / 0.7172 GB, free: 9.254 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.353e-05/1.302, allocations: 46.91 kB / 0.7172 GB, free: 9.207 MB / 458.7 MB Notification: Performance of pre-optimization done (n=94): time 5.911e-06/1.302, allocations: 3.984 kB / 0.7172 GB, free: 9.203 MB / 458.7 MB Notification: Performance of matching and sorting (n=94): time 0.01364/1.315, allocations: 4.072 MB / 0.7212 GB, free: 5.641 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.876e-05/1.315, allocations: 137.3 kB / 0.7213 GB, free: 5.477 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00155/1.317, allocations: 0.8487 MB / 0.7222 GB, free: 4.855 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002788/1.317, allocations: 29.7 kB / 0.7222 GB, free: 4.82 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002422/1.318, allocations: 320.5 kB / 0.7225 GB, free: 4.555 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004996/1.318, allocations: 326.2 kB / 0.7228 GB, free: 4.27 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.228e-05/1.318, allocations: 0 / 0.7228 GB, free: 4.27 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001773/1.318, allocations: 344.1 kB / 0.7231 GB, free: 3.941 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007791/1.319, allocations: 441.7 kB / 0.7236 GB, free: 3.707 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008106/1.32, allocations: 0.5571 MB / 0.7241 GB, free: 3.324 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008021/1.321, allocations: 0.4891 MB / 0.7246 GB, free: 3.043 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.599e-06/1.321, allocations: 0 / 0.7246 GB, free: 3.043 MB / 458.7 MB Notification: Performance of matching and sorting (n=121) (initialization): time 0.01319/1.334, allocations: 4.135 MB / 0.7286 GB, free: 15.41 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004951/1.335, allocations: 1.143 MB / 0.7297 GB, free: 14.21 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.326e-05/1.335, allocations: 4 kB / 0.7297 GB, free: 14.21 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005523/1.34, allocations: 1.488 MB / 0.7312 GB, free: 12.91 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001314/1.341, allocations: 186.5 kB / 0.7314 GB, free: 12.73 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01387/1.355, allocations: 5.725 MB / 0.737 GB, free: 8.191 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001924/1.357, allocations: 175.2 kB / 0.7371 GB, free: 8.02 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001309/1.357, allocations: 39.98 kB / 0.7372 GB, free: 7.98 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.133e-05/1.357, allocations: 4 kB / 0.7372 GB, free: 7.977 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01299/1.37, allocations: 3.984 MB / 0.7411 GB, free: 3.988 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.559e-05/1.371, allocations: 4 kB / 0.7411 GB, free: 3.984 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005572/1.376, allocations: 1.488 MB / 0.7425 GB, free: 2.492 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001331/1.377, allocations: 179.8 kB / 0.7427 GB, free: 2.316 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01386/1.391, allocations: 5.696 MB / 0.7483 GB, free: 12.49 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002018/1.393, allocations: 175.1 kB / 0.7484 GB, free: 12.32 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001601/1.394, allocations: 35.98 kB / 0.7485 GB, free: 12.28 MB / 490.7 MB Warning: Assuming fixed start value for the following 5 variables: order5.w:VARIABLE(start = 1.0 ) "Rotor speed [pu]" type: Real order2.w:VARIABLE(start = 1.0 ) "Rotor speed [pu]" type: Real order5.e2d:VARIABLE(start = order5.e2d0 unit = "1" ) "d-axis sub-transient voltage" type: Real order5.e2q:VARIABLE(start = order5.e2q0 unit = "1" ) "q-axis sub-transient voltage" type: Real order5.e1q:VARIABLE(start = order5.e1q0 unit = "1" ) "q-axis transient voltage" 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 (92): * Single equations (assignments): 89 * 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 {19 11} Notification: Performance of prepare postOptimizeDAE: time 0.0004348/1.394, allocations: 160.3 kB / 0.7486 GB, free: 12.11 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003445/1.394, allocations: 130.3 kB / 0.7487 GB, free: 11.98 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01277/1.407, allocations: 4.15 MB / 0.7528 GB, free: 7.816 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.188e-05/1.407, allocations: 8 kB / 0.7528 GB, free: 7.809 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.452e-05/1.407, allocations: 11.94 kB / 0.7528 GB, free: 7.797 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.769e-05/1.407, allocations: 7.969 kB / 0.7528 GB, free: 7.789 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01544/1.423, allocations: 5.658 MB / 0.7583 GB, free: 2.055 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.109e-05/1.423, allocations: 0 / 0.7583 GB, free: 2.055 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009597/1.424, allocations: 131.8 kB / 0.7585 GB, free: 1.926 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004888/1.429, allocations: 1.441 MB / 0.7599 GB, free: 492 kB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003477/1.429, allocations: 15.89 kB / 0.7599 GB, free: 476 kB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01231/1.441, allocations: 5.254 MB / 0.765 GB, free: 11.07 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.057e-05/1.441, allocations: 3.984 kB / 0.765 GB, free: 11.07 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01472/1.456, allocations: 4.909 MB / 0.7698 GB, free: 6.129 MB / 0.4948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01565/1.472, allocations: 6.021 MB / 0.7757 GB, free: 80 kB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006302/1.473, allocations: 227.3 kB / 0.7759 GB, free: 15.84 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002494/1.473, allocations: 0 / 0.7759 GB, free: 15.84 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001308/1.474, allocations: 131.9 kB / 0.776 GB, free: 15.71 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003065/1.474, allocations: 112.5 kB / 0.7761 GB, free: 15.6 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.1e-05/1.475, allocations: 23.94 kB / 0.7762 GB, free: 15.57 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.001037/1.476, allocations: 0.6532 MB / 0.7768 GB, free: 14.91 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.003312/1.479, allocations: 0.6239 MB / 0.7774 GB, free: 14.29 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 11 (order2.delta,order2.w,order5.delta,order5.w,order5.e1q,order5.e2q,order5.e2d,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 (68): * Single equations (assignments): 66 * 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 {(18,25.9%) 14} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003882/1.479, allocations: 124.7 kB / 0.7775 GB, free: 14.16 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.009487/1.489, allocations: 3.413 MB / 0.7809 GB, free: 10.7 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 5.8e-06/1.489, allocations: 0 / 0.7809 GB, free: 10.7 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.003791/1.493, allocations: 1.367 MB / 0.7822 GB, free: 9.316 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00141/1.494, allocations: 103.6 kB / 0.7823 GB, free: 9.215 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005609/1.5, allocations: 1.913 MB / 0.7842 GB, free: 7.262 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009841/1.501, allocations: 1.233 MB / 0.7854 GB, free: 5.992 MB / 0.5105 GB Notification: Performance of SimCode: time 7.82e-07/1.501, allocations: 0 / 0.7854 GB, free: 5.992 MB / 0.5105 GB (rm -f OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRI.pipe ; mkfifo OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRI.pipe ; head -c 1048576 < OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRI.pipe >> ../files/OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRI.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_OpenIPSL_2_0_0_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FifthOrder_AVRI_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_2_0_0_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FifthOrder_AVRI.fmu > OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRI.pipe 2>&1)