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.001259/0.001259, allocations: 105.6 kB / 16.41 MB, free: 6.512 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.418/1.418, allocations: 222.9 MB / 240.1 MB, free: 4.387 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.001382/0.001382, allocations: 192.4 kB / 290.4 MB, free: 2.117 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4739/0.4739, allocations: 78.53 MB / 419.1 MB, free: 3.191 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00152/0.00152, allocations: 83.88 kB / 0.5543 GB, free: 0.9141 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.482/0.4835, allocations: 68.16 MB / 0.6209 GB, free: 9.625 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete): time 0.005774/0.4893, allocations: 6.194 MB / 0.6269 GB, free: 3.969 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.00374/0.4931, allocations: 1.861 MB / 0.6288 GB, free: 2.105 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008143/0.494, allocations: 8 kB / 0.6288 GB, free: 2.098 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005328/0.4946, allocations: 214.1 kB / 0.629 GB, free: 1.887 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001738/0.4963, allocations: 0.7533 MB / 0.6297 GB, free: 1.133 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.001176/0.4975, allocations: 0.581 MB / 0.6303 GB, free: 0.5586 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001523/0.499, allocations: 1.378 MB / 0.6316 GB, free: 15.17 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004387/0.4995, allocations: 287.9 kB / 0.6319 GB, free: 14.88 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006708/0.5001, allocations: 0.5873 MB / 0.6325 GB, free: 14.29 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008026/0.501, allocations: 0.7623 MB / 0.6332 GB, free: 13.53 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001586/0.5011, allocations: 104 kB / 0.6333 GB, free: 13.43 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004834/0.5016, allocations: 239.9 kB / 0.6335 GB, free: 13.19 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002421/0.5019, allocations: 294.7 kB / 0.6338 GB, free: 12.9 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005054/0.5024, allocations: 0.6097 MB / 0.6344 GB, free: 12.29 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001508/0.5039, allocations: 1.492 MB / 0.6359 GB, free: 10.8 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.763e-06/0.5039, allocations: 0 / 0.6359 GB, free: 10.8 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.304e-06/0.5039, allocations: 3.938 kB / 0.6359 GB, free: 10.79 MB / 446.1 MB Notification: Performance of Transformations before backend: time 2.872e-05/0.504, allocations: 0 / 0.6359 GB, free: 10.79 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.008248/0.5122, allocations: 2.482 MB / 0.6383 GB, free: 8.254 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.894e-05/0.5123, allocations: 12.03 kB / 0.6383 GB, free: 8.242 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004976/0.5173, allocations: 0.7633 MB / 0.6391 GB, free: 7.477 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001448/0.5187, allocations: 0.789 MB / 0.6398 GB, free: 6.629 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003019/0.519, allocations: 264.1 kB / 0.6401 GB, free: 6.332 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001537/0.5192, allocations: 76 kB / 0.6401 GB, free: 6.258 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002417/0.5216, allocations: 1.174 MB / 0.6413 GB, free: 5.062 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.006e-05/0.5217, allocations: 3.938 kB / 0.6413 GB, free: 5.059 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.332e-05/0.5218, allocations: 27.98 kB / 0.6413 GB, free: 5.031 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.215e-05/0.5218, allocations: 20 kB / 0.6413 GB, free: 5.012 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001918/0.5237, allocations: 0.9537 MB / 0.6423 GB, free: 4.055 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.005957/0.5297, allocations: 3.523 MB / 0.6457 GB, free: 352 kB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007523/0.5372, allocations: 2.303 MB / 0.648 GB, free: 13.95 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001375/0.5386, allocations: 0.6673 MB / 0.6486 GB, free: 13.27 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.044e-05/0.5387, allocations: 12.64 kB / 0.6486 GB, free: 13.26 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.126e-05/0.5388, allocations: 43.22 kB / 0.6487 GB, free: 13.21 MB / 462.1 MB Notification: Performance of pre-optimization done (n=92): time 3.366e-06/0.5388, allocations: 4 kB / 0.6487 GB, free: 13.21 MB / 462.1 MB Notification: Performance of matching and sorting (n=92): time 0.02772/0.5665, allocations: 6.753 MB / 0.6553 GB, free: 6.395 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000107/0.5667, allocations: 101.6 kB / 0.6554 GB, free: 6.277 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001411/0.5681, allocations: 0.9617 MB / 0.6563 GB, free: 5.297 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001762/0.5683, allocations: 45.7 kB / 0.6563 GB, free: 5.246 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004014/0.5687, allocations: 460.8 kB / 0.6568 GB, free: 4.789 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003541/0.569, allocations: 307.6 kB / 0.6571 GB, free: 4.484 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004302/0.5695, allocations: 263.5 kB / 0.6573 GB, free: 4.219 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001012/0.5696, allocations: 301.1 kB / 0.6576 GB, free: 3.922 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001442/0.571, allocations: 0.6988 MB / 0.6583 GB, free: 3.223 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001592/0.5726, allocations: 0.9146 MB / 0.6592 GB, free: 2.238 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.022/0.5946, allocations: 5.065 MB / 0.6641 GB, free: 13.1 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.316e-05/0.5947, allocations: 0 / 0.6641 GB, free: 13.1 MB / 478.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.01354/0.6082, allocations: 4.141 MB / 0.6682 GB, free: 8.945 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.376e-05/0.6083, allocations: 8 kB / 0.6682 GB, free: 8.938 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.098e-05/0.6083, allocations: 4 kB / 0.6682 GB, free: 8.934 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005563/0.6139, allocations: 1.52 MB / 0.6697 GB, free: 7.41 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001293/0.6152, allocations: 263.6 kB / 0.6699 GB, free: 7.152 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01976/0.635, allocations: 8.26 MB / 0.678 GB, free: 14.73 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001732/0.6368, allocations: 171 kB / 0.6782 GB, free: 14.57 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001107/0.6369, allocations: 51.98 kB / 0.6782 GB, free: 14.52 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.0006114/0.6375, allocations: 274.8 kB / 0.6785 GB, free: 14.24 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009683/0.6385, allocations: 336.8 kB / 0.6788 GB, free: 13.9 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0122/0.6507, allocations: 3.596 MB / 0.6823 GB, free: 10.29 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.507e-05/0.6507, allocations: 8 kB / 0.6823 GB, free: 10.28 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.245e-05/0.6508, allocations: 12 kB / 0.6823 GB, free: 10.27 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.591e-05/0.6508, allocations: 3.984 kB / 0.6823 GB, free: 10.27 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.01447/0.6653, allocations: 5.12 MB / 0.6873 GB, free: 5.039 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.188e-05/0.6653, allocations: 3.938 kB / 0.6873 GB, free: 5.035 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005894/0.6659, allocations: 115.8 kB / 0.6874 GB, free: 4.922 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005571/0.6715, allocations: 1.575 MB / 0.689 GB, free: 3.34 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.995e-05/0.6716, allocations: 19.98 kB / 0.689 GB, free: 3.32 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01983/0.6914, allocations: 10.77 MB / 0.6995 GB, free: 8.207 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.6915, allocations: 4 kB / 0.6995 GB, free: 8.203 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01481/0.7063, allocations: 4.613 MB / 0.704 GB, free: 3.559 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004598/0.7068, allocations: 211.5 kB / 0.7042 GB, free: 3.332 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000174/0.7069, allocations: 16 kB / 0.7042 GB, free: 3.316 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001025/0.708, allocations: 87.89 kB / 0.7043 GB, free: 3.23 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005594/0.7085, allocations: 176.8 kB / 0.7045 GB, free: 3.059 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.612e-05/0.7086, allocations: 20 kB / 0.7045 GB, free: 3.039 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0008693/0.7095, allocations: 0.6434 MB / 0.7051 GB, free: 2.387 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.2e-07/0.7095, allocations: 0 / 0.7051 GB, free: 2.387 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.001432/0.7109, allocations: 443.6 kB / 0.7056 GB, free: 1.953 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.0002915/0.7112, allocations: 139.1 kB / 0.7057 GB, free: 1.809 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.006074/0.7173, allocations: 2.284 MB / 0.7079 GB, free: 15.51 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.7173, allocations: 0 / 0.7079 GB, free: 15.51 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.004155/0.7215, allocations: 1.317 MB / 0.7092 GB, free: 14.17 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001754/0.7233, allocations: 347 kB / 0.7095 GB, free: 13.82 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00397/0.7273, allocations: 2.079 MB / 0.7116 GB, free: 11.71 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006058/0.7279, allocations: 1.084 MB / 0.7126 GB, free: 10.59 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002947/0.7282, allocations: 75.42 kB / 0.7127 GB, free: 10.52 MB / 0.5137 GB Notification: Performance of SimCode: time 1.142e-06/0.7282, allocations: 0 / 0.7127 GB, free: 10.52 MB / 0.5137 GB Notification: Performance of Templates: time 0.02499/0.7532, allocations: 21.44 MB / 0.7336 GB, free: 5.035 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)