Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_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.ThreeArea.FourthOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII") translateModel(OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_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.002308/0.002308, allocations: 182.1 kB / 7.457 MB, free: 2.484 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.156/1.156, allocations: 205.2 MB / 213.1 MB, free: 13.87 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.000943/0.000943, allocations: 84.78 kB / 261.1 MB, free: 13.63 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.06452/0.06452, allocations: 12.58 MB / 321.6 MB, free: 0.9844 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo): time 0.2832/0.2832, allocations: 78.05 MB / 450.4 MB, free: 3.23 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 5.881e-06/5.972e-06, allocations: 0 / 0.5141 GB, free: 29.99 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.12/0.12, allocations: 69.32 MB / 0.5818 GB, free: 8.773 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3109/0.4309, allocations: 101.1 MB / 0.6806 GB, free: 7.129 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001748/0.4311, allocations: 83.45 kB / 0.6807 GB, free: 7.082 MB / 426.7 MB Notification: Performance of FrontEnd: time 0.1715/0.6027, allocations: 66.26 MB / 0.7454 GB, free: 15.81 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.000316/0.603, allocations: 59.94 kB / 0.7454 GB, free: 15.75 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: 523 * Number of variables: 523 Notification: Performance of Generate backend data structure: time 0.0138/0.6168, allocations: 4.185 MB / 0.7495 GB, free: 11.48 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.472e-05/0.6169, allocations: 11.97 kB / 0.7495 GB, free: 11.47 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01127/0.6282, allocations: 1.677 MB / 0.7512 GB, free: 9.789 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004652/0.6328, allocations: 1.65 MB / 0.7528 GB, free: 8.074 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007803/0.6336, allocations: 0.6861 MB / 0.7534 GB, free: 7.273 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009131/0.6346, allocations: 127.9 kB / 0.7536 GB, free: 7.148 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005484/0.6401, allocations: 2.219 MB / 0.7557 GB, free: 4.922 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005533/0.6456, allocations: 2.275 MB / 0.7579 GB, free: 2.578 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.954e-05/0.6457, allocations: 0 / 0.7579 GB, free: 2.578 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003852/0.6461, allocations: 3.984 kB / 0.7579 GB, free: 2.574 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.538e-05/0.6461, allocations: 55.91 kB / 0.758 GB, free: 2.52 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02032/0.6665, allocations: 9.794 MB / 0.7676 GB, free: 8.352 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003893/0.6704, allocations: 2.027 MB / 0.7695 GB, free: 6.301 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002351/0.6728, allocations: 1.454 MB / 0.771 GB, free: 4.84 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000296/0.6731, allocations: 45.89 kB / 0.771 GB, free: 4.793 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002882/0.676, allocations: 1.686 MB / 0.7727 GB, free: 3.09 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=248): time 4.799e-06/0.676, allocations: 4 kB / 0.7727 GB, free: 3.086 MB / 0.4948 GB Notification: Performance of matching and sorting (n=248): time 0.04117/0.7172, allocations: 13.13 MB / 0.7855 GB, free: 5.922 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001146/0.7173, allocations: 180.2 kB / 0.7857 GB, free: 5.707 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003238/0.7206, allocations: 1.693 MB / 0.7873 GB, free: 4.008 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0005927/0.7212, allocations: 25.7 kB / 0.7873 GB, free: 3.977 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005068/0.7217, allocations: 0.7074 MB / 0.788 GB, free: 3.258 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001697/0.7234, allocations: 0.8235 MB / 0.7888 GB, free: 2.422 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000397/0.7238, allocations: 0 / 0.7888 GB, free: 2.422 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0002028/0.724, allocations: 398.9 kB / 0.7892 GB, free: 2.027 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002377/0.7264, allocations: 1.223 MB / 0.7904 GB, free: 0.8008 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002554/0.729, allocations: 1.511 MB / 0.7919 GB, free: 15.2 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002525/0.7315, allocations: 1.336 MB / 0.7932 GB, free: 13.83 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.003e-05/0.7315, allocations: 7.938 kB / 0.7932 GB, free: 13.82 MB / 0.5261 GB Notification: Performance of matching and sorting (n=316) (initialization): time 0.04118/0.7727, allocations: 13.1 MB / 0.806 GB, free: 0.6602 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.208e-05/0.7728, allocations: 4 kB / 0.806 GB, free: 0.6562 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.334e-05/0.7728, allocations: 4 kB / 0.806 GB, free: 0.6523 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01823/0.7911, allocations: 5.192 MB / 0.8111 GB, free: 11.45 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002612/0.7937, allocations: 419.4 kB / 0.8115 GB, free: 11.04 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04529/0.839, allocations: 15.49 MB / 0.8266 GB, free: 11.41 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004867/0.844, allocations: 0.5173 MB / 0.8271 GB, free: 10.89 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008158/0.8448, allocations: 87.97 kB / 0.8272 GB, free: 10.8 MB / 0.5573 GB Warning: Assuming fixed start value for the following 7 variables: Exc2.firstOrder2.y:VARIABLE(start = Exc2.firstOrder2.y_start ) "Connector of Real output signal" type: Real Exc1.firstOrder2.y:VARIABLE(start = Exc1.firstOrder2.y_start ) "Connector of Real output signal" type: Real order4_1.e1d:VARIABLE(start = order4_1.e1d0 unit = "1" ) "d-axis transient voltage" type: Real order4_1.e1q:VARIABLE(start = order4_1.e1q0 unit = "1" ) "q-axis transient voltage" type: Real order4_1.w:VARIABLE(start = 1.0 ) "Rotor speed [pu]" type: Real order2.w:VARIABLE(start = 1.0 ) "Rotor speed [pu]" type: Real order3_2.w:VARIABLE(start = 1.0 ) "Rotor speed [pu]" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (226): * Single equations (assignments): 221 * Array equations: 0 * Algorithm blocks: 4 * 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 {65 26} Notification: Performance of prepare postOptimizeDAE: time 0.001305/0.8461, allocations: 209.5 kB / 0.8274 GB, free: 10.58 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001216/0.8474, allocations: 300.3 kB / 0.8277 GB, free: 10.29 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04229/0.8897, allocations: 13.4 MB / 0.8407 GB, free: 12.85 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.478e-05/0.8898, allocations: 24 kB / 0.8408 GB, free: 12.82 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.637e-05/0.8898, allocations: 24 kB / 0.8408 GB, free: 12.8 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.145e-05/0.8899, allocations: 15.94 kB / 0.8408 GB, free: 12.79 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2199/1.11, allocations: 16.68 MB / 0.8571 GB, free: 210.8 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.436e-05/1.11, allocations: 0 / 0.8571 GB, free: 210.8 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001747/1.112, allocations: 244.7 kB / 0.8573 GB, free: 210.8 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01575/1.127, allocations: 5.196 MB / 0.8624 GB, free: 210.7 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006105/1.128, allocations: 18.98 kB / 0.8624 GB, free: 210.7 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0374/1.165, allocations: 17.44 MB / 0.8794 GB, free: 206.8 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.519e-06/1.165, allocations: 0 / 0.8794 GB, free: 206.8 MB / 0.573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.04116/1.207, allocations: 15.44 MB / 0.8945 GB, free: 206.2 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00111/1.208, allocations: 404.1 kB / 0.8949 GB, free: 205.9 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000722/1.209, allocations: 11.22 kB / 0.8949 GB, free: 205.9 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003188/1.212, allocations: 403 kB / 0.8953 GB, free: 205.9 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000895/1.213, allocations: 341.4 kB / 0.8956 GB, free: 205.9 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002324/1.213, allocations: 63.5 kB / 0.8957 GB, free: 205.9 MB / 0.573 GB Notification: Performance of sort global known variables: time 0.0016/1.214, allocations: 1.263 MB / 0.8969 GB, free: 205.8 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.003055/1.218, allocations: 0.9902 MB / 0.8979 GB, free: 205.8 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 17 (order3_2.delta,order3_2.w,order3_2.e1q,order2.delta,order2.w,order4_1.delta,order4_1.w,order4_1.e1q,order4_1.e1d,Exc1.ExcitationSystem.x_scaled[1],Exc1.derivativeBlock.x,Exc1.firstOrder2.y,Exc1.simpleLagLim.state,Exc2.ExcitationSystem.x_scaled[1],Exc2.derivativeBlock.x,Exc2.firstOrder2.y,Exc2.simpleLagLim.state) * Number of discrete variables: 4 ($whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (157): * Single equations (assignments): 152 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(66,7.7%) 22} * Non-linear torn systems: 2 {1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004312/1.218, allocations: 147 kB / 0.898 GB, free: 205.7 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.01419/1.232, allocations: 5.489 MB / 0.9034 GB, free: 205.3 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 8.135e-06/1.232, allocations: 1.406 kB / 0.9034 GB, free: 205.3 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.01238/1.245, allocations: 4.227 MB / 0.9075 GB, free: 204.7 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002692/1.247, allocations: 195.3 kB / 0.9077 GB, free: 204.6 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01344/1.261, allocations: 4.064 MB / 0.9117 GB, free: 202.8 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001922/1.263, allocations: 1.942 MB / 0.9136 GB, free: 201.3 MB / 0.573 GB Notification: Performance of SimCode: time 8.41e-07/1.263, allocations: 3.828 kB / 0.9136 GB, free: 201.3 MB / 0.573 GB Notification: Performance of Templates: time 0.06975/1.333, allocations: 50.71 MB / 0.9631 GB, free: 167.4 MB / 0.573 GB make -j1 -f OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.makefile (rm -f OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe ; mkfifo OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe >> ../files/OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.sim & ./OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe 2>&1)