Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.TwoAreas.Two_Areas_PSAT.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.TwoAreas.Two_Areas_PSAT,tolerance=1e-06,outputFormat="empty",numberOfIntervals=200000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Examples.TwoAreas.Two_Areas_PSAT") translateModel(OpenIPSL.Examples.TwoAreas.Two_Areas_PSAT,tolerance=1e-06,outputFormat="empty",numberOfIntervals=200000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Examples.TwoAreas.Two_Areas_PSAT") [: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.003257/0.003257, allocations: 180 kB / 7.453 MB, free: 2.512 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.251/1.251, allocations: 221.4 MB / 229.3 MB, free: 3.008 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.0009907/0.0009904, allocations: 101.7 kB / 280.1 MB, free: 1.238 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4516/0.4516, allocations: 78.05 MB / 408.9 MB, free: 15.5 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 1.115e-05/1.119e-05, allocations: 4 kB / 484.3 MB, free: 4.43 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3297/0.3298, allocations: 69.34 MB / 0.5407 GB, free: 21.38 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1147/0.4446, allocations: 99.22 MB / 0.6376 GB, free: 5.605 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001662/0.4448, allocations: 71.97 kB / 0.6377 GB, free: 5.535 MB / 458.7 MB Notification: Performance of FrontEnd: time 0.4144/0.8592, allocations: 72.32 MB / 0.7083 GB, free: 94.86 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001593/0.8594, allocations: 49.12 kB / 0.7083 GB, free: 94.86 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: 451 * Number of variables: 451 Notification: Performance of Generate backend data structure: time 0.01007/0.8695, allocations: 3.578 MB / 0.7118 GB, free: 92.68 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.81e-05/0.8695, allocations: 9.281 kB / 0.7118 GB, free: 92.68 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009805/0.8793, allocations: 1.513 MB / 0.7133 GB, free: 91.96 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003717/0.8831, allocations: 1.748 MB / 0.715 GB, free: 90.73 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003669/0.8834, allocations: 391.2 kB / 0.7154 GB, free: 90.42 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003848/0.8838, allocations: 111.8 kB / 0.7155 GB, free: 90.41 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00365/0.8875, allocations: 1.956 MB / 0.7174 GB, free: 89.52 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003227/0.8907, allocations: 1.78 MB / 0.7192 GB, free: 88.05 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.683e-05/0.8908, allocations: 0 / 0.7192 GB, free: 88.05 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002162/0.891, allocations: 0 / 0.7192 GB, free: 88.05 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.806e-05/0.891, allocations: 44 kB / 0.7192 GB, free: 88.01 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01507/0.9061, allocations: 9.512 MB / 0.7285 GB, free: 78.23 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002255/0.9084, allocations: 1.386 MB / 0.7298 GB, free: 76.83 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001717/0.9101, allocations: 1.276 MB / 0.7311 GB, free: 75.55 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002388/0.9104, allocations: 41.25 kB / 0.7311 GB, free: 75.52 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.155e-05/0.9104, allocations: 56.56 kB / 0.7312 GB, free: 75.46 MB / 490.7 MB Notification: Performance of pre-optimization done (n=223): time 3.577e-06/0.9104, allocations: 4 kB / 0.7312 GB, free: 75.45 MB / 490.7 MB Notification: Performance of matching and sorting (n=223): time 0.02572/0.9361, allocations: 8.573 MB / 0.7396 GB, free: 66.9 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.499e-05/0.9362, allocations: 77.41 kB / 0.7396 GB, free: 66.81 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0034/0.9396, allocations: 2.058 MB / 0.7416 GB, free: 64.75 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005176/0.9401, allocations: 29.64 kB / 0.7417 GB, free: 64.71 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002876/0.9404, allocations: 0.662 MB / 0.7423 GB, free: 64.04 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001231/0.9417, allocations: 0.7504 MB / 0.743 GB, free: 63.27 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001773/0.9419, allocations: 0 / 0.743 GB, free: 63.27 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 8.711e-05/0.942, allocations: 382.2 kB / 0.7434 GB, free: 62.89 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001653/0.9436, allocations: 1.035 MB / 0.7444 GB, free: 61.85 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001735/0.9454, allocations: 1.288 MB / 0.7457 GB, free: 60.47 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001828/0.9472, allocations: 1.158 MB / 0.7468 GB, free: 59.31 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.653e-06/0.9472, allocations: 7.938 kB / 0.7468 GB, free: 59.3 MB / 490.7 MB Notification: Performance of matching and sorting (n=273) (initialization): time 0.01742/0.9646, allocations: 6.148 MB / 0.7528 GB, free: 53.12 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.484e-05/0.9647, allocations: 4 kB / 0.7528 GB, free: 53.12 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.461e-05/0.9647, allocations: 11.98 kB / 0.7528 GB, free: 53.11 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01373/0.9784, allocations: 3.357 MB / 0.7561 GB, free: 49.7 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007541/0.986, allocations: 1.639 MB / 0.7577 GB, free: 48.06 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02353/1.01, allocations: 16.65 MB / 0.774 GB, free: 30.62 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004153/1.014, allocations: 338 kB / 0.7743 GB, free: 30.29 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004512/1.014, allocations: 83.97 kB / 0.7744 GB, free: 30.21 MB / 490.7 MB Warning: Assuming fixed start value for the following 8 variables: g4.order6_1.w:VARIABLE(start = 1.0 ) "Rotor speed [pu]" type: Real g3.order6_1.w:VARIABLE(start = 1.0 ) "Rotor speed [pu]" type: Real g2.order6_1.w:VARIABLE(start = 1.0 ) "Rotor speed [pu]" type: Real g1.order6_1.w:VARIABLE(start = 1.0 ) "Rotor speed [pu]" type: Real g4.order6_1.e2d:VARIABLE(start = g4.order6_1.e2d0 unit = "1" ) "d-axis sub-transient voltage" type: Real g4.order6_1.delta:VARIABLE(start = g4.order6_1.delta0 unit = "rad" ) "Rotor angle" type: Real g3.order6_1.e2d:VARIABLE(start = g3.order6_1.e2d0 unit = "1" ) "d-axis sub-transient voltage" type: Real g3.order6_1.delta:VARIABLE(start = g3.order6_1.delta0 unit = "rad" ) "Rotor angle" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (203): * Single equations (assignments): 187 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 9 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 9 {(2,100.0%),(2,100.0%),(2,100.0%),(2,100.0%),(2,100.0%),(2,100.0%),(2,100.0%),(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(4,75.0%) 2,(4,75.0%) 2,(1,100.0%) 1,(3,88.9%) 17,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 1 {8 22} Notification: Performance of prepare postOptimizeDAE: time 0.0005761/1.015, allocations: 167.4 kB / 0.7745 GB, free: 30.04 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007376/1.016, allocations: 300.2 kB / 0.7748 GB, free: 29.74 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02532/1.041, allocations: 8.794 MB / 0.7834 GB, free: 20.96 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.165e-05/1.041, allocations: 24 kB / 0.7834 GB, free: 20.93 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.708e-06/1.041, allocations: 0 / 0.7834 GB, free: 20.93 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.072e-05/1.041, allocations: 15.95 kB / 0.7834 GB, free: 20.92 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03008/1.071, allocations: 12.15 MB / 0.7953 GB, free: 8.723 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.056e-05/1.071, allocations: 0 / 0.7953 GB, free: 8.723 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001861/1.073, allocations: 223.6 kB / 0.7955 GB, free: 8.504 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01294/1.086, allocations: 4.058 MB / 0.7995 GB, free: 4.438 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004326/1.086, allocations: 15.98 kB / 0.7995 GB, free: 4.422 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03004/1.116, allocations: 11.95 MB / 0.8112 GB, free: 8.348 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.17e-06/1.116, allocations: 0 / 0.8112 GB, free: 8.348 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.03124/1.148, allocations: 10.55 MB / 0.8215 GB, free: 13.8 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00156/1.149, allocations: 468.6 kB / 0.8219 GB, free: 13.32 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001013/1.15, allocations: 4 kB / 0.8219 GB, free: 13.32 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003426/1.154, allocations: 203.8 kB / 0.8221 GB, free: 13.12 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007241/1.155, allocations: 217.6 kB / 0.8223 GB, free: 12.91 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002255/1.155, allocations: 55.98 kB / 0.8224 GB, free: 12.85 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.002547/1.157, allocations: 1.551 MB / 0.8239 GB, free: 11.3 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.00348/1.161, allocations: 0.8854 MB / 0.8248 GB, free: 10.41 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 24 (g1.order6_1.delta,g1.order6_1.w,g1.order6_1.e1q,g1.order6_1.e1d,g1.order6_1.e2q,g1.order6_1.e2d,g2.order6_1.delta,g2.order6_1.w,g2.order6_1.e1q,g2.order6_1.e1d,g2.order6_1.e2q,g2.order6_1.e2d,g3.order6_1.delta,g3.order6_1.w,g3.order6_1.e1q,g3.order6_1.e1d,g3.order6_1.e2q,g3.order6_1.e2d,g4.order6_1.delta,g4.order6_1.w,g4.order6_1.e1q,g4.order6_1.e1d,g4.order6_1.e2q,g4.order6_1.e2d) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (136): * Single equations (assignments): 135 * 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 {54 42} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006379/1.162, allocations: 295.1 kB / 0.825 GB, free: 10.14 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01226/1.174, allocations: 5.237 MB / 0.8302 GB, free: 4.637 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 5.03e-06/1.174, allocations: 1.625 kB / 0.8302 GB, free: 4.637 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.01037/1.184, allocations: 3.103 MB / 0.8332 GB, free: 1.523 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002245/1.186, allocations: 170 kB / 0.8333 GB, free: 1.355 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01226/1.199, allocations: 4.777 MB / 0.838 GB, free: 12.54 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002437/1.201, allocations: 1.941 MB / 0.8399 GB, free: 10.57 MB / 0.5261 GB Notification: Performance of SimCode: time 7.41e-07/1.201, allocations: 0 / 0.8399 GB, free: 10.57 MB / 0.5261 GB Notification: Performance of Templates: time 0.07979/1.281, allocations: 46.03 MB / 0.8849 GB, free: 12.68 MB / 0.573 GB make -j1 -f OpenIPSL_OpenIPSL.Examples.TwoAreas.Two_Areas_PSAT.makefile (rm -f OpenIPSL_OpenIPSL.Examples.TwoAreas.Two_Areas_PSAT.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.TwoAreas.Two_Areas_PSAT.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.TwoAreas.Two_Areas_PSAT.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.TwoAreas.Two_Areas_PSAT.sim & ./OpenIPSL_OpenIPSL.Examples.TwoAreas.Two_Areas_PSAT -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_OpenIPSL.Examples.TwoAreas.Two_Areas_PSAT.pipe 2>&1)