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.0009729/0.0009729, allocations: 98.11 kB / 15.36 MB, free: 0.7344 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.38/1.38, allocations: 223.3 MB / 239.4 MB, free: 5.5 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.001779/0.001779, allocations: 184.6 kB / 290.6 MB, free: 2.164 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.5059/0.5059, allocations: 78.55 MB / 420.3 MB, free: 4.227 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004529/0.000453, allocations: 8 kB / 0.4887 GB, free: 6.047 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1587/0.1592, allocations: 69.37 MB / 0.5564 GB, free: 0.625 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII): time 0.2775/0.4367, allocations: 6.394 MB / 0.5626 GB, free: 36.23 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.004272/0.441, allocations: 1.991 MB / 0.5646 GB, free: 35.45 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006877/0.4418, allocations: 12.25 kB / 0.5646 GB, free: 35.45 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006689/0.4424, allocations: 185.9 kB / 0.5648 GB, free: 35.38 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001727/0.4442, allocations: 0.6962 MB / 0.5655 GB, free: 35.07 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.001162/0.4453, allocations: 0.5853 MB / 0.566 GB, free: 34.98 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001458/0.4468, allocations: 1.499 MB / 0.5675 GB, free: 34.64 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004359/0.4473, allocations: 287 kB / 0.5678 GB, free: 34.6 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006975/0.448, allocations: 0.5665 MB / 0.5683 GB, free: 34.42 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006919/0.4487, allocations: 0.7472 MB / 0.5691 GB, free: 34.21 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001231/0.4488, allocations: 58.09 kB / 0.5691 GB, free: 34.21 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004842/0.4493, allocations: 187.7 kB / 0.5693 GB, free: 34.2 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002618/0.4496, allocations: 258.8 kB / 0.5695 GB, free: 34.12 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004822/0.4501, allocations: 0.6262 MB / 0.5701 GB, free: 33.84 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001121/0.4512, allocations: 1.555 MB / 0.5717 GB, free: 33.46 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.501e-06/0.4512, allocations: 0 / 0.5717 GB, free: 33.46 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.505e-06/0.4512, allocations: 0 / 0.5717 GB, free: 33.46 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.26e-05/0.4512, allocations: 1.469 kB / 0.5717 GB, free: 33.46 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.008076/0.4593, allocations: 2.496 MB / 0.5741 GB, free: 32.52 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.001e-05/0.4594, allocations: 8.719 kB / 0.5741 GB, free: 32.52 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005047/0.4644, allocations: 0.784 MB / 0.5749 GB, free: 32.42 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001683/0.4661, allocations: 0.879 MB / 0.5757 GB, free: 32.01 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002549/0.4664, allocations: 272.7 kB / 0.576 GB, free: 31.82 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001672/0.4666, allocations: 84.41 kB / 0.5761 GB, free: 31.81 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002105/0.4687, allocations: 1.148 MB / 0.5772 GB, free: 31.72 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.05e-05/0.4687, allocations: 0 / 0.5772 GB, free: 31.72 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.619e-05/0.4688, allocations: 31.41 kB / 0.5772 GB, free: 31.72 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.657e-05/0.4689, allocations: 18.5 kB / 0.5772 GB, free: 31.72 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001986/0.4709, allocations: 1.059 MB / 0.5783 GB, free: 31.7 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.006171/0.477, allocations: 3.908 MB / 0.5821 GB, free: 30.35 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007883/0.4849, allocations: 2.907 MB / 0.5849 GB, free: 29.47 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001679/0.4867, allocations: 0.7417 MB / 0.5857 GB, free: 29.19 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001306/0.4868, allocations: 19.86 kB / 0.5857 GB, free: 29.18 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001921/0.4887, allocations: 0.881 MB / 0.5865 GB, free: 28.86 MB / 430.1 MB Notification: Performance of pre-optimization done (n=96): time 5.86e-06/0.4888, allocations: 0 / 0.5865 GB, free: 28.86 MB / 430.1 MB Notification: Performance of matching and sorting (n=96): time 0.03331/0.5221, allocations: 8.666 MB / 0.595 GB, free: 27.29 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.765e-05/0.5222, allocations: 123.4 kB / 0.5951 GB, free: 27.15 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002243/0.5244, allocations: 1.082 MB / 0.5962 GB, free: 26.71 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002754/0.5247, allocations: 46.5 kB / 0.5962 GB, free: 26.66 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000409/0.5252, allocations: 499.7 kB / 0.5967 GB, free: 26.27 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005549/0.5257, allocations: 356.9 kB / 0.597 GB, free: 25.99 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004169/0.5262, allocations: 150.7 kB / 0.5972 GB, free: 25.92 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 4.951e-05/0.5262, allocations: 305.1 kB / 0.5975 GB, free: 25.62 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002091/0.5283, allocations: 0.824 MB / 0.5983 GB, free: 25.33 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002277/0.5306, allocations: 0.9967 MB / 0.5992 GB, free: 24.89 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02637/0.557, allocations: 6.01 MB / 0.6051 GB, free: 23.11 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.394e-05/0.557, allocations: 1.094 kB / 0.6051 GB, free: 23.11 MB / 430.1 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.01725/0.5743, allocations: 5.171 MB / 0.6102 GB, free: 21.83 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.217e-05/0.5744, allocations: 59.78 kB / 0.6102 GB, free: 21.77 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.09e-05/0.5745, allocations: 4.125 kB / 0.6102 GB, free: 21.77 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00597/0.5804, allocations: 1.795 MB / 0.612 GB, free: 20.61 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001523/0.582, allocations: 300.1 kB / 0.6123 GB, free: 20.32 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0186/0.6006, allocations: 8.615 MB / 0.6207 GB, free: 11.57 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002481/0.6031, allocations: 230.8 kB / 0.6209 GB, free: 11.34 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003594/0.6035, allocations: 64.59 kB / 0.621 GB, free: 11.28 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.0009735/0.6045, allocations: 293 kB / 0.6212 GB, free: 10.98 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003989/0.6049, allocations: 124.3 kB / 0.6214 GB, free: 10.86 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01358/0.6185, allocations: 4.728 MB / 0.626 GB, free: 6.094 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.08e-05/0.6186, allocations: 12 kB / 0.626 GB, free: 6.082 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.261e-05/0.6186, allocations: 7.938 kB / 0.626 GB, free: 6.074 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.868e-05/0.6187, allocations: 7.984 kB / 0.626 GB, free: 6.066 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.01611/0.6348, allocations: 6.301 MB / 0.6322 GB, free: 15.66 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-05/0.6348, allocations: 1.25 kB / 0.6322 GB, free: 15.66 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007066/0.6355, allocations: 105.8 kB / 0.6323 GB, free: 15.55 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006368/0.6419, allocations: 1.895 MB / 0.6341 GB, free: 13.65 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001974/0.6422, allocations: 20 kB / 0.6341 GB, free: 13.63 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02233/0.6645, allocations: 9.656 MB / 0.6436 GB, free: 3.699 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.376e-06/0.6645, allocations: 0 / 0.6436 GB, free: 3.699 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01697/0.6815, allocations: 5.651 MB / 0.6491 GB, free: 14.02 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006081/0.6822, allocations: 223.2 kB / 0.6493 GB, free: 13.78 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003616/0.6826, allocations: 24 kB / 0.6493 GB, free: 13.75 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001523/0.6841, allocations: 149 kB / 0.6495 GB, free: 13.61 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006696/0.6848, allocations: 188.7 kB / 0.6496 GB, free: 13.42 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001219/0.6849, allocations: 24 kB / 0.6497 GB, free: 13.4 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00141/0.6863, allocations: 0.7288 MB / 0.6504 GB, free: 12.66 MB / 462.1 MB Notification: Performance of sort global known variables: time 4.91e-07/0.6864, allocations: 0 / 0.6504 GB, free: 12.66 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00185/0.6882, allocations: 479.5 kB / 0.6508 GB, free: 12.2 MB / 462.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.0003466/0.6886, allocations: 136 kB / 0.651 GB, free: 12.05 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007112/0.6957, allocations: 2.784 MB / 0.6537 GB, free: 9.23 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/0.6957, allocations: 0.75 kB / 0.6537 GB, free: 9.23 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005012/0.7007, allocations: 1.823 MB / 0.6555 GB, free: 7.375 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001476/0.7022, allocations: 117.5 kB / 0.6556 GB, free: 7.262 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005383/0.7076, allocations: 2.777 MB / 0.6583 GB, free: 4.5 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001037/0.7087, allocations: 1.124 MB / 0.6594 GB, free: 3.344 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0007203/0.7094, allocations: 127.4 kB / 0.6595 GB, free: 3.223 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003766/0.7098, allocations: 75.36 kB / 0.6596 GB, free: 3.148 MB / 462.1 MB Notification: Performance of SimCode: time 1.833e-06/0.7098, allocations: 0 / 0.6596 GB, free: 3.148 MB / 462.1 MB Notification: Performance of Templates: time 0.03705/0.7469, allocations: 20.98 MB / 0.6801 GB, free: 14.35 MB / 494.1 MB make -j1 -f OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.makefile Environment - environmentSimulation: (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 -lv LOG_STATS > OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe 2>&1) Environment - environmentSimulation: