Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.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.Discretization.FourthOrder_AVRII_Continuous,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_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_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001343/0.001342, allocations: 108.6 kB / 16.41 MB, free: 6.027 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.445/1.445, allocations: 222.9 MB / 240.1 MB, free: 4.391 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.001814/0.001814, allocations: 192.5 kB / 290.4 MB, free: 2.125 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4857/0.4857, allocations: 78.53 MB / 419.1 MB, free: 3.105 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001957/0.001957, allocations: 87.8 kB / 0.5543 GB, free: 0.9414 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4029/0.4048, allocations: 68.17 MB / 0.6209 GB, free: 9.648 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous): time 0.006121/0.411, allocations: 6.569 MB / 0.6273 GB, free: 3.633 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.004139/0.4152, allocations: 1.955 MB / 0.6292 GB, free: 1.672 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001261/0.4165, allocations: 12 kB / 0.6292 GB, free: 1.66 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001148/0.4177, allocations: 245.9 kB / 0.6294 GB, free: 1.418 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002925/0.4206, allocations: 0.8033 MB / 0.6302 GB, free: 0.6172 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.001543/0.4222, allocations: 0.6327 MB / 0.6308 GB, free: 15.99 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.002576/0.4248, allocations: 1.585 MB / 0.6324 GB, free: 14.4 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007156/0.4255, allocations: 322.4 kB / 0.6327 GB, free: 14.07 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001323/0.4268, allocations: 0.6613 MB / 0.6333 GB, free: 13.41 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001498/0.4283, allocations: 0.8167 MB / 0.6341 GB, free: 12.59 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005376/0.4289, allocations: 128 kB / 0.6343 GB, free: 12.46 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009572/0.4299, allocations: 255.9 kB / 0.6345 GB, free: 12.21 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006165/0.4305, allocations: 334.6 kB / 0.6348 GB, free: 11.88 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001241/0.4318, allocations: 0.6641 MB / 0.6355 GB, free: 11.21 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00288/0.4346, allocations: 1.668 MB / 0.6371 GB, free: 9.547 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.494e-06/0.4347, allocations: 4 kB / 0.6371 GB, free: 9.543 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.4347, allocations: 0 / 0.6371 GB, free: 9.543 MB / 446.1 MB Notification: Performance of Transformations before backend: time 3.56e-05/0.4347, allocations: 0 / 0.6371 GB, free: 9.543 MB / 446.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.009952/0.4447, allocations: 2.684 MB / 0.6397 GB, free: 6.793 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.007e-05/0.4447, allocations: 8.031 kB / 0.6397 GB, free: 6.785 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005426/0.4502, allocations: 0.7748 MB / 0.6405 GB, free: 6.008 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002072/0.4523, allocations: 0.8825 MB / 0.6414 GB, free: 5.07 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003737/0.4527, allocations: 260.2 kB / 0.6416 GB, free: 4.777 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002825/0.453, allocations: 87.91 kB / 0.6417 GB, free: 4.691 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002683/0.4556, allocations: 1.09 MB / 0.6428 GB, free: 3.59 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.121e-05/0.4557, allocations: 0 / 0.6428 GB, free: 3.59 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001239/0.4558, allocations: 36 kB / 0.6428 GB, free: 3.555 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.697e-05/0.4559, allocations: 16 kB / 0.6428 GB, free: 3.539 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002365/0.4582, allocations: 0.9954 MB / 0.6438 GB, free: 2.543 MB / 446.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.00783/0.4661, allocations: 3.793 MB / 0.6475 GB, free: 14.57 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007862/0.4739, allocations: 2.375 MB / 0.6498 GB, free: 12.11 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00147/0.4754, allocations: 0.6723 MB / 0.6505 GB, free: 11.43 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001058/0.4756, allocations: 16.98 kB / 0.6505 GB, free: 11.41 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00179/0.4773, allocations: 0.8254 MB / 0.6513 GB, free: 10.57 MB / 462.1 MB Notification: Performance of pre-optimization done (n=96): time 4.048e-06/0.4774, allocations: 0 / 0.6513 GB, free: 10.57 MB / 462.1 MB Notification: Performance of matching and sorting (n=96): time 0.03176/0.5091, allocations: 7.073 MB / 0.6582 GB, free: 3.43 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.75e-05/0.5093, allocations: 127.8 kB / 0.6583 GB, free: 3.281 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002173/0.5115, allocations: 1.083 MB / 0.6594 GB, free: 2.184 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002868/0.5118, allocations: 49.64 kB / 0.6594 GB, free: 2.129 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004951/0.5123, allocations: 492.8 kB / 0.6599 GB, free: 1.641 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005814/0.5129, allocations: 358.9 kB / 0.6602 GB, free: 1.285 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008446/0.5137, allocations: 291.4 kB / 0.6605 GB, free: 0.9961 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001329/0.5139, allocations: 305.1 kB / 0.6608 GB, free: 0.6953 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001807/0.5157, allocations: 0.7652 MB / 0.6615 GB, free: 15.93 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001927/0.5176, allocations: 0.9265 MB / 0.6624 GB, free: 14.96 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02515/0.5428, allocations: 5.587 MB / 0.6679 GB, free: 9.289 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.164e-05/0.5429, allocations: 0 / 0.6679 GB, free: 9.289 MB / 478.1 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.01594/0.5588, allocations: 4.34 MB / 0.6721 GB, free: 4.922 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001094/0.559, allocations: 59.41 kB / 0.6722 GB, free: 4.852 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.26e-05/0.559, allocations: 4 kB / 0.6722 GB, free: 4.848 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006008/0.565, allocations: 1.504 MB / 0.6737 GB, free: 3.34 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001647/0.5667, allocations: 311.5 kB / 0.674 GB, free: 3.035 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02159/0.5883, allocations: 8.258 MB / 0.682 GB, free: 10.62 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002164/0.5905, allocations: 202.8 kB / 0.6822 GB, free: 10.42 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003483/0.5909, allocations: 55.97 kB / 0.6823 GB, free: 10.37 MB / 494.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.0009973/0.5919, allocations: 298.2 kB / 0.6826 GB, free: 10.06 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004699/0.5924, allocations: 130.3 kB / 0.6827 GB, free: 9.934 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01408/0.6065, allocations: 3.881 MB / 0.6865 GB, free: 6.016 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.569e-05/0.6066, allocations: 12 kB / 0.6865 GB, free: 6.004 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.854e-05/0.6066, allocations: 4 kB / 0.6865 GB, free: 6 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.425e-05/0.6066, allocations: 7.984 kB / 0.6865 GB, free: 5.992 MB / 494.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.01727/0.6239, allocations: 5.448 MB / 0.6918 GB, free: 436 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.725e-05/0.624, allocations: 0 / 0.6918 GB, free: 436 kB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007546/0.6248, allocations: 103.8 kB / 0.6919 GB, free: 332 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006288/0.6311, allocations: 1.61 MB / 0.6935 GB, free: 14.71 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002558/0.6314, allocations: 24 kB / 0.6935 GB, free: 14.68 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0232/0.6546, allocations: 9.606 MB / 0.7029 GB, free: 4.793 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.029e-06/0.6546, allocations: 0 / 0.7029 GB, free: 4.793 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0165/0.6711, allocations: 4.735 MB / 0.7075 GB, free: 24 kB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000654/0.6718, allocations: 223.2 kB / 0.7077 GB, free: 15.79 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004823/0.6723, allocations: 27.98 kB / 0.7078 GB, free: 15.76 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001576/0.6739, allocations: 107.9 kB / 0.7079 GB, free: 15.65 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007687/0.6747, allocations: 192.7 kB / 0.708 GB, free: 15.46 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001627/0.6749, allocations: 28 kB / 0.7081 GB, free: 15.44 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001606/0.6765, allocations: 0.7237 MB / 0.7088 GB, free: 14.71 MB / 0.5137 GB Notification: Performance of sort global known variables: time 4.71e-07/0.6765, allocations: 0 / 0.7088 GB, free: 14.71 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.002202/0.6788, allocations: 475.5 kB / 0.7092 GB, free: 14.24 MB / 0.5137 GB 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.0004051/0.6792, allocations: 149.4 kB / 0.7094 GB, free: 14.09 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.007144/0.6863, allocations: 2.501 MB / 0.7118 GB, free: 11.54 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 5.36e-06/0.6864, allocations: 0.75 kB / 0.7118 GB, free: 11.54 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.004909/0.6913, allocations: 1.61 MB / 0.7134 GB, free: 9.895 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001479/0.6928, allocations: 121.2 kB / 0.7135 GB, free: 9.781 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005119/0.6979, allocations: 2.277 MB / 0.7157 GB, free: 7.473 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009941/0.6989, allocations: 1.128 MB / 0.7168 GB, free: 6.312 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004321/0.6994, allocations: 83.42 kB / 0.7169 GB, free: 6.23 MB / 0.5137 GB Notification: Performance of SimCode: time 7.21e-07/0.6994, allocations: 0 / 0.7169 GB, free: 6.23 MB / 0.5137 GB Notification: Performance of Templates: time 0.03764/0.737, allocations: 23.55 MB / 0.7399 GB, free: 14.66 MB / 0.545 GB make -j1 -f OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.makefile (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.sim & ./OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe 2>&1)