Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_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.SixthOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII") translateModel(OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00102/0.001025, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.204/1.204, allocations: 222.9 MB / 238.9 MB, free: 4.73 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.001168/0.001168, allocations: 188.5 kB / 289.1 MB, free: 2.488 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4212/0.4212, allocations: 78.51 MB / 417.8 MB, free: 3.367 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00117/0.00117, allocations: 67.89 kB / 496.8 MB, free: 6.848 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1084/0.1096, allocations: 68.18 MB / 0.5517 GB, free: 2.625 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII): time 0.2012/0.3108, allocations: 7.003 MB / 0.5585 GB, free: 35.95 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003471/0.3143, allocations: 2.056 MB / 0.5605 GB, free: 35.4 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004684/0.3149, allocations: 9.969 kB / 0.5606 GB, free: 35.4 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006329/0.3155, allocations: 185.5 kB / 0.5607 GB, free: 35.39 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001529/0.3171, allocations: 0.7303 MB / 0.5614 GB, free: 35.23 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009977/0.3181, allocations: 0.6025 MB / 0.562 GB, free: 35.15 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001064/0.3191, allocations: 1.576 MB / 0.5636 GB, free: 35.07 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003413/0.3195, allocations: 291.7 kB / 0.5638 GB, free: 35.03 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005289/0.32, allocations: 0.6161 MB / 0.5645 GB, free: 34.88 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006234/0.3207, allocations: 0.8255 MB / 0.5653 GB, free: 34.69 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00015/0.3208, allocations: 82.19 kB / 0.5653 GB, free: 34.69 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003728/0.3212, allocations: 204 kB / 0.5655 GB, free: 34.68 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002247/0.3214, allocations: 298.8 kB / 0.5658 GB, free: 34.6 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003989/0.3218, allocations: 0.6525 MB / 0.5665 GB, free: 34.34 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009986/0.3228, allocations: 1.658 MB / 0.5681 GB, free: 33.96 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.3229, allocations: 3.938 kB / 0.5681 GB, free: 33.96 MB / 430.1 MB Notification: Performance of FrontEnd: time 7.52e-07/0.3229, allocations: 2.906 kB / 0.5681 GB, free: 33.96 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.305e-05/0.3229, allocations: 0 / 0.5681 GB, free: 33.96 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: 192 * Number of variables: 192 Notification: Performance of Generate backend data structure: time 0.007954/0.3308, allocations: 2.777 MB / 0.5708 GB, free: 32.97 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.494e-05/0.3309, allocations: 12.34 kB / 0.5708 GB, free: 32.97 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004525/0.3354, allocations: 0.7784 MB / 0.5716 GB, free: 32.88 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001225/0.3367, allocations: 0.9193 MB / 0.5725 GB, free: 32.46 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002176/0.3369, allocations: 260.8 kB / 0.5727 GB, free: 32.27 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000151/0.3371, allocations: 90.75 kB / 0.5728 GB, free: 32.27 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001873/0.3389, allocations: 1.116 MB / 0.5739 GB, free: 32.18 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.75e-05/0.339, allocations: 0 / 0.5739 GB, free: 32.18 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.046e-05/0.3391, allocations: 32.16 kB / 0.5739 GB, free: 32.18 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.36e-05/0.3391, allocations: 18.84 kB / 0.5739 GB, free: 32.18 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001751/0.3408, allocations: 1.001 MB / 0.5749 GB, free: 32.16 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.005306/0.3462, allocations: 3.922 MB / 0.5787 GB, free: 30.57 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006626/0.3528, allocations: 2.411 MB / 0.5811 GB, free: 29.72 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001258/0.3541, allocations: 0.6977 MB / 0.5818 GB, free: 29.44 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001059/0.3542, allocations: 15.3 kB / 0.5818 GB, free: 29.44 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001447/0.3556, allocations: 0.8305 MB / 0.5826 GB, free: 29.12 MB / 430.1 MB Notification: Performance of pre-optimization done (n=98): time 2.485e-06/0.3557, allocations: 1.188 kB / 0.5826 GB, free: 29.12 MB / 430.1 MB Notification: Performance of matching and sorting (n=98): time 0.02671/0.3824, allocations: 7.089 MB / 0.5895 GB, free: 27.71 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.856e-05/0.3825, allocations: 119.2 kB / 0.5896 GB, free: 27.58 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001881/0.3844, allocations: 1.137 MB / 0.5907 GB, free: 27.11 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002158/0.3846, allocations: 47.03 kB / 0.5908 GB, free: 27.06 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003184/0.3849, allocations: 0.4962 MB / 0.5913 GB, free: 26.66 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003553/0.3853, allocations: 366.7 kB / 0.5916 GB, free: 26.38 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005353/0.3858, allocations: 299.2 kB / 0.5919 GB, free: 26.25 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 5.132e-05/0.3859, allocations: 305.6 kB / 0.5922 GB, free: 25.95 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001655/0.3875, allocations: 0.7981 MB / 0.593 GB, free: 25.64 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001708/0.3893, allocations: 0.9688 MB / 0.5939 GB, free: 25.2 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02483/0.4141, allocations: 5.926 MB / 0.5997 GB, free: 23.39 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.271e-05/0.4142, allocations: 2.562 kB / 0.5997 GB, free: 23.39 MB / 430.1 MB Notification: Performance of matching and sorting (n=204) (initialization): time 0.01372/0.4279, allocations: 4.506 MB / 0.6041 GB, free: 22.16 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.909e-05/0.428, allocations: 61.62 kB / 0.6042 GB, free: 22.1 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.393e-05/0.428, allocations: 6.719 kB / 0.6042 GB, free: 22.09 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005855/0.4339, allocations: 1.668 MB / 0.6058 GB, free: 21.42 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00154/0.4354, allocations: 291.3 kB / 0.6061 GB, free: 21.36 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01668/0.4521, allocations: 7.94 MB / 0.6138 GB, free: 15.51 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002089/0.4543, allocations: 214.6 kB / 0.6141 GB, free: 15.3 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001142/0.4544, allocations: 59.97 kB / 0.6141 GB, free: 15.24 MB / 430.1 MB Warning: Assuming fixed start value for the following 4 variables: order6.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 order6.delta:VARIABLE(flow=false start = order6.delta0 unit = "rad" fixed = true ) "Rotor angle" 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 (171): * Single equations (assignments): 168 * 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.0006121/0.455, allocations: 306.8 kB / 0.6144 GB, free: 14.93 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001901/0.4552, allocations: 126.4 kB / 0.6145 GB, free: 14.8 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01104/0.4662, allocations: 3.92 MB / 0.6184 GB, free: 10.86 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.352e-05/0.4663, allocations: 8.797 kB / 0.6184 GB, free: 10.85 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.518e-06/0.4663, allocations: 8 kB / 0.6184 GB, free: 10.84 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.332e-05/0.4663, allocations: 7.969 kB / 0.6184 GB, free: 10.83 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.01235/0.4787, allocations: 5.552 MB / 0.6238 GB, free: 5.168 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.568e-06/0.4787, allocations: 0 / 0.6238 GB, free: 5.168 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006557/0.4794, allocations: 103.9 kB / 0.6239 GB, free: 5.066 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004641/0.4841, allocations: 1.601 MB / 0.6255 GB, free: 3.461 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001534/0.4842, allocations: 28 kB / 0.6255 GB, free: 3.434 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0167/0.5009, allocations: 8.783 MB / 0.6341 GB, free: 10.38 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.105e-06/0.501, allocations: 4 kB / 0.6341 GB, free: 10.38 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01364/0.5146, allocations: 4.805 MB / 0.6388 GB, free: 5.535 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000507/0.5152, allocations: 231.2 kB / 0.639 GB, free: 5.289 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003308/0.5155, allocations: 20 kB / 0.639 GB, free: 5.27 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001347/0.5169, allocations: 107.9 kB / 0.6391 GB, free: 5.164 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005925/0.5175, allocations: 192.7 kB / 0.6393 GB, free: 4.977 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.84e-05/0.5176, allocations: 29.94 kB / 0.6393 GB, free: 4.949 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001353/0.519, allocations: 0.7712 MB / 0.6401 GB, free: 4.172 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.519, allocations: 0 / 0.6401 GB, free: 4.172 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001768/0.5207, allocations: 487.6 kB / 0.6405 GB, free: 3.695 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 12 (order2.delta,order2.w,order6.delta,order6.w,order6.e1q,order6.e1d,order6.e2q,order6.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 (66): * Single equations (assignments): 63 * 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 {(20,12,23.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003097/0.5211, allocations: 145.7 kB / 0.6407 GB, free: 3.543 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006505/0.5276, allocations: 2.626 MB / 0.6432 GB, free: 0.8828 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/0.5276, allocations: 0 / 0.6432 GB, free: 0.8828 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003959/0.5316, allocations: 1.605 MB / 0.6448 GB, free: 15.24 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001185/0.5328, allocations: 119.3 kB / 0.6449 GB, free: 15.12 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004696/0.5375, allocations: 2.885 MB / 0.6477 GB, free: 12.26 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007201/0.5382, allocations: 1.132 MB / 0.6488 GB, free: 11.09 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.000512/0.5387, allocations: 120.2 kB / 0.649 GB, free: 10.98 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003196/0.5391, allocations: 79.41 kB / 0.649 GB, free: 10.9 MB / 462.1 MB Notification: Performance of SimCode: time 4.21e-07/0.5391, allocations: 0.9375 kB / 0.649 GB, free: 10.9 MB / 462.1 MB Notification: Performance of Templates: time 0.03322/0.5723, allocations: 22.4 MB / 0.6709 GB, free: 4.691 MB / 478.1 MB make -j1 -f OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII.makefile (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII.sim & ./OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII.pipe 2>&1)