Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.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.TwoAreaOld.ThirdOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII") translateModel(OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001152/0.001152, allocations: 108 kB / 15.6 MB, free: 132 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.369/1.369, allocations: 222.9 MB / 239.2 MB, free: 4.582 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.001615/0.001615, allocations: 184.5 kB / 289.5 MB, free: 2.305 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4565/0.4565, allocations: 78.52 MB / 418.2 MB, free: 3.164 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001853/0.001853, allocations: 79.88 kB / 497.4 MB, free: 6.41 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1433/0.1452, allocations: 68.18 MB / 0.5524 GB, free: 2.184 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII): time 0.2428/0.388, allocations: 6.501 MB / 0.5587 GB, free: 36.2 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003935/0.392, allocations: 1.95 MB / 0.5606 GB, free: 35.66 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008924/0.3929, allocations: 14.09 kB / 0.5606 GB, free: 35.66 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007747/0.3938, allocations: 234 kB / 0.5608 GB, free: 35.65 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001858/0.3956, allocations: 0.7959 MB / 0.5616 GB, free: 35.5 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001185/0.3968, allocations: 0.6264 MB / 0.5622 GB, free: 35.42 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001415/0.3983, allocations: 1.569 MB / 0.5638 GB, free: 35.24 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004305/0.3987, allocations: 319.2 kB / 0.5641 GB, free: 35.19 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007566/0.3995, allocations: 0.6576 MB / 0.5647 GB, free: 35.02 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007491/0.4002, allocations: 0.8242 MB / 0.5655 GB, free: 34.8 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001898/0.4004, allocations: 127.4 kB / 0.5656 GB, free: 34.8 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004844/0.4009, allocations: 259 kB / 0.5659 GB, free: 34.79 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002403/0.4012, allocations: 328.6 kB / 0.5662 GB, free: 34.71 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004611/0.4016, allocations: 0.6718 MB / 0.5669 GB, free: 34.46 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001268/0.4029, allocations: 1.638 MB / 0.5685 GB, free: 34.08 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.431e-06/0.4029, allocations: 4.25 kB / 0.5685 GB, free: 34.08 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.4029, allocations: 0.8125 kB / 0.5685 GB, free: 34.08 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.593e-05/0.403, allocations: 0 / 0.5685 GB, free: 34.08 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: 189 * Number of variables: 189 Notification: Performance of Generate backend data structure: time 0.008064/0.411, allocations: 2.686 MB / 0.5711 GB, free: 33.1 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.503e-05/0.4111, allocations: 8.719 kB / 0.5711 GB, free: 33.1 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004719/0.4158, allocations: 0.7743 MB / 0.5719 GB, free: 33.01 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001341/0.4172, allocations: 0.8895 MB / 0.5727 GB, free: 32.6 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002283/0.4174, allocations: 258 kB / 0.573 GB, free: 32.41 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001445/0.4176, allocations: 80.41 kB / 0.573 GB, free: 32.41 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001828/0.4194, allocations: 1.089 MB / 0.5741 GB, free: 32.32 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.725e-05/0.4194, allocations: 2.625 kB / 0.5741 GB, free: 32.32 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.149e-05/0.4195, allocations: 28.94 kB / 0.5741 GB, free: 32.32 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.404e-05/0.4196, allocations: 19.72 kB / 0.5742 GB, free: 32.32 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001722/0.4213, allocations: 0.9851 MB / 0.5751 GB, free: 32.32 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.005582/0.4269, allocations: 3.822 MB / 0.5788 GB, free: 30.64 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006699/0.4336, allocations: 2.364 MB / 0.5812 GB, free: 29.82 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001413/0.435, allocations: 0.6744 MB / 0.5818 GB, free: 29.55 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.419e-05/0.4351, allocations: 19.41 kB / 0.5818 GB, free: 29.55 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001508/0.4366, allocations: 0.8216 MB / 0.5826 GB, free: 29.23 MB / 430.1 MB Notification: Performance of pre-optimization done (n=95): time 3.476e-06/0.4367, allocations: 4 kB / 0.5826 GB, free: 29.22 MB / 430.1 MB Notification: Performance of matching and sorting (n=95): time 0.02926/0.4659, allocations: 7.179 MB / 0.5897 GB, free: 27.84 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.748e-05/0.466, allocations: 122 kB / 0.5898 GB, free: 27.71 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001869/0.4679, allocations: 1.091 MB / 0.5908 GB, free: 27.26 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000244/0.4682, allocations: 46.48 kB / 0.5909 GB, free: 27.21 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003422/0.4685, allocations: 489.9 kB / 0.5913 GB, free: 26.83 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003652/0.4689, allocations: 351.7 kB / 0.5917 GB, free: 26.56 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005112/0.4694, allocations: 283.5 kB / 0.592 GB, free: 26.43 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 5.851e-05/0.4695, allocations: 306.3 kB / 0.5922 GB, free: 26.13 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00162/0.4711, allocations: 0.7597 MB / 0.593 GB, free: 25.84 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001676/0.4728, allocations: 0.9285 MB / 0.5939 GB, free: 25.41 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02358/0.4964, allocations: 5.568 MB / 0.5993 GB, free: 23.68 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.382e-05/0.4964, allocations: 9 kB / 0.5993 GB, free: 23.67 MB / 430.1 MB Notification: Performance of matching and sorting (n=192) (initialization): time 0.01527/0.5117, allocations: 4.35 MB / 0.6036 GB, free: 22.49 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.148e-05/0.5118, allocations: 67.41 kB / 0.6037 GB, free: 22.42 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.828e-05/0.5119, allocations: 4.609 kB / 0.6037 GB, free: 22.42 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005939/0.5178, allocations: 1.591 MB / 0.6052 GB, free: 21.84 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001531/0.5194, allocations: 279.1 kB / 0.6055 GB, free: 21.78 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02102/0.5404, allocations: 8.516 MB / 0.6138 GB, free: 15.75 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002168/0.5426, allocations: 199.3 kB / 0.614 GB, free: 15.55 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003297/0.543, allocations: 59.91 kB / 0.614 GB, free: 15.5 MB / 430.1 MB Warning: Assuming fixed start value for the following 4 variables: order3.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 order3.delta:VARIABLE(flow=false start = order3.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 (160): * Single equations (assignments): 157 * 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 {(19,14,24.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0008739/0.5439, allocations: 300.1 kB / 0.6143 GB, free: 15.19 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004328/0.5443, allocations: 122.5 kB / 0.6144 GB, free: 15.07 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01172/0.556, allocations: 3.873 MB / 0.6182 GB, free: 11.16 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.952e-05/0.5561, allocations: 8 kB / 0.6182 GB, free: 11.16 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.299e-05/0.5561, allocations: 11.94 kB / 0.6182 GB, free: 11.14 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.834e-05/0.5562, allocations: 8.922 kB / 0.6183 GB, free: 11.14 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.01452/0.5707, allocations: 5.45 MB / 0.6236 GB, free: 5.578 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.474e-05/0.5708, allocations: 4 kB / 0.6236 GB, free: 5.574 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006415/0.5714, allocations: 97.95 kB / 0.6237 GB, free: 5.48 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005142/0.5766, allocations: 1.612 MB / 0.6252 GB, free: 3.863 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002243/0.5768, allocations: 16 kB / 0.6253 GB, free: 3.848 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02066/0.5975, allocations: 9.647 MB / 0.6347 GB, free: 9.906 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.298e-06/0.5976, allocations: 0 / 0.6347 GB, free: 9.906 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01528/0.6128, allocations: 4.722 MB / 0.6393 GB, free: 5.152 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006259/0.6135, allocations: 223.3 kB / 0.6395 GB, free: 4.914 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005473/0.6141, allocations: 19.94 kB / 0.6395 GB, free: 4.895 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001575/0.6157, allocations: 108 kB / 0.6396 GB, free: 4.789 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007445/0.6164, allocations: 196.7 kB / 0.6398 GB, free: 4.594 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001617/0.6166, allocations: 31.98 kB / 0.6398 GB, free: 4.562 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001482/0.6181, allocations: 0.7339 MB / 0.6406 GB, free: 3.824 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.6181, allocations: 4 kB / 0.6406 GB, free: 3.82 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002182/0.6203, allocations: 471.5 kB / 0.641 GB, free: 3.359 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 9 (order2.delta,order2.w,order3.delta,order3.w,order3.e1q,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 (63): * Single equations (assignments): 60 * 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.0003908/0.6207, allocations: 126.1 kB / 0.6411 GB, free: 3.23 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007419/0.6282, allocations: 2.56 MB / 0.6436 GB, free: 0.6328 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.468e-06/0.6282, allocations: 8.188 kB / 0.6436 GB, free: 0.625 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004945/0.6332, allocations: 1.594 MB / 0.6452 GB, free: 15 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00203/0.6352, allocations: 116.5 kB / 0.6453 GB, free: 14.89 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006047/0.6413, allocations: 2.231 MB / 0.6475 GB, free: 12.66 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001108/0.6424, allocations: 1.12 MB / 0.6486 GB, free: 11.51 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0006926/0.6431, allocations: 115.9 kB / 0.6487 GB, free: 11.4 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003474/0.6435, allocations: 89.19 kB / 0.6488 GB, free: 11.31 MB / 462.1 MB Notification: Performance of SimCode: time 1.684e-06/0.6435, allocations: 0 / 0.6488 GB, free: 11.31 MB / 462.1 MB Notification: Performance of Templates: time 0.04321/0.6867, allocations: 23.59 MB / 0.6718 GB, free: 3.945 MB / 478.1 MB make -j1 -f OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.makefile (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.sim & ./OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.pipe 2>&1)