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.005315/0.005315, allocations: 99.75 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.353/1.353, allocations: 222.9 MB / 239.4 MB, free: 4.543 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.001389/0.001389, allocations: 180.5 kB / 289.7 MB, free: 2.262 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4604/0.4604, allocations: 78.52 MB / 418.4 MB, free: 3.152 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001553/0.001553, allocations: 76.09 kB / 0.5536 GB, free: 0.9336 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3197/0.3212, allocations: 68.17 MB / 0.6202 GB, free: 9.676 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete): time 0.004858/0.3261, allocations: 6.201 MB / 0.6263 GB, free: 4.008 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.002608/0.3288, allocations: 1.853 MB / 0.6281 GB, free: 2.152 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003366/0.3291, allocations: 8 kB / 0.6281 GB, free: 2.145 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003741/0.3295, allocations: 214.1 kB / 0.6283 GB, free: 1.934 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001312/0.3308, allocations: 0.7528 MB / 0.629 GB, free: 1.18 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.00093/0.3318, allocations: 0.5787 MB / 0.6296 GB, free: 0.6055 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001108/0.3329, allocations: 1.378 MB / 0.6309 GB, free: 15.22 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003819/0.3333, allocations: 287.9 kB / 0.6312 GB, free: 14.93 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006047/0.3339, allocations: 0.5912 MB / 0.6318 GB, free: 14.34 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007685/0.3347, allocations: 0.7584 MB / 0.6325 GB, free: 13.57 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001496/0.3348, allocations: 104 kB / 0.6326 GB, free: 13.47 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004265/0.3353, allocations: 239.9 kB / 0.6329 GB, free: 13.24 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002307/0.3355, allocations: 294.7 kB / 0.6331 GB, free: 12.95 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004901/0.336, allocations: 0.6097 MB / 0.6337 GB, free: 12.34 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001402/0.3374, allocations: 1.499 MB / 0.6352 GB, free: 10.84 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.3374, allocations: 0 / 0.6352 GB, free: 10.84 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.3374, allocations: 3.938 kB / 0.6352 GB, free: 10.83 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.331e-05/0.3375, allocations: 4 kB / 0.6352 GB, free: 10.83 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.007575/0.345, allocations: 2.523 MB / 0.6377 GB, free: 8.246 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.598e-05/0.3451, allocations: 8.031 kB / 0.6377 GB, free: 8.238 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004864/0.35, allocations: 0.7679 MB / 0.6384 GB, free: 7.469 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001206/0.3512, allocations: 0.8017 MB / 0.6392 GB, free: 6.609 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002772/0.3515, allocations: 264.1 kB / 0.6395 GB, free: 6.312 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001479/0.3516, allocations: 75.95 kB / 0.6395 GB, free: 6.238 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0023/0.3539, allocations: 1.177 MB / 0.6407 GB, free: 5.043 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.193e-05/0.354, allocations: 7.922 kB / 0.6407 GB, free: 5.035 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.17e-05/0.354, allocations: 28 kB / 0.6407 GB, free: 5.008 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.327e-05/0.3541, allocations: 16 kB / 0.6407 GB, free: 4.992 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001919/0.356, allocations: 0.9537 MB / 0.6417 GB, free: 4.035 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.005363/0.3614, allocations: 3.535 MB / 0.6451 GB, free: 320 kB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00722/0.3686, allocations: 2.305 MB / 0.6474 GB, free: 13.91 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001321/0.3699, allocations: 0.6595 MB / 0.648 GB, free: 13.25 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000103/0.37, allocations: 20.5 kB / 0.648 GB, free: 13.23 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.826e-05/0.3701, allocations: 47.22 kB / 0.6481 GB, free: 13.18 MB / 462.1 MB Notification: Performance of pre-optimization done (n=92): time 2.495e-06/0.3701, allocations: 0 / 0.6481 GB, free: 13.18 MB / 462.1 MB Notification: Performance of matching and sorting (n=92): time 0.02618/0.3963, allocations: 6.75 MB / 0.6547 GB, free: 6.367 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.024e-05/0.3964, allocations: 97.64 kB / 0.6548 GB, free: 6.254 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001317/0.3977, allocations: 0.9657 MB / 0.6557 GB, free: 5.27 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001344/0.3979, allocations: 49.69 kB / 0.6558 GB, free: 5.215 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003213/0.3982, allocations: 461.4 kB / 0.6562 GB, free: 4.758 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002968/0.3985, allocations: 329.3 kB / 0.6565 GB, free: 4.434 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004209/0.3989, allocations: 255.5 kB / 0.6567 GB, free: 4.176 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 9.086e-05/0.399, allocations: 301.1 kB / 0.657 GB, free: 3.879 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001453/0.4005, allocations: 0.7027 MB / 0.6577 GB, free: 3.176 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001612/0.4021, allocations: 0.9107 MB / 0.6586 GB, free: 2.195 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02155/0.4236, allocations: 5.073 MB / 0.6636 GB, free: 13.05 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.014e-05/0.4237, allocations: 4 kB / 0.6636 GB, free: 13.05 MB / 478.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.01309/0.4368, allocations: 4.141 MB / 0.6676 GB, free: 8.891 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.685e-05/0.4368, allocations: 8 kB / 0.6676 GB, free: 8.883 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.9e-05/0.4369, allocations: 4 kB / 0.6676 GB, free: 8.879 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005534/0.4424, allocations: 1.524 MB / 0.6691 GB, free: 7.352 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001151/0.4436, allocations: 263.5 kB / 0.6694 GB, free: 7.094 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01969/0.4633, allocations: 8.261 MB / 0.6774 GB, free: 14.68 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002058/0.4654, allocations: 175.1 kB / 0.6776 GB, free: 14.51 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000197/0.4656, allocations: 55.98 kB / 0.6777 GB, free: 14.45 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.000779/0.4664, allocations: 270.5 kB / 0.6779 GB, free: 14.18 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001265/0.4676, allocations: 345.5 kB / 0.6782 GB, free: 13.83 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01664/0.4843, allocations: 3.592 MB / 0.6817 GB, free: 10.22 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.897e-05/0.4844, allocations: 8 kB / 0.6818 GB, free: 10.21 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.644e-05/0.4844, allocations: 8 kB / 0.6818 GB, free: 10.21 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.137e-05/0.4844, allocations: 3.984 kB / 0.6818 GB, free: 10.2 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.02034/0.5047, allocations: 5.12 MB / 0.6868 GB, free: 4.977 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.357e-05/0.5048, allocations: 3.938 kB / 0.6868 GB, free: 4.973 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008236/0.5056, allocations: 119.8 kB / 0.6869 GB, free: 4.855 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007826/0.5135, allocations: 1.578 MB / 0.6884 GB, free: 3.27 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001575/0.5137, allocations: 23.98 kB / 0.6885 GB, free: 3.246 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02054/0.5342, allocations: 10.77 MB / 0.699 GB, free: 8.125 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.5342, allocations: 0 / 0.699 GB, free: 8.125 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0145/0.5487, allocations: 4.622 MB / 0.7035 GB, free: 3.473 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003742/0.5491, allocations: 212.1 kB / 0.7037 GB, free: 3.246 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001921/0.5493, allocations: 20 kB / 0.7037 GB, free: 3.227 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009869/0.5503, allocations: 91.89 kB / 0.7038 GB, free: 3.137 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004946/0.5508, allocations: 172.8 kB / 0.704 GB, free: 2.969 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.647e-05/0.5509, allocations: 24 kB / 0.704 GB, free: 2.945 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0008849/0.5518, allocations: 0.6395 MB / 0.7046 GB, free: 2.297 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.8e-07/0.5518, allocations: 0 / 0.7046 GB, free: 2.297 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.001303/0.5531, allocations: 443.7 kB / 0.705 GB, free: 1.863 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.0002636/0.5534, allocations: 142.3 kB / 0.7052 GB, free: 1.719 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.005986/0.5594, allocations: 2.291 MB / 0.7074 GB, free: 15.41 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.5594, allocations: 4 kB / 0.7074 GB, free: 15.41 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.003922/0.5633, allocations: 1.322 MB / 0.7087 GB, free: 14.06 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001328/0.5647, allocations: 347.2 kB / 0.709 GB, free: 13.71 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003705/0.5684, allocations: 2.092 MB / 0.7111 GB, free: 11.59 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005919/0.569, allocations: 1.081 MB / 0.7121 GB, free: 10.48 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0003217/0.5693, allocations: 99.33 kB / 0.7122 GB, free: 10.38 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002431/0.5696, allocations: 75.41 kB / 0.7123 GB, free: 10.31 MB / 0.5137 GB Notification: Performance of SimCode: time 4.31e-07/0.5696, allocations: 0 / 0.7123 GB, free: 10.31 MB / 0.5137 GB Notification: Performance of Templates: time 0.03088/0.6005, allocations: 21.66 MB / 0.7334 GB, free: 4.637 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)