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.001065/0.001065, allocations: 103 kB / 16.35 MB, free: 5.828 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.426/1.426, allocations: 222.9 MB / 240 MB, free: 4.473 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.001405/0.001405, allocations: 188.5 kB / 290.3 MB, free: 2.211 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4376/0.4376, allocations: 78.54 MB / 419 MB, free: 3.086 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001601/0.001601, allocations: 75.88 kB / 498.9 MB, free: 5.578 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1333/0.1349, allocations: 68.18 MB / 0.5538 GB, free: 1.363 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII): time 0.2506/0.3856, allocations: 6.545 MB / 0.5602 GB, free: 35.95 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003803/0.3894, allocations: 1.963 MB / 0.5621 GB, free: 35.41 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007242/0.3902, allocations: 10.03 kB / 0.5621 GB, free: 35.41 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000695/0.3909, allocations: 236.6 kB / 0.5623 GB, free: 35.4 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001746/0.3927, allocations: 0.7983 MB / 0.5631 GB, free: 35.25 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.001183/0.3939, allocations: 0.636 MB / 0.5637 GB, free: 35.16 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001368/0.3953, allocations: 1.584 MB / 0.5653 GB, free: 34.89 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004166/0.3957, allocations: 321.8 kB / 0.5656 GB, free: 34.85 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006615/0.3964, allocations: 0.6544 MB / 0.5662 GB, free: 34.68 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007375/0.3971, allocations: 0.8246 MB / 0.567 GB, free: 34.46 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001628/0.3973, allocations: 123.5 kB / 0.5671 GB, free: 34.46 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000437/0.3977, allocations: 260.8 kB / 0.5674 GB, free: 34.45 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002493/0.398, allocations: 330.5 kB / 0.5677 GB, free: 34.37 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004798/0.3985, allocations: 0.666 MB / 0.5684 GB, free: 34.12 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001277/0.3997, allocations: 1.66 MB / 0.57 GB, free: 33.74 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.389e-06/0.3998, allocations: 2.188 kB / 0.57 GB, free: 33.74 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.532e-06/0.3998, allocations: 0 / 0.57 GB, free: 33.74 MB / 430.1 MB Notification: Performance of Transformations before backend: time 2.086e-05/0.3998, allocations: 3 kB / 0.57 GB, free: 33.74 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.008093/0.4079, allocations: 2.686 MB / 0.5726 GB, free: 32.75 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.867e-05/0.408, allocations: 11.75 kB / 0.5726 GB, free: 32.75 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004773/0.4127, allocations: 0.7769 MB / 0.5734 GB, free: 32.66 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001591/0.4143, allocations: 0.8774 MB / 0.5742 GB, free: 32.25 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002412/0.4146, allocations: 263 kB / 0.5745 GB, free: 32.06 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001578/0.4148, allocations: 89 kB / 0.5746 GB, free: 32.06 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001853/0.4166, allocations: 1.086 MB / 0.5756 GB, free: 31.98 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.294e-05/0.4167, allocations: 0 / 0.5756 GB, free: 31.98 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.525e-05/0.4168, allocations: 37.59 kB / 0.5757 GB, free: 31.98 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.419e-05/0.4168, allocations: 17.19 kB / 0.5757 GB, free: 31.98 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001705/0.4185, allocations: 0.986 MB / 0.5766 GB, free: 31.97 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.005639/0.4241, allocations: 3.805 MB / 0.5804 GB, free: 30.25 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006397/0.4306, allocations: 2.365 MB / 0.5827 GB, free: 29.43 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001482/0.4321, allocations: 0.6813 MB / 0.5833 GB, free: 29.16 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001108/0.4322, allocations: 19.3 kB / 0.5834 GB, free: 29.16 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001495/0.4337, allocations: 0.8204 MB / 0.5842 GB, free: 28.84 MB / 430.1 MB Notification: Performance of pre-optimization done (n=96): time 3.527e-06/0.4337, allocations: 0 / 0.5842 GB, free: 28.84 MB / 430.1 MB Notification: Performance of matching and sorting (n=96): time 0.02781/0.4615, allocations: 7.08 MB / 0.5911 GB, free: 27.45 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.618e-05/0.4617, allocations: 118.7 kB / 0.5912 GB, free: 27.32 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002402/0.4641, allocations: 1.084 MB / 0.5922 GB, free: 26.88 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000295/0.4644, allocations: 45.86 kB / 0.5923 GB, free: 26.83 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004173/0.4648, allocations: 496.1 kB / 0.5928 GB, free: 26.44 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005515/0.4654, allocations: 356.6 kB / 0.5931 GB, free: 26.16 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009484/0.4664, allocations: 286 kB / 0.5934 GB, free: 26.04 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 5.375e-05/0.4664, allocations: 304.1 kB / 0.5937 GB, free: 25.74 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001828/0.4683, allocations: 0.7643 MB / 0.5944 GB, free: 25.45 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001928/0.4702, allocations: 0.9427 MB / 0.5953 GB, free: 25.02 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02436/0.4946, allocations: 5.582 MB / 0.6008 GB, free: 23.27 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-05/0.4946, allocations: 0 / 0.6008 GB, free: 23.27 MB / 430.1 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.01522/0.5099, allocations: 4.334 MB / 0.605 GB, free: 22.03 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.69e-05/0.51, allocations: 62.86 kB / 0.6051 GB, free: 21.96 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.888e-05/0.51, allocations: 2.969 kB / 0.6051 GB, free: 21.96 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005088/0.5151, allocations: 1.518 MB / 0.6066 GB, free: 21.28 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001564/0.5167, allocations: 296.8 kB / 0.6068 GB, free: 21.21 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01787/0.5346, allocations: 8.257 MB / 0.6149 GB, free: 15.47 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002231/0.5369, allocations: 194.8 kB / 0.6151 GB, free: 15.28 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003578/0.5372, allocations: 67.91 kB / 0.6152 GB, free: 15.21 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.001003/0.5383, allocations: 299.6 kB / 0.6154 GB, free: 14.91 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004855/0.5388, allocations: 130.3 kB / 0.6156 GB, free: 14.78 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01133/0.5501, allocations: 3.869 MB / 0.6193 GB, free: 10.88 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.626e-05/0.5502, allocations: 8 kB / 0.6193 GB, free: 10.87 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.159e-05/0.5502, allocations: 12 kB / 0.6194 GB, free: 10.86 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.55e-05/0.5502, allocations: 11.91 kB / 0.6194 GB, free: 10.85 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.01315/0.5634, allocations: 5.453 MB / 0.6247 GB, free: 5.285 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-05/0.5634, allocations: 2.953 kB / 0.6247 GB, free: 5.285 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006442/0.5641, allocations: 99.89 kB / 0.6248 GB, free: 5.188 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004816/0.5689, allocations: 1.606 MB / 0.6264 GB, free: 3.574 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002114/0.5691, allocations: 25.95 kB / 0.6264 GB, free: 3.551 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01906/0.5882, allocations: 9.601 MB / 0.6358 GB, free: 9.648 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.985e-06/0.5883, allocations: 0 / 0.6358 GB, free: 9.648 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01415/0.6024, allocations: 4.731 MB / 0.6404 GB, free: 4.883 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00062/0.6031, allocations: 231.1 kB / 0.6406 GB, free: 4.637 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004869/0.6036, allocations: 17.12 kB / 0.6406 GB, free: 4.621 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001438/0.6051, allocations: 112 kB / 0.6407 GB, free: 4.512 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006929/0.6058, allocations: 196.7 kB / 0.6409 GB, free: 4.32 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001455/0.6059, allocations: 24 kB / 0.6409 GB, free: 4.297 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001282/0.6072, allocations: 0.7313 MB / 0.6416 GB, free: 3.559 MB / 446.1 MB Notification: Performance of sort global known variables: time 6.31e-07/0.6072, allocations: 0 / 0.6416 GB, free: 3.559 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001792/0.609, allocations: 475.5 kB / 0.6421 GB, free: 3.094 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.0003319/0.6094, allocations: 132.6 kB / 0.6422 GB, free: 2.957 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006275/0.6157, allocations: 2.506 MB / 0.6447 GB, free: 432 kB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.649e-06/0.6157, allocations: 0 / 0.6447 GB, free: 432 kB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004298/0.62, allocations: 1.615 MB / 0.6463 GB, free: 14.77 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001344/0.6214, allocations: 119.8 kB / 0.6464 GB, free: 14.66 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004433/0.6258, allocations: 2.246 MB / 0.6486 GB, free: 12.42 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007646/0.6266, allocations: 1.124 MB / 0.6497 GB, free: 11.26 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0004931/0.6271, allocations: 121 kB / 0.6498 GB, free: 11.14 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002981/0.6274, allocations: 83.41 kB / 0.6499 GB, free: 11.07 MB / 462.1 MB Notification: Performance of SimCode: time 7.31e-07/0.6274, allocations: 0 / 0.6499 GB, free: 11.07 MB / 462.1 MB Notification: Performance of Templates: time 0.03859/0.666, allocations: 23.45 MB / 0.6728 GB, free: 3.816 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 gbode -lv LOG_STATS > OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe 2>&1)