Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_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.TwoAreaOld.FifthOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII") translateModel(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009656/0.0009653, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.21/1.21, allocations: 222.9 MB / 238.8 MB, free: 4.84 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.001227/0.001227, allocations: 188.4 kB / 289.1 MB, free: 2.559 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4011/0.4011, allocations: 78.53 MB / 417.8 MB, free: 3.352 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001236/0.001236, allocations: 71.88 kB / 496.8 MB, free: 6.879 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1173/0.1186, allocations: 68.18 MB / 0.5517 GB, free: 2.645 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII): time 0.1894/0.308, allocations: 6.941 MB / 0.5585 GB, free: 35.89 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003289/0.3114, allocations: 2.035 MB / 0.5605 GB, free: 35.34 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008338/0.3122, allocations: 14.78 kB / 0.5605 GB, free: 35.33 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006073/0.3128, allocations: 187.6 kB / 0.5607 GB, free: 35.32 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001602/0.3145, allocations: 0.7267 MB / 0.5614 GB, free: 35.17 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001045/0.3155, allocations: 0.5887 MB / 0.5619 GB, free: 35.09 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001065/0.3166, allocations: 1.549 MB / 0.5635 GB, free: 35.01 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003487/0.317, allocations: 290.2 kB / 0.5637 GB, free: 34.96 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005522/0.3175, allocations: 0.61 MB / 0.5643 GB, free: 34.82 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005988/0.3182, allocations: 0.806 MB / 0.5651 GB, free: 34.62 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001351/0.3183, allocations: 80.72 kB / 0.5652 GB, free: 34.62 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003908/0.3187, allocations: 207.3 kB / 0.5654 GB, free: 34.61 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001958/0.3189, allocations: 286.4 kB / 0.5657 GB, free: 34.54 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003798/0.3193, allocations: 0.6365 MB / 0.5663 GB, free: 34.28 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009436/0.3202, allocations: 1.643 MB / 0.5679 GB, free: 33.89 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.287e-06/0.3202, allocations: 4.688 kB / 0.5679 GB, free: 33.89 MB / 430.1 MB Notification: Performance of FrontEnd: time 6.32e-07/0.3203, allocations: 0 / 0.5679 GB, free: 33.89 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.264e-05/0.3203, allocations: 0 / 0.5679 GB, free: 33.89 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: 191 * Number of variables: 191 Notification: Performance of Generate backend data structure: time 0.008004/0.3283, allocations: 2.749 MB / 0.5706 GB, free: 32.91 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.647e-05/0.3283, allocations: 10.91 kB / 0.5706 GB, free: 32.91 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004595/0.3329, allocations: 0.7798 MB / 0.5713 GB, free: 32.82 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001187/0.3341, allocations: 0.9198 MB / 0.5722 GB, free: 32.39 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002039/0.3343, allocations: 257.4 kB / 0.5725 GB, free: 32.2 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00015/0.3345, allocations: 84.66 kB / 0.5726 GB, free: 32.2 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001779/0.3363, allocations: 1.097 MB / 0.5736 GB, free: 32.12 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.687e-05/0.3363, allocations: 3.938 kB / 0.5736 GB, free: 32.12 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.642e-05/0.3364, allocations: 32.34 kB / 0.5737 GB, free: 32.11 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.23e-05/0.3364, allocations: 18.34 kB / 0.5737 GB, free: 32.11 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001721/0.3382, allocations: 1.001 MB / 0.5747 GB, free: 32.1 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.00526/0.3434, allocations: 3.879 MB / 0.5785 GB, free: 30.54 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006644/0.3501, allocations: 2.393 MB / 0.5808 GB, free: 29.71 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001258/0.3514, allocations: 0.686 MB / 0.5815 GB, free: 29.43 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001081/0.3515, allocations: 17.66 kB / 0.5815 GB, free: 29.43 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001519/0.353, allocations: 0.8335 MB / 0.5823 GB, free: 29.1 MB / 430.1 MB Notification: Performance of pre-optimization done (n=97): time 2.624e-06/0.353, allocations: 0 / 0.5823 GB, free: 29.1 MB / 430.1 MB Notification: Performance of matching and sorting (n=97): time 0.02738/0.3804, allocations: 7.206 MB / 0.5893 GB, free: 27.71 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.698e-05/0.3805, allocations: 120 kB / 0.5894 GB, free: 27.58 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001821/0.3823, allocations: 1.127 MB / 0.5905 GB, free: 27.11 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002385/0.3826, allocations: 46.41 kB / 0.5906 GB, free: 27.06 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003069/0.3829, allocations: 0.4951 MB / 0.5911 GB, free: 26.66 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000325/0.3832, allocations: 367.2 kB / 0.5914 GB, free: 26.38 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004978/0.3837, allocations: 293 kB / 0.5917 GB, free: 26.25 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 3.368e-05/0.3838, allocations: 301.6 kB / 0.592 GB, free: 25.95 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001522/0.3853, allocations: 0.7851 MB / 0.5928 GB, free: 25.65 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001668/0.387, allocations: 0.9495 MB / 0.5937 GB, free: 25.21 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02358/0.4106, allocations: 5.796 MB / 0.5993 GB, free: 23.44 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.458e-05/0.4106, allocations: 3.844 kB / 0.5994 GB, free: 23.44 MB / 430.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.01375/0.4244, allocations: 4.453 MB / 0.6037 GB, free: 22.22 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.674e-05/0.4245, allocations: 63.5 kB / 0.6038 GB, free: 22.15 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.307e-05/0.4245, allocations: 3.625 kB / 0.6038 GB, free: 22.15 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00563/0.4301, allocations: 1.634 MB / 0.6054 GB, free: 21.62 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001394/0.4315, allocations: 292.5 kB / 0.6056 GB, free: 21.56 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01646/0.448, allocations: 7.938 MB / 0.6134 GB, free: 16.05 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001782/0.4498, allocations: 199.3 kB / 0.6136 GB, free: 15.86 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001112/0.4499, allocations: 63.97 kB / 0.6136 GB, free: 15.8 MB / 430.1 MB Warning: Assuming fixed start value for the following 5 variables: order5.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order2.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order2.delta:VARIABLE(flow=false start = order2.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order5.delta:VARIABLE(flow=false start = order5.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order5.e1q:VARIABLE(start = order5.e1q0 unit = "1" fixed = true ) "q-axis transient voltage" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 2 ($whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (167): * Single equations (assignments): 164 * Array equations: 0 * Algorithm blocks: 2 * 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): 1 system {(20,14,23.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004989/0.4504, allocations: 300 kB / 0.6139 GB, free: 15.49 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001716/0.4506, allocations: 126.4 kB / 0.6141 GB, free: 15.37 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01116/0.4618, allocations: 3.911 MB / 0.6179 GB, free: 11.43 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.424e-05/0.4618, allocations: 16 kB / 0.6179 GB, free: 11.41 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.839e-06/0.4619, allocations: 4 kB / 0.6179 GB, free: 11.41 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.67e-05/0.4619, allocations: 3.984 kB / 0.6179 GB, free: 11.41 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 postOpt removeSimpleEquations (simulation): time 0.01281/0.4747, allocations: 5.505 MB / 0.6233 GB, free: 5.793 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.466e-05/0.4748, allocations: 11.92 kB / 0.6233 GB, free: 5.781 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006767/0.4755, allocations: 99.84 kB / 0.6234 GB, free: 5.684 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004873/0.4803, allocations: 1.592 MB / 0.6249 GB, free: 4.086 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002059/0.4806, allocations: 25.67 kB / 0.625 GB, free: 4.062 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01753/0.4981, allocations: 8.809 MB / 0.6336 GB, free: 10.98 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.876e-06/0.4982, allocations: 0 / 0.6336 GB, free: 10.98 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01384/0.512, allocations: 4.777 MB / 0.6382 GB, free: 6.168 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004791/0.5125, allocations: 227.3 kB / 0.6384 GB, free: 5.926 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004087/0.513, allocations: 20 kB / 0.6385 GB, free: 5.906 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001382/0.5144, allocations: 111.9 kB / 0.6386 GB, free: 5.797 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006353/0.515, allocations: 188.6 kB / 0.6387 GB, free: 5.609 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001223/0.5151, allocations: 32.92 kB / 0.6388 GB, free: 5.578 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001183/0.5163, allocations: 0.7631 MB / 0.6395 GB, free: 4.809 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.5163, allocations: 0 / 0.6395 GB, free: 4.809 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001693/0.518, allocations: 491.4 kB / 0.64 GB, free: 4.328 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 11 (order2.delta,order2.w,order5.delta,order5.w,order5.e1q,order5.e2q,order5.e2d,aVRTypeII.ExcitationSystem.x_scaled[1],aVRTypeII.derivativeBlock.x,aVRTypeII.firstOrder2.y,aVRTypeII.simpleLagLim.state) * Number of discrete variables: 2 ($whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (65): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(18,14,25.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002983/0.5183, allocations: 131.2 kB / 0.6401 GB, free: 4.188 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006461/0.5248, allocations: 2.592 MB / 0.6426 GB, free: 1.559 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.919e-06/0.5249, allocations: 4.062 kB / 0.6426 GB, free: 1.555 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004164/0.529, allocations: 1.587 MB / 0.6442 GB, free: 15.93 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001284/0.5303, allocations: 120.5 kB / 0.6443 GB, free: 15.82 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004641/0.535, allocations: 2.79 MB / 0.647 GB, free: 13.05 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00068/0.5357, allocations: 1.128 MB / 0.6481 GB, free: 11.89 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0005278/0.5362, allocations: 118.9 kB / 0.6483 GB, free: 11.77 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003215/0.5366, allocations: 79.41 kB / 0.6483 GB, free: 11.7 MB / 462.1 MB Notification: Performance of SimCode: time 6.41e-07/0.5366, allocations: 1.219 kB / 0.6483 GB, free: 11.7 MB / 462.1 MB Notification: Performance of Templates: time 0.03467/0.5713, allocations: 22.1 MB / 0.6699 GB, free: 5.789 MB / 478.1 MB make -j1 -f OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII.makefile (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII.sim & ./OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII.pipe 2>&1)