Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.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.Discretization.FourthOrder_AVRII_Continuous,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous") translateModel(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008862/0.0008862, allocations: 169.6 kB / 16.1 MB, free: 5.66 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.279/1.279, allocations: 223.3 MB / 240.1 MB, free: 9.965 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008111/0.0008112, allocations: 92.25 kB / 291.3 MB, free: 10.57 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.4405/0.4405, allocations: 78.61 MB / 421 MB, free: 9.043 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003696/0.0003697, allocations: 12.31 kB / 0.4894 GB, free: 9.234 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3187/0.3191, allocations: 69.36 MB / 0.5571 GB, free: 18.79 MB / 378.7 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous): time 0.00498/0.3241, allocations: 6.397 MB / 0.5634 GB, free: 12.37 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.003691/0.3278, allocations: 1.995 MB / 0.5653 GB, free: 10.37 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001071/0.3289, allocations: 12 kB / 0.5653 GB, free: 10.36 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008848/0.3298, allocations: 186.8 kB / 0.5655 GB, free: 10.18 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002359/0.3322, allocations: 0.7056 MB / 0.5662 GB, free: 9.469 MB / 378.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.001178/0.3334, allocations: 0.5914 MB / 0.5668 GB, free: 8.883 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.001173/0.3346, allocations: 1.495 MB / 0.5683 GB, free: 7.379 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003467/0.3349, allocations: 285.3 kB / 0.5685 GB, free: 7.09 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004927/0.3354, allocations: 0.5714 MB / 0.5691 GB, free: 6.516 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005936/0.336, allocations: 0.7425 MB / 0.5698 GB, free: 5.77 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001165/0.3362, allocations: 56 kB / 0.5699 GB, free: 5.715 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003675/0.3365, allocations: 195.9 kB / 0.57 GB, free: 5.523 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001874/0.3367, allocations: 258.7 kB / 0.5703 GB, free: 5.27 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003591/0.3371, allocations: 0.6228 MB / 0.5709 GB, free: 4.637 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007658/0.3379, allocations: 1.233 MB / 0.5721 GB, free: 3.402 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.3379, allocations: 0 / 0.5721 GB, free: 3.402 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.954e-06/0.3379, allocations: 0 / 0.5721 GB, free: 3.402 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.287e-05/0.3379, allocations: 0 / 0.5721 GB, free: 3.402 MB / 378.7 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.007007/0.3449, allocations: 2.49 MB / 0.5745 GB, free: 0.8477 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.742e-05/0.345, allocations: 8.031 kB / 0.5745 GB, free: 0.8398 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004574/0.3495, allocations: 0.7827 MB / 0.5753 GB, free: 56 kB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001453/0.351, allocations: 0.8902 MB / 0.5762 GB, free: 15.11 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000289/0.3513, allocations: 268.2 kB / 0.5764 GB, free: 14.81 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001583/0.3515, allocations: 83.91 kB / 0.5765 GB, free: 14.73 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002092/0.3536, allocations: 1.153 MB / 0.5776 GB, free: 13.56 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.862e-05/0.3536, allocations: 0 / 0.5776 GB, free: 13.56 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.954e-05/0.3537, allocations: 31.98 kB / 0.5777 GB, free: 13.53 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.6e-05/0.3537, allocations: 24 kB / 0.5777 GB, free: 13.51 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002039/0.3558, allocations: 1.05 MB / 0.5787 GB, free: 12.46 MB / 394.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.006319/0.3621, allocations: 3.906 MB / 0.5825 GB, free: 8.375 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007538/0.3697, allocations: 2.91 MB / 0.5854 GB, free: 5.371 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001378/0.3711, allocations: 0.7387 MB / 0.5861 GB, free: 4.625 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001174/0.3712, allocations: 20.97 kB / 0.5861 GB, free: 4.605 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001563/0.3727, allocations: 0.8802 MB / 0.587 GB, free: 3.707 MB / 394.7 MB Notification: Performance of pre-optimization done (n=96): time 2.905e-06/0.3728, allocations: 0 / 0.587 GB, free: 3.707 MB / 394.7 MB Notification: Performance of matching and sorting (n=96): time 0.02913/0.4019, allocations: 8.667 MB / 0.5954 GB, free: 10.97 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.503e-05/0.402, allocations: 119.8 kB / 0.5956 GB, free: 10.83 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001731/0.4038, allocations: 1.079 MB / 0.5966 GB, free: 9.738 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002271/0.404, allocations: 53.73 kB / 0.5967 GB, free: 9.68 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004031/0.4044, allocations: 496.8 kB / 0.5971 GB, free: 9.188 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003755/0.4048, allocations: 359 kB / 0.5975 GB, free: 8.832 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002065/0.405, allocations: 145.6 kB / 0.5976 GB, free: 8.684 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000114/0.4052, allocations: 301.1 kB / 0.5979 GB, free: 8.387 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001659/0.4068, allocations: 0.8238 MB / 0.5987 GB, free: 7.562 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00177/0.4086, allocations: 1.005 MB / 0.5997 GB, free: 6.52 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02352/0.4321, allocations: 6.016 MB / 0.6056 GB, free: 428 kB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.546e-06/0.4322, allocations: 0 / 0.6056 GB, free: 428 kB / 410.7 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.01413/0.4463, allocations: 5.168 MB / 0.6106 GB, free: 11.22 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.755e-05/0.4464, allocations: 63.41 kB / 0.6107 GB, free: 11.15 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.246e-05/0.4465, allocations: 4 kB / 0.6107 GB, free: 11.14 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005651/0.4521, allocations: 1.789 MB / 0.6124 GB, free: 9.352 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001533/0.4537, allocations: 299.5 kB / 0.6127 GB, free: 9.059 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01879/0.4725, allocations: 8.609 MB / 0.6211 GB, free: 312 kB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001885/0.4744, allocations: 238.8 kB / 0.6213 GB, free: 72 kB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001176/0.4745, allocations: 55.98 kB / 0.6214 GB, free: 16 kB / 426.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 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.0006364/0.4752, allocations: 307.8 kB / 0.6217 GB, free: 15.7 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001911/0.4754, allocations: 130.4 kB / 0.6218 GB, free: 15.57 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01337/0.4888, allocations: 4.713 MB / 0.6264 GB, free: 10.83 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.768e-05/0.4888, allocations: 16 kB / 0.6264 GB, free: 10.81 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.736e-05/0.4889, allocations: 11.94 kB / 0.6264 GB, free: 10.8 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.104e-05/0.4889, allocations: 7.969 kB / 0.6264 GB, free: 10.79 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.01529/0.5042, allocations: 6.301 MB / 0.6326 GB, free: 4.383 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.868e-06/0.5042, allocations: 8.016 kB / 0.6326 GB, free: 4.375 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005953/0.5048, allocations: 103.8 kB / 0.6327 GB, free: 4.273 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005709/0.5106, allocations: 1.891 MB / 0.6346 GB, free: 2.375 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001367/0.5107, allocations: 19.98 kB / 0.6346 GB, free: 2.355 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02041/0.5311, allocations: 9.653 MB / 0.644 GB, free: 8.418 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.915e-06/0.5312, allocations: 3.938 kB / 0.644 GB, free: 8.414 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01548/0.5467, allocations: 5.647 MB / 0.6495 GB, free: 2.734 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006624/0.5474, allocations: 235.2 kB / 0.6497 GB, free: 2.484 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003518/0.5477, allocations: 16 kB / 0.6498 GB, free: 2.469 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001319/0.5491, allocations: 143.9 kB / 0.6499 GB, free: 2.328 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006655/0.5498, allocations: 188.7 kB / 0.6501 GB, free: 2.141 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001116/0.5499, allocations: 27.98 kB / 0.6501 GB, free: 2.113 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001414/0.5513, allocations: 0.7313 MB / 0.6508 GB, free: 1.375 MB / 458.7 MB Notification: Performance of sort global known variables: time 2e-07/0.5513, allocations: 0 / 0.6508 GB, free: 1.375 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.00178/0.5531, allocations: 471.5 kB / 0.6513 GB, free: 0.9141 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,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.000361/0.5535, allocations: 142.9 kB / 0.6514 GB, free: 0.7656 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.00683/0.5603, allocations: 2.79 MB / 0.6541 GB, free: 13.93 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 4.608e-06/0.5603, allocations: 0 / 0.6541 GB, free: 13.93 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004506/0.5649, allocations: 1.823 MB / 0.6559 GB, free: 12.08 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001256/0.5661, allocations: 126.1 kB / 0.656 GB, free: 11.96 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004818/0.571, allocations: 2.815 MB / 0.6588 GB, free: 9.109 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008544/0.5718, allocations: 1.12 MB / 0.6599 GB, free: 7.957 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003673/0.5722, allocations: 83.41 kB / 0.6599 GB, free: 7.875 MB / 474.7 MB Notification: Performance of SimCode: time 9.92e-07/0.5722, allocations: 0 / 0.6599 GB, free: 7.875 MB / 474.7 MB Notification: Performance of Templates: time 0.03465/0.6069, allocations: 23.3 MB / 0.6827 GB, free: 0.5664 MB / 490.7 MB make -j1 -f OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.makefile (rm -f OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe ; mkfifo OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe ; head -c 1048576 < OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe >> ../files/OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.sim & ./OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe 2>&1)