Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.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.0.1/package.mo", uses=false) Using package OpenIPSL with version 3.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/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: translateModel(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete,tolerance=0.001,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete") translateModel(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete,tolerance=0.001,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete") [: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.002543/0.002543, allocations: 178.9 kB / 7.454 MB, free: 2.492 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.221/1.221, allocations: 221.4 MB / 229.3 MB, free: 3.031 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.001013/0.001013, allocations: 100.6 kB / 280.1 MB, free: 1.25 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4013/0.4013, allocations: 78.06 MB / 408.9 MB, free: 15.57 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 5.49e-06/5.54e-06, allocations: 0 / 484.3 MB, free: 4.465 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2389/0.2389, allocations: 69.35 MB / 0.5407 GB, free: 21.46 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1054/0.3443, allocations: 96.91 MB / 0.6354 GB, free: 7.949 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002006/0.3446, allocations: 75.95 kB / 0.6354 GB, free: 7.875 MB / 458.7 MB Notification: Performance of FrontEnd: time 0.09506/0.4397, allocations: 32.09 MB / 0.6668 GB, free: 7.527 MB / 490.7 MB Notification: Performance of Transformations before backend: time 7.726e-05/0.4398, allocations: 16 kB / 0.6668 GB, free: 7.512 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 178 * Number of variables: 178 Notification: Performance of Generate backend data structure: time 0.004614/0.4444, allocations: 1.632 MB / 0.6684 GB, free: 5.828 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.572e-05/0.4444, allocations: 12.03 kB / 0.6684 GB, free: 5.816 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003919/0.4484, allocations: 0.5642 MB / 0.6689 GB, free: 5.25 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001535/0.4499, allocations: 0.7081 MB / 0.6696 GB, free: 4.488 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003103/0.4502, allocations: 248.1 kB / 0.6699 GB, free: 4.211 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001943/0.4505, allocations: 40 kB / 0.6699 GB, free: 4.172 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001681/0.4521, allocations: 0.7538 MB / 0.6706 GB, free: 3.418 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00178/0.4539, allocations: 0.8999 MB / 0.6715 GB, free: 2.496 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.992e-05/0.454, allocations: 0 / 0.6715 GB, free: 2.496 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.697e-05/0.4541, allocations: 0 / 0.6715 GB, free: 2.496 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.018e-05/0.4541, allocations: 16 kB / 0.6715 GB, free: 2.48 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1434/0.5975, allocations: 3.474 MB / 0.6749 GB, free: 143.3 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00106/0.5986, allocations: 0.5859 MB / 0.6755 GB, free: 143.3 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006912/0.5993, allocations: 496.5 kB / 0.676 GB, free: 143.3 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001087/0.5994, allocations: 22.69 kB / 0.676 GB, free: 143.3 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.605e-05/0.5995, allocations: 45.22 kB / 0.676 GB, free: 143.3 MB / 490.7 MB Notification: Performance of pre-optimization done (n=92): time 2.865e-06/0.5995, allocations: 0 / 0.676 GB, free: 143.3 MB / 490.7 MB Notification: Performance of matching and sorting (n=92): time 0.01255/0.612, allocations: 4.09 MB / 0.68 GB, free: 143.2 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.905e-05/0.6121, allocations: 96.75 kB / 0.6801 GB, free: 143.1 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007806/0.6129, allocations: 0.7194 MB / 0.6808 GB, free: 143 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 7.305e-05/0.613, allocations: 25.7 kB / 0.6808 GB, free: 142.9 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001084/0.6131, allocations: 303.5 kB / 0.6811 GB, free: 142.8 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002386/0.6133, allocations: 285.1 kB / 0.6814 GB, free: 142.6 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.496e-05/0.6134, allocations: 0.5 kB / 0.6814 GB, free: 142.6 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 5.12e-05/0.6135, allocations: 340.4 kB / 0.6817 GB, free: 142.3 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005941/0.6141, allocations: 378.9 kB / 0.6821 GB, free: 142.3 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006557/0.6147, allocations: 0.5465 MB / 0.6826 GB, free: 142.1 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006501/0.6154, allocations: 435.5 kB / 0.683 GB, free: 142.1 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-06/0.6154, allocations: 3.875 kB / 0.683 GB, free: 142.1 MB / 490.7 MB Notification: Performance of matching and sorting (n=113) (initialization): time 0.01235/0.6277, allocations: 4.061 MB / 0.687 GB, free: 141.8 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.361e-05/0.6278, allocations: 5.719 kB / 0.687 GB, free: 141.8 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.284e-05/0.6278, allocations: 9.562 kB / 0.687 GB, free: 141.8 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005229/0.633, allocations: 1.504 MB / 0.6885 GB, free: 141.6 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006801/0.6337, allocations: 143.2 kB / 0.6886 GB, free: 141.6 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01259/0.6463, allocations: 5.844 MB / 0.6943 GB, free: 140.2 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001402/0.6478, allocations: 155.6 kB / 0.6945 GB, free: 140.2 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001057/0.6479, allocations: 44.92 kB / 0.6945 GB, free: 140.2 MB / 490.7 MB Warning: Assuming fixed start value for the following 4 variables: order4.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: 23 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (82): * Single equations (assignments): 81 * Array equations: 0 * Algorithm blocks: 0 * 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 {18 14} Notification: Performance of prepare postOptimizeDAE: time 0.000269/0.6481, allocations: 128.6 kB / 0.6947 GB, free: 140.1 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009285/0.6491, allocations: 315.9 kB / 0.695 GB, free: 140 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01263/0.6617, allocations: 4.003 MB / 0.6989 GB, free: 139.6 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.536e-05/0.6618, allocations: 10.44 kB / 0.6989 GB, free: 139.6 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.402e-05/0.6618, allocations: 8.75 kB / 0.6989 GB, free: 139.6 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.542e-05/0.6618, allocations: 7.688 kB / 0.6989 GB, free: 139.6 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01377/0.6756, allocations: 5.185 MB / 0.704 GB, free: 138.9 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.234e-06/0.6756, allocations: 4.688 kB / 0.704 GB, free: 138.9 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006829/0.6763, allocations: 110 kB / 0.7041 GB, free: 138.9 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00489/0.6812, allocations: 1.505 MB / 0.7055 GB, free: 138.8 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001004/0.6813, allocations: 5.562 kB / 0.7055 GB, free: 138.8 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01294/0.6943, allocations: 6.855 MB / 0.7122 GB, free: 136.1 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.397e-06/0.6943, allocations: 0 / 0.7122 GB, free: 136.1 MB / 490.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01351/0.7078, allocations: 4.869 MB / 0.717 GB, free: 134.9 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003398/0.7082, allocations: 213.5 kB / 0.7172 GB, free: 134.7 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002041/0.7084, allocations: 4 kB / 0.7172 GB, free: 134.7 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001113/0.7095, allocations: 124.5 kB / 0.7173 GB, free: 134.7 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002362/0.7098, allocations: 94.38 kB / 0.7174 GB, free: 134.7 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.302e-05/0.7099, allocations: 25.91 kB / 0.7174 GB, free: 134.7 MB / 490.7 MB Notification: Performance of sort global known variables: time 0.0006344/0.7105, allocations: 0.5539 MB / 0.718 GB, free: 134.4 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.001167/0.7117, allocations: 359.4 kB / 0.7183 GB, free: 134.4 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 6 (order2.delta,order2.w,order4.delta,order4.w,order4.e1q,order4.e1d) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (61): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 0 * 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 {(19,24.4%) 13} * Non-linear torn systems: 1 {3 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002455/0.7119, allocations: 140.9 kB / 0.7184 GB, free: 134.3 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.004401/0.7163, allocations: 1.746 MB / 0.7202 GB, free: 133.7 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 2.796e-06/0.7164, allocations: 7.5 kB / 0.7202 GB, free: 133.7 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003566/0.7199, allocations: 1.271 MB / 0.7214 GB, free: 133.3 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001126/0.7211, allocations: 334.9 kB / 0.7217 GB, free: 133.1 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003594/0.7247, allocations: 1.558 MB / 0.7232 GB, free: 132.4 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007045/0.7254, allocations: 1.15 MB / 0.7244 GB, free: 131.6 MB / 490.7 MB Notification: Performance of SimCode: time 9.92e-07/0.7254, allocations: 0 / 0.7244 GB, free: 131.6 MB / 490.7 MB Notification: Performance of Templates: time 0.02463/0.75, allocations: 17.44 MB / 0.7414 GB, free: 125.5 MB / 490.7 MB make -j1 -f OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.makefile (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.sim & ./OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe 2>&1)