Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_release_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRI.conf.json 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/Modelica 4.0.0+maint.om/package.mo", uses=false) 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/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRI,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_release_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRI") translateModel(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRI,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_release_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRI") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00631/0.00631, allocations: 170.7 kB / 15.12 MB, free: 5.559 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.374/1.374, allocations: 223.2 MB / 239 MB, free: 1.73 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008507/0.0008506, allocations: 101.1 kB / 290.2 MB, free: 13.91 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.451/0.451, allocations: 78.59 MB / 419.9 MB, free: 44.21 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000403/0.0004031, allocations: 12 kB / 499.8 MB, free: 2.957 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3542/0.3546, allocations: 69.35 MB / 0.5558 GB, free: 38.58 MB / 426.7 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRI): time 0.005264/0.3599, allocations: 5.6 MB / 0.5612 GB, free: 37.66 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.003967/0.364, allocations: 1.964 MB / 0.5632 GB, free: 36.27 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007643/0.3647, allocations: 12.75 kB / 0.5632 GB, free: 36.27 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006118/0.3654, allocations: 172.6 kB / 0.5633 GB, free: 36.19 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001806/0.3672, allocations: 0.7062 MB / 0.564 GB, free: 35.72 MB / 426.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/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.001329/0.3685, allocations: 0.5389 MB / 0.5646 GB, free: 35.46 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.001406/0.3699, allocations: 0.9758 MB / 0.5655 GB, free: 34.94 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003789/0.3703, allocations: 255.5 kB / 0.5658 GB, free: 34.83 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006577/0.371, allocations: 0.5426 MB / 0.5663 GB, free: 34.59 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000726/0.3717, allocations: 0.7119 MB / 0.567 GB, free: 34.29 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001347/0.3719, allocations: 57.5 kB / 0.567 GB, free: 34.29 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004171/0.3723, allocations: 172.3 kB / 0.5672 GB, free: 34.25 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001939/0.3725, allocations: 253.3 kB / 0.5674 GB, free: 34.11 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000173/0.3727, allocations: 225.6 kB / 0.5677 GB, free: 33.97 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008971/0.3736, allocations: 1.181 MB / 0.5688 GB, free: 33.62 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.234e-06/0.3736, allocations: 0 / 0.5688 GB, free: 33.62 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.3736, allocations: 0 / 0.5688 GB, free: 33.62 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.412e-05/0.3736, allocations: 0 / 0.5688 GB, free: 33.62 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 187 * Number of variables: 187 Notification: Performance of Generate backend data structure: time 0.007438/0.3811, allocations: 2.494 MB / 0.5712 GB, free: 32.49 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.273e-05/0.3811, allocations: 11.69 kB / 0.5713 GB, free: 32.49 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004678/0.3858, allocations: 0.7816 MB / 0.572 GB, free: 32.34 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001401/0.3872, allocations: 0.8381 MB / 0.5728 GB, free: 31.79 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001961/0.3874, allocations: 233 kB / 0.5731 GB, free: 31.6 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001415/0.3876, allocations: 85 kB / 0.5731 GB, free: 31.57 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001934/0.3895, allocations: 1.146 MB / 0.5743 GB, free: 31.14 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.125e-05/0.3896, allocations: 1.312 kB / 0.5743 GB, free: 31.14 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.881e-05/0.3897, allocations: 30.38 kB / 0.5743 GB, free: 31.12 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.941e-05/0.3897, allocations: 21.64 kB / 0.5743 GB, free: 31.12 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001867/0.3916, allocations: 1.074 MB / 0.5754 GB, free: 30.78 MB / 426.7 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.005634/0.3972, allocations: 4.14 MB / 0.5794 GB, free: 28.26 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007205/0.4044, allocations: 2.885 MB / 0.5822 GB, free: 27.39 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001098/0.4046, allocations: 16.92 kB / 0.5822 GB, free: 27.38 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.295e-05/0.4046, allocations: 53.36 kB / 0.5823 GB, free: 27.33 MB / 426.7 MB Notification: Performance of pre-optimization done (n=93): time 2.865e-06/0.4046, allocations: 0 / 0.5823 GB, free: 27.33 MB / 426.7 MB Notification: Performance of matching and sorting (n=93): time 0.0274/0.432, allocations: 8.365 MB / 0.5905 GB, free: 25.9 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.567e-05/0.4321, allocations: 139.5 kB / 0.5906 GB, free: 25.75 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001691/0.4338, allocations: 1.065 MB / 0.5916 GB, free: 25.3 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002027/0.434, allocations: 46.08 kB / 0.5917 GB, free: 25.26 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002826/0.4343, allocations: 497.7 kB / 0.5921 GB, free: 24.87 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00029/0.4346, allocations: 354.8 kB / 0.5925 GB, free: 24.59 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.818e-05/0.4347, allocations: 25.59 kB / 0.5925 GB, free: 24.57 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 7.756e-05/0.4348, allocations: 364.7 kB / 0.5929 GB, free: 24.24 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001529/0.4363, allocations: 0.8176 MB / 0.5937 GB, free: 23.95 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001664/0.438, allocations: 0.9857 MB / 0.5946 GB, free: 23.51 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001708/0.4397, allocations: 0.9568 MB / 0.5955 GB, free: 23.06 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.731e-06/0.4397, allocations: 1.031 kB / 0.5955 GB, free: 23.06 MB / 426.7 MB Notification: Performance of matching and sorting (n=186) (initialization): time 0.01432/0.454, allocations: 5.136 MB / 0.6006 GB, free: 21.81 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000223/0.4543, allocations: 1.195 MB / 0.6017 GB, free: 20.53 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.54e-05/0.4543, allocations: 4.672 kB / 0.6017 GB, free: 20.53 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00631/0.4606, allocations: 1.847 MB / 0.6035 GB, free: 20.23 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001528/0.4622, allocations: 280.3 kB / 0.6038 GB, free: 20.2 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02095/0.4832, allocations: 9.222 MB / 0.6128 GB, free: 15.21 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001933/0.4851, allocations: 222.6 kB / 0.613 GB, free: 15.02 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002194/0.4854, allocations: 54.98 kB / 0.6131 GB, free: 14.97 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.838e-06/0.4854, allocations: 4 kB / 0.6131 GB, free: 14.97 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01313/0.4985, allocations: 4.975 MB / 0.6179 GB, free: 10.03 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.223e-05/0.4986, allocations: 4 kB / 0.6179 GB, free: 10.03 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005509/0.5041, allocations: 1.864 MB / 0.6198 GB, free: 8.16 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001426/0.5055, allocations: 271.6 kB / 0.62 GB, free: 7.895 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01872/0.5243, allocations: 9.211 MB / 0.629 GB, free: 14.54 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001884/0.5262, allocations: 207 kB / 0.6292 GB, free: 14.34 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002514/0.5264, allocations: 55.97 kB / 0.6293 GB, free: 14.29 MB / 442.7 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 order4.e1d:VARIABLE(start = order4.e1d0 unit = "1" fixed = true ) "d-axis transient voltage" type: Real order4.e1q:VARIABLE(start = order4.e1q0 unit = "1" fixed = true ) "q-axis transient voltage" type: Real order4.delta:VARIABLE(flow=false start = order4.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (155): * Single equations (assignments): 152 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {19 13} Notification: Performance of prepare postOptimizeDAE: time 0.0007575/0.5272, allocations: 375.4 kB / 0.6296 GB, free: 13.91 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003629/0.5276, allocations: 126.4 kB / 0.6297 GB, free: 13.78 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01322/0.5408, allocations: 4.599 MB / 0.6342 GB, free: 9.152 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.555e-05/0.5409, allocations: 11.95 kB / 0.6342 GB, free: 9.141 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.38e-05/0.5409, allocations: 8 kB / 0.6343 GB, free: 9.133 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.201e-05/0.5409, allocations: 3.984 kB / 0.6343 GB, free: 9.129 MB / 442.7 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.01591/0.5568, allocations: 6.273 MB / 0.6404 GB, free: 2.734 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.064e-05/0.5569, allocations: 4 kB / 0.6404 GB, free: 2.73 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007749/0.5576, allocations: 115.8 kB / 0.6405 GB, free: 2.617 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005524/0.5632, allocations: 1.786 MB / 0.6422 GB, free: 0.8281 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001726/0.5634, allocations: 24 kB / 0.6423 GB, free: 0.8047 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01828/0.5817, allocations: 8.034 MB / 0.6501 GB, free: 8.629 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.434e-06/0.5817, allocations: 3.938 kB / 0.6501 GB, free: 8.625 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01608/0.5978, allocations: 5.528 MB / 0.6555 GB, free: 3.062 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005904/0.5984, allocations: 219.3 kB / 0.6557 GB, free: 2.828 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003916/0.5988, allocations: 27.98 kB / 0.6558 GB, free: 2.801 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001362/0.6002, allocations: 139.8 kB / 0.6559 GB, free: 2.664 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005214/0.6007, allocations: 184.6 kB / 0.6561 GB, free: 2.48 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.343e-05/0.6008, allocations: 27.98 kB / 0.6561 GB, free: 2.453 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001288/0.6021, allocations: 0.7155 MB / 0.6568 GB, free: 1.73 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.4e-07/0.6022, allocations: 0 / 0.6568 GB, free: 1.73 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002388/0.6045, allocations: 0.7531 MB / 0.6575 GB, free: 0.9766 MB / 458.7 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,aVRTypeIchange1_1.firstOrder.y,aVRTypeIchange1_1.firstOrder2.y,aVRTypeIchange1_1.transferFunction.x_scaled[1],aVRTypeIchange1_1.transferFunction.x_scaled[2]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (67): * Single equations (assignments): 65 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(19,24.4%) 13} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003034/0.6049, allocations: 136.7 kB / 0.6577 GB, free: 0.8359 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01187/0.6167, allocations: 4.836 MB / 0.6624 GB, free: 11.94 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 4.539e-06/0.6168, allocations: 0 / 0.6624 GB, free: 11.94 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004423/0.6212, allocations: 1.659 MB / 0.664 GB, free: 10.26 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008997/0.6221, allocations: 100.5 kB / 0.6641 GB, free: 10.16 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004371/0.6265, allocations: 2.698 MB / 0.6667 GB, free: 7.441 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009963/0.6275, allocations: 1.156 MB / 0.6679 GB, free: 6.258 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.001137/0.6287, allocations: 155.7 kB / 0.668 GB, free: 6.102 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004167/0.6291, allocations: 79.34 kB / 0.6681 GB, free: 6.023 MB / 474.7 MB Notification: Performance of SimCode: time 7.21e-07/0.6292, allocations: 4 kB / 0.6681 GB, free: 6.02 MB / 474.7 MB Notification: Performance of Templates: time 0.05305/0.6822, allocations: 26.86 MB / 0.6943 GB, free: 11.16 MB / 0.4948 GB make -j1 -f OpenIPSL_release_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRI.makefile (rm -f OpenIPSL_release_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRI.pipe ; mkfifo OpenIPSL_release_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRI.pipe ; head -c 1048576 < OpenIPSL_release_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRI.pipe >> ../files/OpenIPSL_release_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRI.sim & ./OpenIPSL_release_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRI -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_release_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRI.pipe 2>&1)