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.001162/0.001162, allocations: 102.9 kB / 16.27 MB, free: 5.879 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.219/1.219, allocations: 222.9 MB / 239.9 MB, free: 4.613 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.001201/0.001201, allocations: 184.5 kB / 290.2 MB, free: 2.344 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4165/0.4165, allocations: 78.53 MB / 418.9 MB, free: 3.285 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00138/0.00138, allocations: 83.88 kB / 498.1 MB, free: 6.473 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1042/0.1056, allocations: 68.18 MB / 0.553 GB, free: 2.25 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII): time 0.1864/0.292, allocations: 13.58 MB / 0.5663 GB, free: 31.47 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.006608/0.2986, allocations: 3.456 MB / 0.5697 GB, free: 30.4 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00168/0.3003, allocations: 27.97 kB / 0.5697 GB, free: 30.4 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001118/0.3015, allocations: 0.5648 MB / 0.5702 GB, free: 30.11 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003032/0.3045, allocations: 1.413 MB / 0.5716 GB, free: 29.39 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002572/0.3071, allocations: 1.503 MB / 0.5731 GB, free: 29.21 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.002752/0.3099, allocations: 3.689 MB / 0.5767 GB, free: 28.37 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000887/0.3108, allocations: 0.9001 MB / 0.5776 GB, free: 28.16 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001391/0.3122, allocations: 1.52 MB / 0.579 GB, free: 27.74 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001351/0.3135, allocations: 1.955 MB / 0.581 GB, free: 27.21 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003294/0.3139, allocations: 284.4 kB / 0.5812 GB, free: 27.21 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006467/0.3145, allocations: 435.3 kB / 0.5816 GB, free: 27.2 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004115/0.315, allocations: 0.7622 MB / 0.5824 GB, free: 26.75 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008674/0.3158, allocations: 1.632 MB / 0.584 GB, free: 25.64 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002375/0.3182, allocations: 3.918 MB / 0.5878 GB, free: 23.82 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.3182, allocations: 0 / 0.5878 GB, free: 23.82 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.3182, allocations: 4 kB / 0.5878 GB, free: 23.82 MB / 430.1 MB Notification: Performance of Transformations before backend: time 3.98e-05/0.3183, allocations: 1.125 kB / 0.5878 GB, free: 23.82 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.02034/0.3386, allocations: 6.582 MB / 0.5942 GB, free: 21.19 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.6e-05/0.3387, allocations: 9.219 kB / 0.5942 GB, free: 21.19 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01414/0.3528, allocations: 2.275 MB / 0.5965 GB, free: 20.75 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003212/0.3561, allocations: 1.871 MB / 0.5983 GB, free: 19.6 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005959/0.3567, allocations: 0.7308 MB / 0.599 GB, free: 18.94 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003874/0.3571, allocations: 215.4 kB / 0.5992 GB, free: 18.87 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005716/0.3628, allocations: 3.024 MB / 0.6022 GB, free: 17.72 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.191e-05/0.3628, allocations: 4 kB / 0.6022 GB, free: 17.72 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00023/0.3631, allocations: 86.06 kB / 0.6023 GB, free: 17.65 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.65e-05/0.3631, allocations: 49.77 kB / 0.6023 GB, free: 17.65 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005543/0.3687, allocations: 2.787 MB / 0.605 GB, free: 16.71 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.0171/0.3858, allocations: 9.863 MB / 0.6147 GB, free: 11.22 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01025/0.3961, allocations: 4.187 MB / 0.6187 GB, free: 9.285 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003901/0.4, allocations: 1.968 MB / 0.6207 GB, free: 8.273 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002584/0.4003, allocations: 47.58 kB / 0.6207 GB, free: 8.254 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004079/0.4043, allocations: 2.222 MB / 0.6229 GB, free: 6.977 MB / 430.1 MB Notification: Performance of pre-optimization done (n=247): time 4.007e-06/0.4044, allocations: 0 / 0.6229 GB, free: 6.977 MB / 430.1 MB Notification: Performance of matching and sorting (n=247): time 0.1201/0.5244, allocations: 29.47 MB / 0.6517 GB, free: 9.586 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.104e-05/0.5245, allocations: 188.3 kB / 0.6518 GB, free: 9.363 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003152/0.5277, allocations: 2.273 MB / 0.6541 GB, free: 7.07 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005028/0.5282, allocations: 73.69 kB / 0.6541 GB, free: 6.992 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007787/0.529, allocations: 1.176 MB / 0.6553 GB, free: 5.805 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009306/0.5299, allocations: 0.8665 MB / 0.6561 GB, free: 4.926 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009931/0.5309, allocations: 0.5539 MB / 0.6567 GB, free: 4.363 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 8.107e-05/0.531, allocations: 309.1 kB / 0.657 GB, free: 4.059 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004014/0.5351, allocations: 1.951 MB / 0.6589 GB, free: 2.105 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004332/0.5394, allocations: 2.317 MB / 0.6611 GB, free: 15.7 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0519/0.5913, allocations: 14.05 MB / 0.6748 GB, free: 1.441 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.348e-05/0.5914, allocations: 4 kB / 0.6749 GB, free: 1.438 MB / 478.1 MB Notification: Performance of matching and sorting (n=413) (initialization): time 0.03919/0.6306, allocations: 12.28 MB / 0.6868 GB, free: 5.086 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.154e-05/0.6307, allocations: 119.4 kB / 0.687 GB, free: 4.945 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2e-05/0.6307, allocations: 11.94 kB / 0.687 GB, free: 4.934 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01763/0.6483, allocations: 5.321 MB / 0.6922 GB, free: 15.61 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002735/0.6511, allocations: 0.5587 MB / 0.6927 GB, free: 15.05 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05785/0.709, allocations: 23.51 MB / 0.7157 GB, free: 7.383 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00445/0.7134, allocations: 490.4 kB / 0.7161 GB, free: 6.902 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005781/0.714, allocations: 116 kB / 0.7162 GB, free: 6.789 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.001486/0.7155, allocations: 0.54 MB / 0.7168 GB, free: 6.23 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008064/0.7164, allocations: 292.3 kB / 0.7171 GB, free: 5.941 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0394/0.7558, allocations: 11.9 MB / 0.7287 GB, free: 9.996 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.774e-05/0.7558, allocations: 28 kB / 0.7287 GB, free: 9.969 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.988e-05/0.7559, allocations: 19.94 kB / 0.7287 GB, free: 9.949 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.441e-05/0.7559, allocations: 15.95 kB / 0.7287 GB, free: 9.934 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.04471/0.8006, allocations: 15.5 MB / 0.7439 GB, free: 10.27 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.714e-05/0.8007, allocations: 0 / 0.7439 GB, free: 10.27 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001583/0.8023, allocations: 247.6 kB / 0.7441 GB, free: 10.03 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01773/0.82, allocations: 5.284 MB / 0.7493 GB, free: 4.734 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005762/0.8207, allocations: 54.05 kB / 0.7493 GB, free: 4.684 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2573/1.078, allocations: 24.97 MB / 0.7737 GB, free: 163.6 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/1.078, allocations: 1.312 kB / 0.7737 GB, free: 163.6 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04052/1.119, allocations: 14.25 MB / 0.7876 GB, free: 163.2 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008737/1.119, allocations: 406.7 kB / 0.788 GB, free: 163.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004743/1.12, allocations: 50.5 kB / 0.7881 GB, free: 163.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002704/1.123, allocations: 298.4 kB / 0.7883 GB, free: 163.1 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001779/1.124, allocations: 0.5812 MB / 0.7889 GB, free: 163.1 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001869/1.125, allocations: 65.78 kB / 0.789 GB, free: 163.1 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.001993/1.127, allocations: 1.509 MB / 0.7904 GB, free: 163 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.8e-07/1.127, allocations: 0 / 0.7904 GB, free: 163 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.00279/1.129, allocations: 1.171 MB / 0.7916 GB, free: 162.9 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.0003446/1.13, allocations: 174.7 kB / 0.7918 GB, free: 162.8 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01856/1.148, allocations: 6.803 MB / 0.7984 GB, free: 162.2 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 4.519e-06/1.148, allocations: 0 / 0.7984 GB, free: 162.2 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.01235/1.161, allocations: 4.39 MB / 0.8027 GB, free: 161 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001942/1.163, allocations: 270.6 kB / 0.8029 GB, free: 160.8 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008484/1.171, allocations: 5.399 MB / 0.8082 GB, free: 158.2 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00128/1.173, allocations: 1.805 MB / 0.81 GB, free: 157.4 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007934/1.173, allocations: 186.2 kB / 0.8102 GB, free: 157.3 MB / 0.5606 GB Notification: Performance of SimCode: time 7.21e-07/1.173, allocations: 0 / 0.8102 GB, free: 157.3 MB / 0.5606 GB Notification: Performance of Templates: time 0.05281/1.226, allocations: 63.8 MB / 0.8725 GB, free: 107 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)