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.001475/0.001475, allocations: 112.3 kB / 16.41 MB, free: 6.52 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.719/1.719, allocations: 222.9 MB / 240.1 MB, free: 4.363 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.001811/0.001811, allocations: 196.4 kB / 290.4 MB, free: 2.086 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.5365/0.5365, allocations: 78.54 MB / 419.1 MB, free: 3.117 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002364/0.002364, allocations: 83.88 kB / 0.5543 GB, free: 0.8711 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3849/0.3872, allocations: 68.18 MB / 0.6209 GB, free: 9.531 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete): time 0.005748/0.393, allocations: 6.197 MB / 0.627 GB, free: 3.926 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003879/0.397, allocations: 1.849 MB / 0.6288 GB, free: 2.074 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000856/0.3979, allocations: 12 kB / 0.6288 GB, free: 2.062 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005511/0.3985, allocations: 214.1 kB / 0.629 GB, free: 1.852 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001953/0.4004, allocations: 0.8089 MB / 0.6298 GB, free: 1.043 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.001208/0.4016, allocations: 0.5776 MB / 0.6303 GB, free: 480 kB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001729/0.4034, allocations: 1.382 MB / 0.6317 GB, free: 15.08 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004754/0.4039, allocations: 283.9 kB / 0.632 GB, free: 14.79 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007875/0.4047, allocations: 0.5912 MB / 0.6325 GB, free: 14.2 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009316/0.4056, allocations: 0.7584 MB / 0.6333 GB, free: 13.44 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001729/0.4058, allocations: 104 kB / 0.6334 GB, free: 13.34 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000525/0.4063, allocations: 247.8 kB / 0.6336 GB, free: 13.09 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002675/0.4066, allocations: 282.7 kB / 0.6339 GB, free: 12.82 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005993/0.4072, allocations: 0.6097 MB / 0.6345 GB, free: 12.2 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002102/0.4093, allocations: 1.499 MB / 0.6359 GB, free: 10.7 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.59e-06/0.4093, allocations: 4 kB / 0.6359 GB, free: 10.7 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.4094, allocations: 3.938 kB / 0.6359 GB, free: 10.7 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.745e-05/0.4094, allocations: 0 / 0.6359 GB, free: 10.7 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.008571/0.418, allocations: 2.527 MB / 0.6384 GB, free: 8.109 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.604e-05/0.418, allocations: 12.03 kB / 0.6384 GB, free: 8.098 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005086/0.4231, allocations: 0.7679 MB / 0.6392 GB, free: 7.328 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001705/0.4248, allocations: 0.7977 MB / 0.64 GB, free: 6.473 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000352/0.4252, allocations: 260.2 kB / 0.6402 GB, free: 6.18 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000172/0.4254, allocations: 79.95 kB / 0.6403 GB, free: 6.102 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00263/0.428, allocations: 1.176 MB / 0.6414 GB, free: 4.906 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.373e-05/0.4281, allocations: 7.875 kB / 0.6414 GB, free: 4.898 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.917e-05/0.4282, allocations: 24 kB / 0.6415 GB, free: 4.875 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.749e-05/0.4282, allocations: 23.98 kB / 0.6415 GB, free: 4.852 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00212/0.4303, allocations: 0.9459 MB / 0.6424 GB, free: 3.902 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.006537/0.4369, allocations: 3.539 MB / 0.6459 GB, free: 180 kB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007682/0.4446, allocations: 2.307 MB / 0.6481 GB, free: 13.77 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001555/0.4462, allocations: 0.6595 MB / 0.6488 GB, free: 13.11 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001137/0.4463, allocations: 16.56 kB / 0.6488 GB, free: 13.09 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.328e-05/0.4464, allocations: 43.22 kB / 0.6488 GB, free: 13.04 MB / 462.1 MB Notification: Performance of pre-optimization done (n=92): time 2.785e-06/0.4464, allocations: 0 / 0.6488 GB, free: 13.04 MB / 462.1 MB Notification: Performance of matching and sorting (n=92): time 0.02726/0.4736, allocations: 6.754 MB / 0.6554 GB, free: 6.23 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001398/0.4738, allocations: 101.7 kB / 0.6555 GB, free: 6.113 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001617/0.4754, allocations: 0.9579 MB / 0.6564 GB, free: 5.137 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002365/0.4757, allocations: 45.7 kB / 0.6565 GB, free: 5.086 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004285/0.4761, allocations: 469.4 kB / 0.6569 GB, free: 4.621 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003946/0.4765, allocations: 329.2 kB / 0.6572 GB, free: 4.297 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004753/0.477, allocations: 259.5 kB / 0.6575 GB, free: 4.035 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001375/0.4772, allocations: 305.1 kB / 0.6578 GB, free: 3.734 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001556/0.4787, allocations: 0.691 MB / 0.6585 GB, free: 3.043 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001757/0.4805, allocations: 0.9185 MB / 0.6594 GB, free: 2.055 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02229/0.5028, allocations: 5.073 MB / 0.6643 GB, free: 12.91 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.113e-05/0.5028, allocations: 0 / 0.6643 GB, free: 12.91 MB / 478.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.01357/0.5164, allocations: 4.149 MB / 0.6684 GB, free: 8.746 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.252e-05/0.5165, allocations: 8 kB / 0.6684 GB, free: 8.738 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.93e-05/0.5165, allocations: 4 kB / 0.6684 GB, free: 8.734 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00566/0.5222, allocations: 1.52 MB / 0.6699 GB, free: 7.211 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001304/0.5235, allocations: 263.6 kB / 0.6701 GB, free: 6.953 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02057/0.5441, allocations: 8.261 MB / 0.6782 GB, free: 14.54 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001686/0.5458, allocations: 179.1 kB / 0.6784 GB, free: 14.36 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001478/0.546, allocations: 55.98 kB / 0.6784 GB, free: 14.31 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.0006535/0.5466, allocations: 272.3 kB / 0.6787 GB, free: 14.04 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00105/0.5477, allocations: 341.5 kB / 0.679 GB, free: 13.7 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01231/0.56, allocations: 3.592 MB / 0.6825 GB, free: 10.09 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.09e-05/0.5601, allocations: 8 kB / 0.6825 GB, free: 10.08 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.461e-05/0.5601, allocations: 8 kB / 0.6825 GB, free: 10.07 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.887e-05/0.5601, allocations: 3.984 kB / 0.6825 GB, free: 10.07 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.01533/0.5755, allocations: 5.128 MB / 0.6875 GB, free: 4.832 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.587e-05/0.5755, allocations: 3.938 kB / 0.6875 GB, free: 4.828 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007413/0.5763, allocations: 103.9 kB / 0.6876 GB, free: 4.727 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005853/0.5822, allocations: 1.582 MB / 0.6892 GB, free: 3.137 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001661/0.5824, allocations: 23.98 kB / 0.6892 GB, free: 3.113 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02187/0.6042, allocations: 10.78 MB / 0.6997 GB, free: 7.988 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.6043, allocations: 0 / 0.6997 GB, free: 7.988 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01514/0.6194, allocations: 4.622 MB / 0.7042 GB, free: 3.336 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004882/0.62, allocations: 216.1 kB / 0.7044 GB, free: 3.105 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001812/0.6201, allocations: 16 kB / 0.7045 GB, free: 3.09 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009585/0.6211, allocations: 91.89 kB / 0.7045 GB, free: 3 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005743/0.6217, allocations: 172.8 kB / 0.7047 GB, free: 2.832 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.169e-05/0.6218, allocations: 23.94 kB / 0.7047 GB, free: 2.809 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.000901/0.6227, allocations: 0.6434 MB / 0.7054 GB, free: 2.156 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.21e-07/0.6227, allocations: 0 / 0.7054 GB, free: 2.156 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.001372/0.6241, allocations: 443.7 kB / 0.7058 GB, free: 1.723 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.0002972/0.6244, allocations: 127.2 kB / 0.7059 GB, free: 1.59 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.00642/0.6308, allocations: 2.299 MB / 0.7081 GB, free: 15.27 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 4.648e-06/0.6308, allocations: 0 / 0.7081 GB, free: 15.27 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.004324/0.6352, allocations: 1.33 MB / 0.7094 GB, free: 13.92 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001653/0.6369, allocations: 346.5 kB / 0.7098 GB, free: 13.57 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004293/0.6412, allocations: 2.097 MB / 0.7118 GB, free: 11.45 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007587/0.642, allocations: 1.077 MB / 0.7129 GB, free: 10.34 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0003755/0.6423, allocations: 99.33 kB / 0.713 GB, free: 10.24 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002355/0.6426, allocations: 75.42 kB / 0.713 GB, free: 10.17 MB / 0.5137 GB Notification: Performance of SimCode: time 8.61e-07/0.6426, allocations: 0 / 0.713 GB, free: 10.17 MB / 0.5137 GB Notification: Performance of Templates: time 0.03827/0.6809, allocations: 21.71 MB / 0.7342 GB, free: 4.438 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 -s cvode -lv LOG_STATS > OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe 2>&1)