Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII.conf.json 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/Modelica 4.0.0+maint.om/package.mo", uses=false) 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/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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII") translateModel(OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001644/0.001644, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.41/1.41, allocations: 222.9 MB / 239.2 MB, free: 4.625 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001823/0.001823, allocations: 184.5 kB / 289.5 MB, free: 2.34 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.468/0.468, allocations: 78.52 MB / 418.2 MB, free: 3.18 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001705/0.001706, allocations: 79.88 kB / 497.4 MB, free: 6.434 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1433/0.145, allocations: 68.18 MB / 0.5524 GB, free: 2.211 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII): time 0.2914/0.4364, allocations: 13.57 MB / 0.5656 GB, free: 31.64 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.008878/0.4454, allocations: 3.46 MB / 0.569 GB, free: 30.56 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003943/0.4494, allocations: 29.31 kB / 0.569 GB, free: 30.56 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002503/0.4519, allocations: 0.558 MB / 0.5696 GB, free: 30.28 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006609/0.4586, allocations: 1.416 MB / 0.5709 GB, free: 29.55 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004333/0.463, allocations: 1.502 MB / 0.5724 GB, free: 29.37 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.006499/0.4695, allocations: 3.693 MB / 0.576 GB, free: 28.54 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002317/0.4718, allocations: 0.8926 MB / 0.5769 GB, free: 28.34 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002733/0.4745, allocations: 1.528 MB / 0.5784 GB, free: 27.91 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002986/0.4775, allocations: 1.957 MB / 0.5803 GB, free: 27.38 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001298/0.4789, allocations: 283.4 kB / 0.5806 GB, free: 27.38 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001885/0.4808, allocations: 434.2 kB / 0.581 GB, free: 27.36 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001295/0.4821, allocations: 0.7619 MB / 0.5817 GB, free: 26.86 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002984/0.4851, allocations: 1.64 MB / 0.5833 GB, free: 25.74 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005546/0.4906, allocations: 3.912 MB / 0.5871 GB, free: 23.93 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.71e-06/0.4906, allocations: 0 / 0.5871 GB, free: 23.93 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.4907, allocations: 0 / 0.5871 GB, free: 23.93 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001925/0.4909, allocations: 0 / 0.5871 GB, free: 23.93 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 522 * Number of variables: 522 Notification: Performance of Generate backend data structure: time 0.02581/0.5167, allocations: 6.583 MB / 0.5936 GB, free: 21.3 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.671e-05/0.5167, allocations: 10.22 kB / 0.5936 GB, free: 21.3 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01664/0.5334, allocations: 2.272 MB / 0.5958 GB, free: 20.87 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005661/0.5391, allocations: 1.882 MB / 0.5976 GB, free: 19.7 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008786/0.54, allocations: 0.7237 MB / 0.5983 GB, free: 19.05 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001028/0.541, allocations: 210.3 kB / 0.5985 GB, free: 18.98 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009993/0.5511, allocations: 3.035 MB / 0.6015 GB, free: 17.83 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.208e-05/0.5512, allocations: 0 / 0.6015 GB, free: 17.83 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008087/0.552, allocations: 85.64 kB / 0.6016 GB, free: 17.76 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.972e-05/0.5521, allocations: 50.53 kB / 0.6016 GB, free: 17.76 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006697/0.5588, allocations: 2.788 MB / 0.6044 GB, free: 16.82 MB / 430.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01934/0.5781, allocations: 9.866 MB / 0.614 GB, free: 11.32 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01109/0.5893, allocations: 4.178 MB / 0.6181 GB, free: 9.266 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004305/0.5936, allocations: 1.971 MB / 0.62 GB, free: 8.25 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003731/0.594, allocations: 41.16 kB / 0.62 GB, free: 8.238 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005376/0.5994, allocations: 2.226 MB / 0.6222 GB, free: 6.957 MB / 430.1 MB Notification: Performance of pre-optimization done (n=247): time 8.866e-06/0.5994, allocations: 4 kB / 0.6222 GB, free: 6.953 MB / 430.1 MB Notification: Performance of matching and sorting (n=247): time 0.1262/0.7256, allocations: 29.47 MB / 0.651 GB, free: 9.555 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001178/0.7258, allocations: 184.2 kB / 0.6512 GB, free: 9.336 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005106/0.7309, allocations: 2.273 MB / 0.6534 GB, free: 7.043 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009121/0.7318, allocations: 73.77 kB / 0.6535 GB, free: 6.965 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001188/0.733, allocations: 1.176 MB / 0.6546 GB, free: 5.777 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001922/0.735, allocations: 0.8704 MB / 0.6555 GB, free: 4.895 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001271/0.7363, allocations: 0.5539 MB / 0.656 GB, free: 4.332 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001229/0.7364, allocations: 305.1 kB / 0.6563 GB, free: 4.031 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004321/0.7407, allocations: 1.943 MB / 0.6582 GB, free: 2.086 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004647/0.7454, allocations: 2.326 MB / 0.6605 GB, free: 15.67 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.05595/0.8014, allocations: 14.05 MB / 0.6742 GB, free: 1.414 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.304e-05/0.8014, allocations: 0 / 0.6742 GB, free: 1.414 MB / 478.1 MB Notification: Performance of matching and sorting (n=413) (initialization): time 0.04277/0.8442, allocations: 12.28 MB / 0.6862 GB, free: 5.062 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000108/0.8443, allocations: 118.8 kB / 0.6863 GB, free: 4.922 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.63e-05/0.8444, allocations: 7.938 kB / 0.6863 GB, free: 4.914 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01896/0.8633, allocations: 5.321 MB / 0.6915 GB, free: 15.59 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003177/0.8665, allocations: 0.5617 MB / 0.692 GB, free: 15.03 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06347/0.93, allocations: 23.51 MB / 0.715 GB, free: 7.359 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005071/0.9351, allocations: 486.4 kB / 0.7155 GB, free: 6.883 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004699/0.9356, allocations: 120 kB / 0.7156 GB, free: 6.766 MB / 0.5137 GB Warning: Assuming fixed start value for the following 6 variables: order3_2.delta:VARIABLE(flow=false start = order3_2.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order3_2.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order3_2.e1q:VARIABLE(start = order3_2.e1q0 unit = "1" fixed = true ) "q-axis transient voltage" type: Real order2.delta:VARIABLE(flow=false start = order2.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order2.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order3_1.w:VARIABLE(flow=false start = 1.0 fixed = true ) "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 ($whenCondition2,$whenCondition1,$whenCondition4,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (325): * Single equations (assignments): 320 * Array equations: 0 * Algorithm blocks: 4 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(63,26)} Notification: Performance of prepare postOptimizeDAE: time 0.001364/0.937, allocations: 0.5339 MB / 0.7161 GB, free: 6.211 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007774/0.9378, allocations: 296.3 kB / 0.7164 GB, free: 5.918 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0415/0.9793, allocations: 11.9 MB / 0.728 GB, free: 9.973 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.331e-05/0.9794, allocations: 24.5 kB / 0.728 GB, free: 9.949 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.044e-05/0.9794, allocations: 20.66 kB / 0.7281 GB, free: 9.93 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.314e-05/0.9795, allocations: 11.95 kB / 0.7281 GB, free: 9.918 MB / 0.5294 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04692/1.026, allocations: 15.49 MB / 0.7432 GB, free: 10.26 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.082e-05/1.027, allocations: 1.562 kB / 0.7432 GB, free: 10.26 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001923/1.028, allocations: 251.6 kB / 0.7434 GB, free: 10.01 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01841/1.047, allocations: 5.284 MB / 0.7486 GB, free: 4.715 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006959/1.048, allocations: 55.92 kB / 0.7486 GB, free: 4.66 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3466/1.394, allocations: 24.96 MB / 0.773 GB, free: 163.9 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.768e-06/1.394, allocations: 0 / 0.773 GB, free: 163.9 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04467/1.439, allocations: 14.26 MB / 0.7869 GB, free: 163.4 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001496/1.441, allocations: 409.2 kB / 0.7873 GB, free: 163.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008507/1.441, allocations: 49.38 kB / 0.7874 GB, free: 163.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003726/1.445, allocations: 299.3 kB / 0.7877 GB, free: 163.3 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002362/1.447, allocations: 0.5841 MB / 0.7882 GB, free: 163.3 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002247/1.448, allocations: 65.23 kB / 0.7883 GB, free: 163.3 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.00297/1.451, allocations: 1.507 MB / 0.7898 GB, free: 163.2 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.012e-06/1.451, allocations: 0 / 0.7898 GB, free: 163.2 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.005049/1.456, allocations: 1.169 MB / 0.7909 GB, free: 163.1 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 16 (order3_2.delta,order3_2.w,order3_2.e1q,order2.delta,order2.w,order3_1.delta,order3_1.w,order3_1.e1q,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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (156): * Single equations (assignments): 151 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(66,22,7.7%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,6), (1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005356/1.456, allocations: 177.1 kB / 0.7911 GB, free: 163.1 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.02255/1.479, allocations: 6.802 MB / 0.7977 GB, free: 162.4 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 9.498e-06/1.479, allocations: 0.5625 kB / 0.7977 GB, free: 162.4 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.01477/1.494, allocations: 4.406 MB / 0.802 GB, free: 161.2 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003341/1.497, allocations: 268.6 kB / 0.8023 GB, free: 161 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01157/1.509, allocations: 5.337 MB / 0.8075 GB, free: 158.4 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001908/1.511, allocations: 1.806 MB / 0.8093 GB, free: 157.6 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001586/1.512, allocations: 260.8 kB / 0.8095 GB, free: 157.5 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006485/1.513, allocations: 170.3 kB / 0.8097 GB, free: 157.5 MB / 0.5606 GB Notification: Performance of SimCode: time 1.062e-06/1.513, allocations: 1.156 kB / 0.8097 GB, free: 157.5 MB / 0.5606 GB Notification: Performance of Templates: time 0.1002/1.613, allocations: 65.09 MB / 0.8732 GB, free: 105.6 MB / 0.5606 GB make -j1 -f OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII.makefile (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII.sim & ./OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII.pipe 2>&1)