Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.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.1.0-master/package.mo", uses=false) Using package OpenIPSL with version 3.1.0-dev (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/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.TwoArea.SixthOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.SixthOrder_AVRII") translateModel(OpenIPSL.Examples.PSATSystems.TwoArea.SixthOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.SixthOrder_AVRII") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001766/0.001767, allocations: 107.5 kB / 16.36 MB, free: 5.824 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.388/1.388, allocations: 222.9 MB / 240 MB, free: 4.469 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.00131/0.00131, allocations: 192.5 kB / 290.3 MB, free: 2.195 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5164/0.5164, allocations: 91.9 MB / 432.4 MB, free: 9.133 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001489/0.001489, allocations: 83.88 kB / 0.5033 GB, free: 6.926 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3453/0.3468, allocations: 71.25 MB / 0.5729 GB, free: 36.96 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoArea.SixthOrder_AVRII): time 0.01394/0.3608, allocations: 21.98 MB / 0.5943 GB, free: 21.56 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01054/0.3714, allocations: 4.918 MB / 0.5991 GB, free: 18 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003883/0.3753, allocations: 47.16 kB / 0.5992 GB, free: 18 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002929/0.3782, allocations: 0.8899 MB / 0.6 GB, free: 17.52 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007404/0.3857, allocations: 2.044 MB / 0.602 GB, free: 16.07 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00512/0.3908, allocations: 2.077 MB / 0.6041 GB, free: 14.98 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.01155/0.4024, allocations: 5.797 MB / 0.6097 GB, free: 12.03 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003526/0.4059, allocations: 1.317 MB / 0.611 GB, free: 11.4 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004376/0.4103, allocations: 2.35 MB / 0.6133 GB, free: 10.19 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004965/0.4153, allocations: 2.992 MB / 0.6162 GB, free: 8.676 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002289/0.4176, allocations: 446.6 kB / 0.6167 GB, free: 8.676 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003393/0.4211, allocations: 0.5893 MB / 0.6172 GB, free: 8.633 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002373/0.4235, allocations: 1.167 MB / 0.6184 GB, free: 7.836 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00684/0.4303, allocations: 2.637 MB / 0.621 GB, free: 6.066 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0106/0.4409, allocations: 6.288 MB / 0.6271 GB, free: 3.16 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.152e-06/0.441, allocations: 1.219 kB / 0.6271 GB, free: 3.16 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.441, allocations: 0 / 0.6271 GB, free: 3.16 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0003226/0.4413, allocations: 0 / 0.6271 GB, free: 3.16 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: 895 * Number of variables: 895 Notification: Performance of Generate backend data structure: time 0.0368/0.4781, allocations: 9.243 MB / 0.6361 GB, free: 13.57 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.603e-05/0.4782, allocations: 12.03 kB / 0.6361 GB, free: 13.55 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02766/0.5059, allocations: 4.012 MB / 0.6401 GB, free: 9.531 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007492/0.5134, allocations: 2.698 MB / 0.6427 GB, free: 6.75 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001148/0.5146, allocations: 0.9612 MB / 0.6436 GB, free: 5.652 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001802/0.5164, allocations: 344 kB / 0.644 GB, free: 5.316 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01488/0.5313, allocations: 4.751 MB / 0.6486 GB, free: 0.5352 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001586/0.5315, allocations: 0 / 0.6486 GB, free: 0.5352 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001309/0.5328, allocations: 144 kB / 0.6487 GB, free: 404 kB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.141e-05/0.5329, allocations: 84 kB / 0.6488 GB, free: 320 kB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01201/0.5449, allocations: 4.267 MB / 0.653 GB, free: 12.04 MB / 462.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.04272/0.5877, allocations: 18.29 MB / 0.6708 GB, free: 8.566 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01312/0.6008, allocations: 5.033 MB / 0.6758 GB, free: 3.449 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006767/0.6077, allocations: 2.805 MB / 0.6785 GB, free: 0.6367 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000852/0.6086, allocations: 70.91 kB / 0.6786 GB, free: 0.5664 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.008254/0.6168, allocations: 3.197 MB / 0.6817 GB, free: 13.33 MB / 494.1 MB Notification: Performance of pre-optimization done (n=385): time 9.387e-06/0.6169, allocations: 0 / 0.6817 GB, free: 13.33 MB / 494.1 MB Notification: Performance of matching and sorting (n=385): time 0.2864/0.9033, allocations: 66.82 MB / 0.7469 GB, free: 10.31 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001139/0.9035, allocations: 141.8 kB / 0.7471 GB, free: 10.15 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006606/0.9101, allocations: 3.263 MB / 0.7503 GB, free: 6.867 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.001163/0.9113, allocations: 97.69 kB / 0.7504 GB, free: 6.766 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.001933/0.9132, allocations: 1.967 MB / 0.7523 GB, free: 4.785 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.002547/0.9158, allocations: 1.328 MB / 0.7536 GB, free: 3.438 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003916/0.9197, allocations: 0.6862 MB / 0.7542 GB, free: 2.738 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001204/0.9198, allocations: 313 kB / 0.7545 GB, free: 2.43 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006162/0.926, allocations: 2.62 MB / 0.7571 GB, free: 15.8 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006434/0.9325, allocations: 3.249 MB / 0.7603 GB, free: 12.33 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.3433/1.276, allocations: 19.12 MB / 0.7789 GB, free: 153.7 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.748e-05/1.276, allocations: 2.781 kB / 0.7789 GB, free: 153.7 MB / 0.5606 GB Notification: Performance of matching and sorting (n=546) (initialization): time 0.05778/1.334, allocations: 17.24 MB / 0.7958 GB, free: 151.7 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 7.975e-05/1.334, allocations: 63.72 kB / 0.7958 GB, free: 151.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.004e-05/1.334, allocations: 14.69 kB / 0.7959 GB, free: 151.7 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02667/1.361, allocations: 7.305 MB / 0.803 GB, free: 150.4 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003643/1.364, allocations: 0.6823 MB / 0.8037 GB, free: 150.3 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08536/1.45, allocations: 33.85 MB / 0.8367 GB, free: 132.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006325/1.456, allocations: 0.6225 MB / 0.8373 GB, free: 132.2 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001114/1.457, allocations: 156 kB / 0.8375 GB, free: 132 MB / 0.5606 GB 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 order3.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order3.delta:VARIABLE(flow=false start = order3.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order3.e1q:VARIABLE(start = order3.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: 65 * 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 (409): * Single equations (assignments): 406 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(92,46)} Notification: Performance of prepare postOptimizeDAE: time 0.003303/1.46, allocations: 0.6782 MB / 0.8381 GB, free: 131.3 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001838/1.462, allocations: 462.3 kB / 0.8386 GB, free: 130.9 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05114/1.513, allocations: 16.88 MB / 0.8551 GB, free: 113.9 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.031e-05/1.513, allocations: 36 kB / 0.8551 GB, free: 113.9 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001038/1.514, allocations: 28 kB / 0.8551 GB, free: 113.8 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001172/1.514, allocations: 23.92 kB / 0.8551 GB, free: 113.8 MB / 0.5606 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.05919/1.573, allocations: 21.91 MB / 0.8765 GB, free: 91.87 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.157e-05/1.573, allocations: 0 / 0.8765 GB, free: 91.87 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002486/1.575, allocations: 395.5 kB / 0.8769 GB, free: 91.48 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02323/1.599, allocations: 7.341 MB / 0.8841 GB, free: 84.13 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001307/1.6, allocations: 79.95 kB / 0.8842 GB, free: 84.05 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.07789/1.678, allocations: 31.83 MB / 0.9152 GB, free: 51.92 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.57e-06/1.678, allocations: 0 / 0.9152 GB, free: 51.92 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05715/1.735, allocations: 20.28 MB / 0.935 GB, free: 31.55 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001794/1.737, allocations: 0.5648 MB / 0.9356 GB, free: 30.96 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001908/1.739, allocations: 64 kB / 0.9357 GB, free: 30.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005206/1.744, allocations: 379.5 kB / 0.936 GB, free: 30.53 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003812/1.748, allocations: 0.7843 MB / 0.9368 GB, free: 29.75 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008178/1.749, allocations: 99.98 kB / 0.9369 GB, free: 29.65 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.003605/1.753, allocations: 2.149 MB / 0.939 GB, free: 27.5 MB / 0.5606 GB Notification: Performance of sort global known variables: time 3.91e-07/1.753, allocations: 0 / 0.939 GB, free: 27.5 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.007067/1.76, allocations: 1.821 MB / 0.9408 GB, free: 25.68 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 13 (order3.delta,order3.w,order3.e1q,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 (249): * Single equations (assignments): 246 * 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 {(98,38,5.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001016/1.761, allocations: 198.5 kB / 0.941 GB, free: 25.48 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.02463/1.785, allocations: 9.364 MB / 0.9501 GB, free: 16.06 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 6.643e-06/1.785, allocations: 0 / 0.9501 GB, free: 16.06 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.01829/1.804, allocations: 6.213 MB / 0.9562 GB, free: 9.805 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006294/1.81, allocations: 388.5 kB / 0.9565 GB, free: 9.422 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01895/1.829, allocations: 8.003 MB / 0.9643 GB, free: 1.418 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002776/1.832, allocations: 2.459 MB / 0.9668 GB, free: 14.92 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.00174/1.834, allocations: 375.2 kB / 0.9671 GB, free: 14.55 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009124/1.834, allocations: 255.4 kB / 0.9674 GB, free: 14.3 MB / 0.5762 GB Notification: Performance of SimCode: time 8.51e-07/1.834, allocations: 0 / 0.9674 GB, free: 14.3 MB / 0.5762 GB Notification: Performance of Templates: time 0.3889/2.223, allocations: 93.31 MB / 1.058 GB, free: 157 MB / 0.5919 GB make -j1 -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.SixthOrder_AVRII.makefile (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.SixthOrder_AVRII.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.SixthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.SixthOrder_AVRII.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.SixthOrder_AVRII.sim & ./OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.SixthOrder_AVRII -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.SixthOrder_AVRII.pipe 2>&1)