Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.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_Discrete,tolerance=0.001,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete") translateModel(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete,tolerance=0.001,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008814/0.0008814, allocations: 176.9 kB / 15.42 MB, free: 6.207 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.208/1.208, allocations: 222.9 MB / 239 MB, free: 100 kB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007692/0.0007692, allocations: 91.69 kB / 289.8 MB, free: 4.602 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.2949/0.2949, allocations: 78.43 MB / 419 MB, free: 92 kB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000338/0.000338, allocations: 8 kB / 498.4 MB, free: 35.49 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3074/0.3078, allocations: 68.75 MB / 0.5539 GB, free: 10.41 MB / 378.7 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete): time 0.006085/0.3139, allocations: 6.507 MB / 0.5602 GB, free: 6.148 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.003205/0.3171, allocations: 1.899 MB / 0.5621 GB, free: 4.801 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004425/0.3176, allocations: 14.16 kB / 0.5621 GB, free: 4.797 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004247/0.3181, allocations: 163.9 kB / 0.5623 GB, free: 4.73 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001427/0.3195, allocations: 0.6723 MB / 0.5629 GB, free: 4.293 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.001054/0.3206, allocations: 0.5479 MB / 0.5635 GB, free: 3.996 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.001139/0.3217, allocations: 1.31 MB / 0.5647 GB, free: 3.355 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003105/0.322, allocations: 252.9 kB / 0.565 GB, free: 3.234 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005472/0.3226, allocations: 0.517 MB / 0.5655 GB, free: 2.996 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006784/0.3233, allocations: 0.6874 MB / 0.5662 GB, free: 2.691 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000131/0.3234, allocations: 59.91 kB / 0.5662 GB, free: 2.688 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004252/0.3238, allocations: 186.8 kB / 0.5664 GB, free: 2.645 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001939/0.324, allocations: 238.2 kB / 0.5666 GB, free: 2.504 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000442/0.3245, allocations: 0.5488 MB / 0.5672 GB, free: 2.152 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001339/0.3258, allocations: 1.395 MB / 0.5685 GB, free: 1.625 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.3258, allocations: 5.062 kB / 0.5685 GB, free: 1.621 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3258, allocations: 0 / 0.5685 GB, free: 1.621 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.332e-05/0.3259, allocations: 0 / 0.5685 GB, free: 1.621 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: 178 * Number of variables: 178 Notification: Performance of Generate backend data structure: time 0.006924/0.3328, allocations: 2.25 MB / 0.5707 GB, free: 0.6055 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.367e-05/0.3328, allocations: 13.91 kB / 0.5707 GB, free: 0.6016 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0047/0.3375, allocations: 0.7626 MB / 0.5715 GB, free: 464 kB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0011/0.3387, allocations: 0.7906 MB / 0.5722 GB, free: 15.89 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002637/0.3389, allocations: 259.6 kB / 0.5725 GB, free: 15.68 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001533/0.3391, allocations: 77.91 kB / 0.5726 GB, free: 15.65 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002244/0.3413, allocations: 1.17 MB / 0.5737 GB, free: 15.18 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.687e-05/0.3414, allocations: 8.531 kB / 0.5737 GB, free: 15.18 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.327e-05/0.3415, allocations: 30.03 kB / 0.5737 GB, free: 15.15 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.574e-05/0.3415, allocations: 18.03 kB / 0.5738 GB, free: 15.15 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001873/0.3434, allocations: 0.9475 MB / 0.5747 GB, free: 14.85 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.005358/0.3487, allocations: 3.544 MB / 0.5781 GB, free: 12.15 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006856/0.3556, allocations: 2.312 MB / 0.5804 GB, free: 10.88 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001235/0.3569, allocations: 0.659 MB / 0.5811 GB, free: 10.54 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001046/0.357, allocations: 19.12 kB / 0.5811 GB, free: 10.53 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.544e-05/0.357, allocations: 50.91 kB / 0.5811 GB, free: 10.48 MB / 394.7 MB Notification: Performance of pre-optimization done (n=92): time 2.495e-06/0.357, allocations: 0.9375 kB / 0.5811 GB, free: 10.48 MB / 394.7 MB Notification: Performance of matching and sorting (n=92): time 0.0248/0.3818, allocations: 6.742 MB / 0.5877 GB, free: 7.039 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001042/0.382, allocations: 102.1 kB / 0.5878 GB, free: 6.934 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00156/0.3835, allocations: 0.9609 MB / 0.5887 GB, free: 6.383 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001621/0.3837, allocations: 41.83 kB / 0.5888 GB, free: 6.34 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003188/0.384, allocations: 466.4 kB / 0.5892 GB, free: 5.93 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003225/0.3844, allocations: 312.6 kB / 0.5895 GB, free: 5.66 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001711/0.3845, allocations: 135.3 kB / 0.5897 GB, free: 5.57 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.468e-05/0.3846, allocations: 301.1 kB / 0.5899 GB, free: 5.273 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001393/0.386, allocations: 0.6975 MB / 0.5906 GB, free: 4.922 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001555/0.3876, allocations: 0.9207 MB / 0.5915 GB, free: 4.32 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02029/0.4079, allocations: 5.062 MB / 0.5965 GB, free: 15.19 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.465e-05/0.408, allocations: 0 / 0.5965 GB, free: 15.19 MB / 410.7 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.0123/0.4203, allocations: 4.145 MB / 0.6005 GB, free: 11.03 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.619e-05/0.4203, allocations: 4 kB / 0.6005 GB, free: 11.02 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.84e-05/0.4204, allocations: 8 kB / 0.6005 GB, free: 11.02 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004961/0.4253, allocations: 1.508 MB / 0.602 GB, free: 9.504 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001204/0.4265, allocations: 259.6 kB / 0.6022 GB, free: 9.25 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01656/0.4431, allocations: 7.625 MB / 0.6097 GB, free: 1.48 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001646/0.4448, allocations: 182.9 kB / 0.6099 GB, free: 1.301 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001023/0.4449, allocations: 47.98 kB / 0.6099 GB, free: 1.254 MB / 410.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: 23 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 4 (aVRTypeII.vf,aVRTypeII.vr2,aVRTypeII.vr1,aVRTypeII.vm) * Top-level inputs: 0 Notification: Strong component statistics for initialization (151): * Single equations (assignments): 150 * Array equations: 0 * Algorithm blocks: 0 * 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.0005469/0.4455, allocations: 265.4 kB / 0.6102 GB, free: 0.9883 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008723/0.4463, allocations: 337.2 kB / 0.6105 GB, free: 0.6484 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01072/0.4571, allocations: 3.588 MB / 0.614 GB, free: 13.04 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.366e-05/0.4571, allocations: 11.94 kB / 0.614 GB, free: 13.02 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.054e-05/0.4571, allocations: 8 kB / 0.614 GB, free: 13.02 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.815e-05/0.4572, allocations: 3.984 kB / 0.614 GB, free: 13.01 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 postOpt removeSimpleEquations (simulation): time 0.01316/0.4703, allocations: 5.137 MB / 0.619 GB, free: 7.773 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.935e-06/0.4704, allocations: 0 / 0.619 GB, free: 7.773 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005593/0.4709, allocations: 107.9 kB / 0.6191 GB, free: 7.668 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004917/0.4759, allocations: 1.582 MB / 0.6207 GB, free: 6.078 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.47e-05/0.476, allocations: 27.94 kB / 0.6207 GB, free: 6.051 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0163/0.4923, allocations: 9.889 MB / 0.6304 GB, free: 11.82 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.4923, allocations: 0 / 0.6304 GB, free: 11.82 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.013/0.5053, allocations: 4.605 MB / 0.6349 GB, free: 7.191 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003926/0.5057, allocations: 215.5 kB / 0.6351 GB, free: 6.961 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001998/0.5059, allocations: 16 kB / 0.6351 GB, free: 6.945 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000993/0.5069, allocations: 84.16 kB / 0.6352 GB, free: 6.863 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000471/0.5074, allocations: 168.7 kB / 0.6353 GB, free: 6.699 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.691e-05/0.5075, allocations: 31.92 kB / 0.6353 GB, free: 6.668 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0008115/0.5083, allocations: 0.6473 MB / 0.636 GB, free: 6.012 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.322e-06/0.5083, allocations: 0 / 0.636 GB, free: 6.012 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001277/0.5096, allocations: 447.5 kB / 0.6364 GB, free: 5.574 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 6 (order2.delta,order2.w,order4.delta,order4.w,order4.e1q,order4.e1d) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 4 (aVRTypeII.vm,aVRTypeII.vr1,aVRTypeII.vr2,aVRTypeII.vf) * Top-level inputs: 0 Notification: Strong component statistics for simulation (61): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 0 * 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 {(20,12,23.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002332/0.5098, allocations: 127.2 kB / 0.6365 GB, free: 5.441 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005416/0.5153, allocations: 2.297 MB / 0.6388 GB, free: 3.125 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.5153, allocations: 4.062 kB / 0.6388 GB, free: 3.121 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003557/0.5188, allocations: 1.317 MB / 0.6401 GB, free: 1.789 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001356/0.5202, allocations: 345.1 kB / 0.6404 GB, free: 1.441 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003693/0.5239, allocations: 2.437 MB / 0.6428 GB, free: 14.98 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005619/0.5245, allocations: 1.084 MB / 0.6438 GB, free: 13.87 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0003751/0.5249, allocations: 107.3 kB / 0.6439 GB, free: 13.76 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002162/0.5251, allocations: 71.36 kB / 0.644 GB, free: 13.69 MB / 458.7 MB Notification: Performance of SimCode: time 3.4e-07/0.5251, allocations: 0 / 0.644 GB, free: 13.69 MB / 458.7 MB Notification: Performance of Templates: time 0.02853/0.5536, allocations: 19.16 MB / 0.6627 GB, free: 10.52 MB / 474.7 MB make -j1 -f OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.makefile (rm -f OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe ; mkfifo OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe ; head -c 1048576 < OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe >> ../files/OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.sim & ./OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe 2>&1)