Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_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.FourthOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII") translateModel(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001251/0.001251, allocations: 107.1 kB / 16.36 MB, free: 6.34 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.379/1.379, allocations: 222.9 MB / 240 MB, free: 4.598 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.001542/0.001542, allocations: 196.5 kB / 290.3 MB, free: 2.316 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.5032/0.5032, allocations: 78.52 MB / 419 MB, free: 3.152 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001651/0.001652, allocations: 75.88 kB / 498.9 MB, free: 5.719 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1423/0.1439, allocations: 68.17 MB / 0.5538 GB, free: 1.512 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII): time 0.303/0.447, allocations: 6.567 MB / 0.5602 GB, free: 36.12 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.005345/0.4524, allocations: 1.954 MB / 0.5621 GB, free: 35.59 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00104/0.4535, allocations: 10.25 kB / 0.5621 GB, free: 35.59 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009629/0.4545, allocations: 239.3 kB / 0.5623 GB, free: 35.58 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002022/0.4566, allocations: 0.7956 MB / 0.5631 GB, free: 35.43 MB / 430.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/Electrical/Machines/PSAT/Order4.mo:25:3-30:9:writable] Warning: In relation order4.xq <> order4.x1q, <> on Real numbers is only allowed inside functions. Notification: Performance of NFTyping.typeClassSections: time 0.001379/0.4579, allocations: 0.632 MB / 0.5637 GB, free: 35.35 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001837/0.4598, allocations: 1.577 MB / 0.5653 GB, free: 35.07 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005644/0.4604, allocations: 331.2 kB / 0.5656 GB, free: 35.02 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00112/0.4615, allocations: 0.6521 MB / 0.5662 GB, free: 34.85 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009174/0.4624, allocations: 0.8323 MB / 0.567 GB, free: 34.63 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002013/0.4626, allocations: 121.5 kB / 0.5671 GB, free: 34.63 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005583/0.4632, allocations: 265.6 kB / 0.5674 GB, free: 34.62 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000258/0.4635, allocations: 322.4 kB / 0.5677 GB, free: 34.54 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005466/0.464, allocations: 0.6727 MB / 0.5684 GB, free: 34.29 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001708/0.4657, allocations: 1.66 MB / 0.57 GB, free: 33.91 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.101e-06/0.4658, allocations: 0.9062 kB / 0.57 GB, free: 33.91 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.535e-06/0.4658, allocations: 0 / 0.57 GB, free: 33.91 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.804e-05/0.4658, allocations: 2.188 kB / 0.57 GB, free: 33.91 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: 190 * Number of variables: 190 Notification: Performance of Generate backend data structure: time 0.008339/0.4741, allocations: 2.68 MB / 0.5726 GB, free: 32.93 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.682e-05/0.4742, allocations: 11.53 kB / 0.5726 GB, free: 32.93 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004947/0.4792, allocations: 0.776 MB / 0.5734 GB, free: 32.83 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001734/0.4809, allocations: 0.8882 MB / 0.5742 GB, free: 32.42 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000289/0.4812, allocations: 257.1 kB / 0.5745 GB, free: 32.23 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002278/0.4815, allocations: 91.22 kB / 0.5746 GB, free: 32.23 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002816/0.4843, allocations: 1.094 MB / 0.5756 GB, free: 32.14 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.677e-05/0.4843, allocations: 0 / 0.5756 GB, free: 32.14 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001264/0.4845, allocations: 25.94 kB / 0.5757 GB, free: 32.14 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.779e-05/0.4845, allocations: 18.94 kB / 0.5757 GB, free: 32.14 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002701/0.4872, allocations: 0.9874 MB / 0.5766 GB, free: 32.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 preOpt removeSimpleEquations (simulation): time 0.0083/0.4955, allocations: 3.802 MB / 0.5804 GB, free: 30.3 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009283/0.5048, allocations: 2.365 MB / 0.5827 GB, free: 29.48 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002313/0.5072, allocations: 0.6856 MB / 0.5833 GB, free: 29.21 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001623/0.5074, allocations: 14.23 kB / 0.5834 GB, free: 29.21 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00228/0.5097, allocations: 0.8211 MB / 0.5842 GB, free: 28.89 MB / 430.1 MB Notification: Performance of pre-optimization done (n=96): time 4.478e-06/0.5097, allocations: 1.375 kB / 0.5842 GB, free: 28.89 MB / 430.1 MB Notification: Performance of matching and sorting (n=96): time 0.03124/0.541, allocations: 7.079 MB / 0.5911 GB, free: 27.51 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000118/0.5412, allocations: 121.6 kB / 0.5912 GB, free: 27.38 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002589/0.5438, allocations: 1.084 MB / 0.5922 GB, free: 26.93 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003363/0.5441, allocations: 43.05 kB / 0.5923 GB, free: 26.88 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004547/0.5446, allocations: 497.7 kB / 0.5928 GB, free: 26.49 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004746/0.5451, allocations: 361.5 kB / 0.5931 GB, free: 26.21 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006776/0.5458, allocations: 282 kB / 0.5934 GB, free: 26.09 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.824e-05/0.5459, allocations: 302.2 kB / 0.5937 GB, free: 25.79 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002035/0.5479, allocations: 0.7649 MB / 0.5944 GB, free: 25.5 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002104/0.55, allocations: 0.9415 MB / 0.5953 GB, free: 25.07 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02489/0.5749, allocations: 5.578 MB / 0.6008 GB, free: 23.33 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.471e-05/0.575, allocations: 2.156 kB / 0.6008 GB, free: 23.33 MB / 430.1 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.01389/0.5889, allocations: 4.333 MB / 0.605 GB, free: 22.15 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.251e-05/0.589, allocations: 64.73 kB / 0.6051 GB, free: 22.09 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.068e-05/0.5891, allocations: 6.438 kB / 0.6051 GB, free: 22.08 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005423/0.5945, allocations: 1.508 MB / 0.6065 GB, free: 21.51 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001652/0.5962, allocations: 297.5 kB / 0.6068 GB, free: 21.44 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0177/0.6139, allocations: 8.266 MB / 0.6149 GB, free: 15.68 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002059/0.616, allocations: 199.9 kB / 0.6151 GB, free: 15.48 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001375/0.6162, allocations: 59.97 kB / 0.6151 GB, free: 15.42 MB / 430.1 MB Warning: Assuming fixed start value for the following 4 variables: order4.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 order4.delta:VARIABLE(flow=false start = order4.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order4.e1q:VARIABLE(start = order4.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 (166): * Single equations (assignments): 163 * 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 {(18,13,25.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006516/0.6168, allocations: 303.6 kB / 0.6154 GB, free: 15.11 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002222/0.617, allocations: 134.3 kB / 0.6156 GB, free: 14.98 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01078/0.6278, allocations: 3.869 MB / 0.6193 GB, free: 11.08 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.428e-05/0.6279, allocations: 8 kB / 0.6194 GB, free: 11.07 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.304e-05/0.6279, allocations: 8.875 kB / 0.6194 GB, free: 11.07 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.682e-05/0.6279, allocations: 12.61 kB / 0.6194 GB, free: 11.05 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.01272/0.6407, allocations: 5.444 MB / 0.6247 GB, free: 5.5 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.004e-05/0.6407, allocations: 0 / 0.6247 GB, free: 5.5 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006051/0.6413, allocations: 99.89 kB / 0.6248 GB, free: 5.402 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004682/0.646, allocations: 1.609 MB / 0.6264 GB, free: 3.789 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001663/0.6462, allocations: 29.05 kB / 0.6264 GB, free: 3.762 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01862/0.6649, allocations: 9.604 MB / 0.6358 GB, free: 9.859 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/0.6649, allocations: 0 / 0.6358 GB, free: 9.859 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01372/0.6786, allocations: 4.734 MB / 0.6404 GB, free: 5.09 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007348/0.6794, allocations: 227.2 kB / 0.6406 GB, free: 4.848 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001922/0.6796, allocations: 20 kB / 0.6406 GB, free: 4.828 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001107/0.6807, allocations: 107.9 kB / 0.6407 GB, free: 4.723 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006351/0.6814, allocations: 198.3 kB / 0.6409 GB, free: 4.531 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.436e-05/0.6815, allocations: 31.98 kB / 0.6409 GB, free: 4.5 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001128/0.6826, allocations: 0.7274 MB / 0.6417 GB, free: 3.766 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.6826, allocations: 0 / 0.6417 GB, free: 3.766 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00156/0.6842, allocations: 475.5 kB / 0.6421 GB, free: 3.301 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 10 (order2.delta,order2.w,order4.delta,order4.w,order4.e1q,order4.e1d,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 (64): * Single equations (assignments): 61 * 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 {(21,11,21.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003096/0.6845, allocations: 136.3 kB / 0.6422 GB, free: 3.16 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005839/0.6904, allocations: 2.499 MB / 0.6447 GB, free: 0.6289 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/0.6904, allocations: 0 / 0.6447 GB, free: 0.6289 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004018/0.6944, allocations: 1.612 MB / 0.6463 GB, free: 14.98 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001138/0.6956, allocations: 124 kB / 0.6464 GB, free: 14.86 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003967/0.6996, allocations: 2.233 MB / 0.6486 GB, free: 12.64 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006397/0.7002, allocations: 1.124 MB / 0.6497 GB, free: 11.48 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0004184/0.7006, allocations: 129.1 kB / 0.6498 GB, free: 11.35 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002533/0.7009, allocations: 75.42 kB / 0.6498 GB, free: 11.28 MB / 462.1 MB Notification: Performance of SimCode: time 1.342e-06/0.7009, allocations: 0 / 0.6498 GB, free: 11.28 MB / 462.1 MB Notification: Performance of Templates: time 0.03574/0.7366, allocations: 23.46 MB / 0.6728 GB, free: 4.023 MB / 478.1 MB make -j1 -f OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.makefile (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.sim & ./OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe 2>&1)