Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoArea.FifthOrder_AVRII.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.FifthOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoArea.FifthOrder_AVRII") translateModel(OpenIPSL.Examples.PSATSystems.TwoArea.FifthOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoArea.FifthOrder_AVRII") [: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.002467/0.002467, allocations: 180.1 kB / 7.454 MB, free: 2.508 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.133/1.133, allocations: 205.2 MB / 213.1 MB, free: 13.85 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.0009508/0.0009509, allocations: 91.58 kB / 261.1 MB, free: 13.55 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.06531/0.06531, allocations: 12.6 MB / 321.6 MB, free: 0.8945 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo): time 0.2824/0.2824, allocations: 78.04 MB / 450.4 MB, free: 3.215 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 5.741e-06/5.841e-06, allocations: 0 / 0.5141 GB, free: 29.98 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1189/0.1189, allocations: 69.32 MB / 0.5818 GB, free: 8.754 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3068/0.4257, allocations: 103.4 MB / 0.6828 GB, free: 4.84 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002092/0.426, allocations: 78.64 kB / 0.6829 GB, free: 4.801 MB / 426.7 MB Notification: Performance of FrontEnd: time 0.2523/0.6783, allocations: 96.37 MB / 0.777 GB, free: 15.11 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0003841/0.6787, allocations: 95.81 kB / 0.7771 GB, free: 15.01 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 894 * Number of variables: 894 Notification: Performance of Generate backend data structure: time 0.01996/0.6987, allocations: 6 MB / 0.783 GB, free: 8.934 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.392e-05/0.6988, allocations: 15.91 kB / 0.783 GB, free: 8.918 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01918/0.718, allocations: 2.931 MB / 0.7858 GB, free: 5.973 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006194/0.7242, allocations: 2.253 MB / 0.788 GB, free: 3.645 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001024/0.7252, allocations: 0.8714 MB / 0.7889 GB, free: 2.637 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001362/0.7266, allocations: 204 kB / 0.7891 GB, free: 2.438 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008973/0.7356, allocations: 3.443 MB / 0.7924 GB, free: 14.99 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01072/0.7463, allocations: 3.606 MB / 0.796 GB, free: 11.36 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001143/0.7465, allocations: 4.844 kB / 0.796 GB, free: 11.36 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008939/0.7474, allocations: 0 / 0.796 GB, free: 11.36 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.295e-05/0.7475, allocations: 88 kB / 0.7961 GB, free: 11.27 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03929/0.7868, allocations: 18.59 MB / 0.8142 GB, free: 7.582 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004628/0.7915, allocations: 2.271 MB / 0.8164 GB, free: 5.297 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003932/0.7954, allocations: 2.12 MB / 0.8185 GB, free: 3.168 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006171/0.7961, allocations: 74.91 kB / 0.8186 GB, free: 3.094 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005045/0.8011, allocations: 2.481 MB / 0.821 GB, free: 0.5742 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=384): time 7.595e-06/0.8012, allocations: 0 / 0.821 GB, free: 0.5742 MB / 0.5417 GB Notification: Performance of matching and sorting (n=384): time 0.05887/0.86, allocations: 18.4 MB / 0.839 GB, free: 14.12 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.354e-05/0.8602, allocations: 141.8 kB / 0.8391 GB, free: 13.96 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005199/0.8654, allocations: 2.472 MB / 0.8415 GB, free: 11.47 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0009649/0.8663, allocations: 25.7 kB / 0.8415 GB, free: 11.44 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009206/0.8673, allocations: 1.178 MB / 0.8427 GB, free: 10.25 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.003088/0.8704, allocations: 1.266 MB / 0.8439 GB, free: 8.961 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007871/0.8712, allocations: 0 / 0.8439 GB, free: 8.961 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0003236/0.8715, allocations: 453.7 kB / 0.8444 GB, free: 8.512 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003684/0.8752, allocations: 1.777 MB / 0.8461 GB, free: 6.73 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004022/0.8792, allocations: 2.33 MB / 0.8484 GB, free: 4.207 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003878/0.8831, allocations: 1.98 MB / 0.8503 GB, free: 2.215 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.618e-05/0.8832, allocations: 4 kB / 0.8503 GB, free: 2.211 MB / 0.573 GB Notification: Performance of matching and sorting (n=470) (initialization): time 0.2669/1.15, allocations: 18.43 MB / 0.8683 GB, free: 106.9 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.828e-05/1.15, allocations: 11.59 kB / 0.8683 GB, free: 106.9 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.62e-05/1.15, allocations: 14.69 kB / 0.8683 GB, free: 106.9 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02406/1.174, allocations: 7.188 MB / 0.8753 GB, free: 106.8 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003253/1.177, allocations: 0.576 MB / 0.8759 GB, free: 106.8 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05684/1.234, allocations: 22.24 MB / 0.8976 GB, free: 105.4 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006681/1.241, allocations: 0.6732 MB / 0.8983 GB, free: 105.3 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001229/1.242, allocations: 130.2 kB / 0.8984 GB, free: 105.3 MB / 0.5886 GB Warning: Assuming fixed start value for the following 5 variables: order5.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 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 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 (333): * Single equations (assignments): 330 * 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.0009077/1.243, allocations: 202.7 kB / 0.8986 GB, free: 105.2 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001381/1.245, allocations: 462.5 kB / 0.899 GB, free: 104.9 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05441/1.299, allocations: 18.83 MB / 0.9174 GB, free: 104.6 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.418e-05/1.299, allocations: 38 kB / 0.9175 GB, free: 104.6 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.736e-05/1.299, allocations: 27.94 kB / 0.9175 GB, free: 104.6 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.206e-05/1.299, allocations: 26.56 kB / 0.9175 GB, free: 104.6 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06373/1.363, allocations: 23.41 MB / 0.9404 GB, free: 102.9 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.033e-05/1.363, allocations: 3.625 kB / 0.9404 GB, free: 102.9 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002769/1.366, allocations: 391.4 kB / 0.9408 GB, free: 102.9 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02521/1.391, allocations: 7.245 MB / 0.9478 GB, free: 102.2 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009227/1.392, allocations: 20.83 kB / 0.9479 GB, free: 102.2 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05389/1.446, allocations: 21.98 MB / 0.9693 GB, free: 90.52 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.05e-06/1.446, allocations: 0 / 0.9693 GB, free: 90.52 MB / 0.5886 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.05829/1.504, allocations: 21.78 MB / 0.9906 GB, free: 72.5 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001272/1.506, allocations: 0.554 MB / 0.9911 GB, free: 72 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009256/1.506, allocations: 7.938 kB / 0.9911 GB, free: 72 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004401/1.511, allocations: 481.2 kB / 0.9916 GB, free: 71.63 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001201/1.512, allocations: 468.8 kB / 0.992 GB, free: 71.38 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000365/1.512, allocations: 91.56 kB / 0.9921 GB, free: 71.29 MB / 0.5886 GB Notification: Performance of sort global known variables: time 0.002327/1.515, allocations: 1.826 MB / 0.9939 GB, free: 69.62 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.005274/1.52, allocations: 1.575 MB / 0.9955 GB, free: 68.12 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 12 (order3.delta,order3.w,order3.e1q,order5.delta,order5.w,order5.e1q,order5.e2q,order5.e2d,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 (248): * Single equations (assignments): 245 * 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.0005797/1.521, allocations: 153.2 kB / 0.9956 GB, free: 67.99 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.01925/1.54, allocations: 7.918 MB / 1.003 GB, free: 60.77 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/1.54, allocations: 0 / 1.003 GB, free: 60.77 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.01622/1.556, allocations: 5.938 MB / 1.009 GB, free: 55.53 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002202/1.558, allocations: 239.5 kB / 1.009 GB, free: 55.3 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01537/1.574, allocations: 6.023 MB / 1.015 GB, free: 49.84 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002209/1.576, allocations: 2.659 MB / 1.018 GB, free: 47.81 MB / 0.5886 GB Notification: Performance of SimCode: time 5.81e-07/1.576, allocations: 4 kB / 1.018 GB, free: 47.81 MB / 0.5886 GB Notification: Performance of Templates: time 0.0989/1.675, allocations: 73.63 MB / 1.09 GB, free: 3.398 MB / 0.6042 GB make -j1 -f OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoArea.FifthOrder_AVRII.makefile (rm -f OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoArea.FifthOrder_AVRII.pipe ; mkfifo OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoArea.FifthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoArea.FifthOrder_AVRII.pipe >> ../files/OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoArea.FifthOrder_AVRII.sim & ./OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoArea.FifthOrder_AVRII -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoArea.FifthOrder_AVRII.pipe 2>&1)