Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_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-master/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-master/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: translateModel(OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRI,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRI") translateModel(OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRI,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRI") [: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.002731/0.002731, allocations: 183.3 kB / 7.456 MB, free: 2.5 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.138/1.138, allocations: 205.2 MB / 213.1 MB, free: 13.91 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.0009916/0.0009916, allocations: 96.94 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-master/package.mo): time 0.06676/0.06676, allocations: 12.59 MB / 321.6 MB, free: 0.9062 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo): time 0.2708/0.2708, allocations: 78.04 MB / 450.4 MB, free: 3.203 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 9.027e-06/9.077e-06, allocations: 4 kB / 0.5141 GB, free: 29.96 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1234/0.1234, allocations: 69.32 MB / 0.5818 GB, free: 8.742 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3096/0.433, allocations: 102.6 MB / 0.682 GB, free: 5.637 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002503/0.4333, allocations: 75.58 kB / 0.6821 GB, free: 5.598 MB / 426.7 MB Notification: Performance of FrontEnd: time 0.2396/0.673, allocations: 94.2 MB / 0.7741 GB, free: 2.078 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0003749/0.6734, allocations: 91.94 kB / 0.7742 GB, free: 1.988 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 890 * Number of variables: 890 Notification: Performance of Generate backend data structure: time 0.01961/0.693, allocations: 5.954 MB / 0.78 GB, free: 11.95 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.272e-05/0.6931, allocations: 11.97 kB / 0.78 GB, free: 11.94 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01943/0.7125, allocations: 2.924 MB / 0.7828 GB, free: 9.008 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006077/0.7186, allocations: 2.29 MB / 0.7851 GB, free: 6.641 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00095/0.7196, allocations: 0.8424 MB / 0.7859 GB, free: 5.668 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001205/0.7208, allocations: 203.9 kB / 0.7861 GB, free: 5.469 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008479/0.7293, allocations: 3.443 MB / 0.7895 GB, free: 2.023 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008582/0.7379, allocations: 3.587 MB / 0.793 GB, free: 14.41 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.002e-05/0.738, allocations: 0 / 0.793 GB, free: 14.41 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003534/0.7384, allocations: 0 / 0.793 GB, free: 14.41 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.842e-05/0.7384, allocations: 87.98 kB / 0.793 GB, free: 14.32 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03733/0.7758, allocations: 18.57 MB / 0.8112 GB, free: 10.64 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0038/0.7796, allocations: 2.252 MB / 0.8134 GB, free: 8.371 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003114/0.7827, allocations: 2.108 MB / 0.8154 GB, free: 6.254 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000404/0.7832, allocations: 74.89 kB / 0.8155 GB, free: 6.18 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.859e-05/0.7832, allocations: 81.48 kB / 0.8156 GB, free: 6.09 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=380): time 6.042e-06/0.7832, allocations: 0 / 0.8156 GB, free: 6.09 MB / 0.5417 GB Notification: Performance of matching and sorting (n=380): time 0.05544/0.8387, allocations: 18.23 MB / 0.8334 GB, free: 3.812 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.723e-05/0.8388, allocations: 175.5 kB / 0.8336 GB, free: 3.609 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003823/0.8426, allocations: 2.432 MB / 0.8359 GB, free: 1.164 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0008743/0.8435, allocations: 29.7 kB / 0.836 GB, free: 1.129 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007252/0.8442, allocations: 1.178 MB / 0.8371 GB, free: 15.93 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.002218/0.8465, allocations: 1.239 MB / 0.8383 GB, free: 14.68 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000283/0.8468, allocations: 4 kB / 0.8383 GB, free: 14.67 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001943/0.847, allocations: 441.6 kB / 0.8387 GB, free: 14.23 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002986/0.85, allocations: 1.749 MB / 0.8405 GB, free: 12.48 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003287/0.8532, allocations: 2.329 MB / 0.8427 GB, free: 9.957 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003224/0.8565, allocations: 1.952 MB / 0.8446 GB, free: 7.992 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.237e-05/0.8565, allocations: 8 kB / 0.8446 GB, free: 7.984 MB / 0.573 GB Notification: Performance of matching and sorting (n=459) (initialization): time 0.05463/0.9111, allocations: 18.33 MB / 0.8625 GB, free: 5.598 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.1548/1.066, allocations: 6.605 MB / 0.869 GB, free: 195.8 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.857e-05/1.066, allocations: 21.75 kB / 0.869 GB, free: 195.8 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02226/1.088, allocations: 7.124 MB / 0.876 GB, free: 195.8 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002719/1.091, allocations: 0.5454 MB / 0.8765 GB, free: 195.8 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05214/1.143, allocations: 22.07 MB / 0.8981 GB, free: 194.3 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005962/1.149, allocations: 0.6693 MB / 0.8987 GB, free: 194.2 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006802/1.15, allocations: 128.7 kB / 0.8988 GB, free: 194.2 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.116e-05/1.15, allocations: 3.906 kB / 0.8988 GB, free: 194.2 MB / 0.5886 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.05064/1.201, allocations: 17.85 MB / 0.9163 GB, free: 194 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.195e-05/1.201, allocations: 13.44 kB / 0.9163 GB, free: 194 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02359/1.224, allocations: 7.126 MB / 0.9232 GB, free: 193.8 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002916/1.227, allocations: 0.5346 MB / 0.9238 GB, free: 193.8 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05393/1.281, allocations: 22.06 MB / 0.9453 GB, free: 187.5 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006533/1.288, allocations: 0.6412 MB / 0.9459 GB, free: 187 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008606/1.289, allocations: 131.5 kB / 0.9461 GB, free: 186.9 MB / 0.5886 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 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: 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 (323): * Single equations (assignments): 320 * 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.001128/1.29, allocations: 196.8 kB / 0.9462 GB, free: 186.8 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00129/1.291, allocations: 454.4 kB / 0.9467 GB, free: 186.3 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05266/1.344, allocations: 18.66 MB / 0.9649 GB, free: 171.7 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.017e-05/1.344, allocations: 38.44 kB / 0.9649 GB, free: 171.7 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.602e-05/1.344, allocations: 31.83 kB / 0.965 GB, free: 171.7 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.806e-05/1.344, allocations: 17.91 kB / 0.965 GB, free: 171.7 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06083/1.405, allocations: 23.56 MB / 0.988 GB, free: 153.6 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.21e-05/1.405, allocations: 0 / 0.988 GB, free: 153.6 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002653/1.408, allocations: 401.9 kB / 0.9884 GB, free: 153.3 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02258/1.43, allocations: 7.167 MB / 0.9954 GB, free: 147.7 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009074/1.431, allocations: 26.7 kB / 0.9954 GB, free: 147.7 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04886/1.48, allocations: 20.08 MB / 1.015 GB, free: 129.9 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.799e-06/1.48, allocations: 0 / 1.015 GB, free: 129.9 MB / 0.5886 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.05715/1.537, allocations: 21.59 MB / 1.036 GB, free: 112 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001287/1.539, allocations: 0.5484 MB / 1.037 GB, free: 111.5 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001016/1.54, allocations: 7.422 kB / 1.037 GB, free: 111.5 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004312/1.544, allocations: 474.3 kB / 1.037 GB, free: 111.1 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001131/1.545, allocations: 458.9 kB / 1.038 GB, free: 110.9 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003388/1.545, allocations: 91.75 kB / 1.038 GB, free: 110.8 MB / 0.5886 GB Notification: Performance of sort global known variables: time 0.002127/1.547, allocations: 1.8 MB / 1.039 GB, free: 109.2 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.005473/1.553, allocations: 2.563 MB / 1.042 GB, free: 106.7 MB / 0.5886 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,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 (250): * Single equations (assignments): 248 * 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.0004627/1.553, allocations: 147.7 kB / 1.042 GB, free: 106.6 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.03618/1.59, allocations: 13.88 MB / 1.056 GB, free: 94.12 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 5.791e-06/1.59, allocations: 0 / 1.056 GB, free: 94.12 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.01624/1.606, allocations: 5.791 MB / 1.061 GB, free: 89.03 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002223/1.608, allocations: 254 kB / 1.061 GB, free: 88.79 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01591/1.624, allocations: 6.233 MB / 1.068 GB, free: 83.12 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002658/1.627, allocations: 2.655 MB / 1.07 GB, free: 81.09 MB / 0.5886 GB Notification: Performance of SimCode: time 1.303e-06/1.627, allocations: 0 / 1.07 GB, free: 81.09 MB / 0.5886 GB Notification: Performance of Templates: time 0.302/1.929, allocations: 113.1 MB / 1.181 GB, free: 197.2 MB / 0.5886 GB make -j1 -f OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRI.makefile (rm -f OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRI.pipe ; mkfifo OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRI.pipe ; head -c 1048576 < OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRI.pipe >> ../files/OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRI.sim & ./OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRI -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRI.pipe 2>&1)