Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.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_Discrete,tolerance=0.001,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="OpenIPSL_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_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005031/0.005031, allocations: 102.7 kB / 15.73 MB, free: 6.039 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.322/1.322, allocations: 222.9 MB / 239.4 MB, free: 4.566 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.001286/0.001287, allocations: 184.5 kB / 289.7 MB, free: 2.285 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4671/0.4671, allocations: 78.52 MB / 418.4 MB, free: 3.184 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00155/0.00155, allocations: 76.09 kB / 0.5536 GB, free: 0.9766 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3574/0.3589, allocations: 68.17 MB / 0.6202 GB, free: 9.742 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete): time 0.005272/0.3643, allocations: 6.198 MB / 0.6263 GB, free: 4.043 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003165/0.3674, allocations: 1.853 MB / 0.6281 GB, free: 2.188 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008579/0.3683, allocations: 12 kB / 0.6281 GB, free: 2.176 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006009/0.369, allocations: 214.1 kB / 0.6283 GB, free: 1.965 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001967/0.371, allocations: 0.8018 MB / 0.6291 GB, free: 1.164 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.001147/0.3721, allocations: 0.5822 MB / 0.6296 GB, free: 0.5859 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001439/0.3736, allocations: 1.378 MB / 0.631 GB, free: 15.2 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004082/0.374, allocations: 287.9 kB / 0.6313 GB, free: 14.91 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000663/0.3747, allocations: 0.5873 MB / 0.6318 GB, free: 14.32 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007623/0.3754, allocations: 0.7583 MB / 0.6326 GB, free: 13.56 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001515/0.3756, allocations: 104 kB / 0.6327 GB, free: 13.46 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004352/0.376, allocations: 239.9 kB / 0.6329 GB, free: 13.22 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002388/0.3763, allocations: 294.7 kB / 0.6332 GB, free: 12.93 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005393/0.3768, allocations: 0.6136 MB / 0.6338 GB, free: 12.32 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001592/0.3784, allocations: 1.492 MB / 0.6352 GB, free: 10.82 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.379e-06/0.3784, allocations: 0 / 0.6352 GB, free: 10.82 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.3785, allocations: 0 / 0.6352 GB, free: 10.82 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.895e-05/0.3785, allocations: 0 / 0.6352 GB, free: 10.82 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: 178 * Number of variables: 178 Notification: Performance of Generate backend data structure: time 0.007965/0.3865, allocations: 2.481 MB / 0.6377 GB, free: 8.285 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.691e-05/0.3865, allocations: 12.03 kB / 0.6377 GB, free: 8.273 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00499/0.3915, allocations: 0.7594 MB / 0.6384 GB, free: 7.512 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001311/0.3928, allocations: 0.7968 MB / 0.6392 GB, free: 6.656 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002906/0.3931, allocations: 256.2 kB / 0.6394 GB, free: 6.367 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001652/0.3933, allocations: 80 kB / 0.6395 GB, free: 6.289 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002394/0.3957, allocations: 1.173 MB / 0.6407 GB, free: 5.098 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.068e-05/0.3958, allocations: 3.938 kB / 0.6407 GB, free: 5.094 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.637e-05/0.3958, allocations: 28 kB / 0.6407 GB, free: 5.066 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.657e-05/0.3959, allocations: 20 kB / 0.6407 GB, free: 5.047 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001997/0.3979, allocations: 0.9459 MB / 0.6416 GB, free: 4.098 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.005843/0.4037, allocations: 3.523 MB / 0.6451 GB, free: 396 kB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007129/0.4109, allocations: 2.315 MB / 0.6473 GB, free: 13.98 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001415/0.4123, allocations: 0.6634 MB / 0.648 GB, free: 13.31 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001162/0.4124, allocations: 8.656 kB / 0.648 GB, free: 13.3 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.403e-05/0.4125, allocations: 55.14 kB / 0.648 GB, free: 13.24 MB / 462.1 MB Notification: Performance of pre-optimization done (n=92): time 2.926e-06/0.4125, allocations: 3.938 kB / 0.648 GB, free: 13.23 MB / 462.1 MB Notification: Performance of matching and sorting (n=92): time 0.02594/0.4384, allocations: 6.745 MB / 0.6546 GB, free: 6.43 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000113/0.4386, allocations: 93.77 kB / 0.6547 GB, free: 6.32 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00133/0.4399, allocations: 0.9733 MB / 0.6557 GB, free: 5.328 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001547/0.4401, allocations: 41.7 kB / 0.6557 GB, free: 5.281 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003523/0.4405, allocations: 460.8 kB / 0.6562 GB, free: 4.824 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003361/0.4408, allocations: 315.6 kB / 0.6565 GB, free: 4.512 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000456/0.4413, allocations: 259.4 kB / 0.6567 GB, free: 4.25 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 9.108e-05/0.4414, allocations: 301.1 kB / 0.657 GB, free: 3.953 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001445/0.4428, allocations: 0.6988 MB / 0.6577 GB, free: 3.254 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001579/0.4444, allocations: 0.9147 MB / 0.6586 GB, free: 2.27 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02176/0.4662, allocations: 5.057 MB / 0.6635 GB, free: 13.14 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.431e-05/0.4662, allocations: 0 / 0.6635 GB, free: 13.14 MB / 478.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.01269/0.4789, allocations: 4.148 MB / 0.6676 GB, free: 8.973 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.043e-05/0.479, allocations: 8 kB / 0.6676 GB, free: 8.965 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.682e-05/0.479, allocations: 4 kB / 0.6676 GB, free: 8.961 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005265/0.4843, allocations: 1.524 MB / 0.6691 GB, free: 7.434 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001224/0.4856, allocations: 255.6 kB / 0.6693 GB, free: 7.184 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01887/0.5044, allocations: 8.268 MB / 0.6774 GB, free: 14.76 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001542/0.506, allocations: 167 kB / 0.6775 GB, free: 14.6 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001511/0.5062, allocations: 59.97 kB / 0.6776 GB, free: 14.54 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: 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.0005685/0.5068, allocations: 258.5 kB / 0.6778 GB, free: 14.28 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001035/0.5078, allocations: 340.8 kB / 0.6782 GB, free: 13.93 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01135/0.5192, allocations: 3.596 MB / 0.6817 GB, free: 10.32 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.402e-05/0.5192, allocations: 8 kB / 0.6817 GB, free: 10.31 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.331e-05/0.5192, allocations: 8 kB / 0.6817 GB, free: 10.3 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.094e-05/0.5193, allocations: 3.984 kB / 0.6817 GB, free: 10.3 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.01384/0.5331, allocations: 5.12 MB / 0.6867 GB, free: 5.078 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.445e-05/0.5332, allocations: 3.938 kB / 0.6867 GB, free: 5.074 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006159/0.5338, allocations: 115.9 kB / 0.6868 GB, free: 4.961 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005343/0.5391, allocations: 1.586 MB / 0.6884 GB, free: 3.367 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001508/0.5393, allocations: 20 kB / 0.6884 GB, free: 3.348 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01989/0.5592, allocations: 10.76 MB / 0.6989 GB, free: 8.238 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/0.5593, allocations: 0 / 0.6989 GB, free: 8.238 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0141/0.5734, allocations: 4.621 MB / 0.7034 GB, free: 3.586 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005399/0.574, allocations: 203.7 kB / 0.7036 GB, free: 3.367 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002042/0.5742, allocations: 23.98 kB / 0.7036 GB, free: 3.344 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009718/0.5752, allocations: 91.91 kB / 0.7037 GB, free: 3.254 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005884/0.5758, allocations: 172.7 kB / 0.7039 GB, free: 3.086 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.069e-05/0.5759, allocations: 27.98 kB / 0.7039 GB, free: 3.059 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0009245/0.5768, allocations: 0.6434 MB / 0.7045 GB, free: 2.406 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.51e-07/0.5768, allocations: 0 / 0.7045 GB, free: 2.406 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.001499/0.5783, allocations: 443.6 kB / 0.7049 GB, free: 1.973 MB / 0.4981 GB 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.000277/0.5786, allocations: 130.4 kB / 0.7051 GB, free: 1.84 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.005826/0.5844, allocations: 2.287 MB / 0.7073 GB, free: 15.54 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.5844, allocations: 0 / 0.7073 GB, free: 15.54 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.003718/0.5882, allocations: 1.322 MB / 0.7086 GB, free: 14.19 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00147/0.5896, allocations: 343 kB / 0.7089 GB, free: 13.84 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003807/0.5935, allocations: 2.046 MB / 0.7109 GB, free: 11.77 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006174/0.5941, allocations: 1.077 MB / 0.712 GB, free: 10.66 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0003266/0.5944, allocations: 99.33 kB / 0.7121 GB, free: 10.56 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002249/0.5947, allocations: 79.34 kB / 0.7121 GB, free: 10.49 MB / 0.5137 GB Notification: Performance of SimCode: time 1.052e-06/0.5947, allocations: 0 / 0.7121 GB, free: 10.49 MB / 0.5137 GB Notification: Performance of Templates: time 0.03272/0.6274, allocations: 21.66 MB / 0.7333 GB, free: 4.816 MB / 0.5294 GB make -j1 -f OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.makefile (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.sim & ./OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe 2>&1)