Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.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_Continuous,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous") translateModel(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001375/0.001375, allocations: 103.8 kB / 16.46 MB, free: 6.633 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.515/1.515, allocations: 225.6 MB / 242.8 MB, free: 3.879 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.00173/0.00173, allocations: 184.3 kB / 295.8 MB, free: 4.32 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.3509/0.3509, allocations: 79.74 MB / 428.4 MB, free: 12.6 MB / 366.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00231/0.00231, allocations: 83.86 kB / 0.5711 GB, free: 10.41 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4199/0.4222, allocations: 72.08 MB / 0.6415 GB, free: 14.74 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous): time 0.008646/0.4309, allocations: 6.578 MB / 0.6479 GB, free: 8.129 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.004944/0.4358, allocations: 1.974 MB / 0.6498 GB, free: 6.148 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009131/0.4367, allocations: 12 kB / 0.6499 GB, free: 6.137 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008941/0.4376, allocations: 238 kB / 0.6501 GB, free: 5.902 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002378/0.44, allocations: 0.8569 MB / 0.6509 GB, free: 5.047 MB / 446.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.0015/0.4415, allocations: 0.6306 MB / 0.6515 GB, free: 4.422 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.002131/0.4436, allocations: 1.588 MB / 0.6531 GB, free: 2.828 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004468/0.4441, allocations: 226.4 kB / 0.6533 GB, free: 2.594 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009434/0.445, allocations: 0.6574 MB / 0.6539 GB, free: 1.934 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001032/0.4461, allocations: 0.8401 MB / 0.6548 GB, free: 1.09 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001825/0.4462, allocations: 124 kB / 0.6549 GB, free: 0.9688 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005603/0.4468, allocations: 259.8 kB / 0.6551 GB, free: 0.7148 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003527/0.4472, allocations: 334.6 kB / 0.6554 GB, free: 396 kB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006754/0.4478, allocations: 0.6718 MB / 0.6561 GB, free: 15.71 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002111/0.4499, allocations: 1.665 MB / 0.6577 GB, free: 14.04 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.4499, allocations: 0 / 0.6577 GB, free: 14.04 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.4499, allocations: 0 / 0.6577 GB, free: 14.04 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.344e-05/0.45, allocations: 0 / 0.6577 GB, free: 14.04 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 190 * Number of variables: 190 Notification: Performance of Generate backend data structure: time 0.009336/0.4593, allocations: 2.734 MB / 0.6604 GB, free: 11.24 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.672e-05/0.4593, allocations: 12.02 kB / 0.6604 GB, free: 11.23 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005185/0.4645, allocations: 0.7796 MB / 0.6612 GB, free: 10.45 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001853/0.4664, allocations: 0.8951 MB / 0.662 GB, free: 9.5 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003475/0.4667, allocations: 264.1 kB / 0.6623 GB, free: 9.203 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001856/0.4669, allocations: 83.95 kB / 0.6624 GB, free: 9.121 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002416/0.4693, allocations: 1.09 MB / 0.6634 GB, free: 8.02 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.888e-05/0.4694, allocations: 3.938 kB / 0.6634 GB, free: 8.016 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001009/0.4695, allocations: 32 kB / 0.6635 GB, free: 7.984 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.835e-05/0.4695, allocations: 16 kB / 0.6635 GB, free: 7.969 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002243/0.4717, allocations: 0.9916 MB / 0.6645 GB, free: 6.977 MB / 462.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.007487/0.4792, allocations: 3.793 MB / 0.6682 GB, free: 3.008 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008013/0.4872, allocations: 2.309 MB / 0.6704 GB, free: 0.6055 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001496/0.4887, allocations: 0.617 MB / 0.671 GB, free: 15.98 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.4e-05/0.4888, allocations: 13 kB / 0.671 GB, free: 15.97 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001777/0.4906, allocations: 0.8255 MB / 0.6718 GB, free: 15.13 MB / 478.1 MB Notification: Performance of pre-optimization done (n=96): time 2.936e-06/0.4906, allocations: 0 / 0.6718 GB, free: 15.13 MB / 478.1 MB Notification: Performance of matching and sorting (n=96): time 0.03096/0.5215, allocations: 7.066 MB / 0.6787 GB, free: 8 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000101/0.5216, allocations: 115.8 kB / 0.6789 GB, free: 7.863 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00198/0.5236, allocations: 1.087 MB / 0.6799 GB, free: 6.762 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002399/0.5239, allocations: 45.7 kB / 0.68 GB, free: 6.711 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004703/0.5243, allocations: 0.4936 MB / 0.6804 GB, free: 6.211 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004693/0.5248, allocations: 368.9 kB / 0.6808 GB, free: 5.848 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005602/0.5254, allocations: 295.5 kB / 0.6811 GB, free: 5.555 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001505/0.5255, allocations: 301.1 kB / 0.6814 GB, free: 5.258 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001758/0.5273, allocations: 0.7652 MB / 0.6821 GB, free: 4.492 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001926/0.5292, allocations: 0.9381 MB / 0.683 GB, free: 3.512 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02514/0.5543, allocations: 5.571 MB / 0.6885 GB, free: 13.86 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.152e-05/0.5544, allocations: 0 / 0.6885 GB, free: 13.86 MB / 494.1 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.01486/0.5692, allocations: 4.321 MB / 0.6927 GB, free: 9.508 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.159e-05/0.5693, allocations: 63.41 kB / 0.6927 GB, free: 9.434 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.783e-05/0.5693, allocations: 4 kB / 0.6927 GB, free: 9.43 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006063/0.5754, allocations: 1.508 MB / 0.6942 GB, free: 7.918 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001684/0.5771, allocations: 295.6 kB / 0.6945 GB, free: 7.629 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02278/0.5998, allocations: 8.265 MB / 0.7026 GB, free: 15.2 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002519/0.6024, allocations: 207 kB / 0.7028 GB, free: 15 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000408/0.6028, allocations: 59.98 kB / 0.7028 GB, free: 14.94 MB / 0.4981 GB 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: 13 * Number of states: 0 () * Number of discrete variables: 2 ($whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (166): * Single equations (assignments): 163 * Array equations: 0 * Algorithm blocks: 2 * 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.001171/0.6039, allocations: 308.3 kB / 0.7031 GB, free: 14.62 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005428/0.6045, allocations: 135.1 kB / 0.7033 GB, free: 14.49 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01432/0.6188, allocations: 3.857 MB / 0.707 GB, free: 10.6 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.497e-05/0.6188, allocations: 8 kB / 0.707 GB, free: 10.59 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.097e-05/0.6189, allocations: 8 kB / 0.707 GB, free: 10.59 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.867e-05/0.6189, allocations: 3.984 kB / 0.707 GB, free: 10.58 MB / 0.4981 GB 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.01736/0.6362, allocations: 5.421 MB / 0.7123 GB, free: 5.055 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-05/0.6363, allocations: 3.938 kB / 0.7123 GB, free: 5.051 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007391/0.637, allocations: 103.8 kB / 0.7124 GB, free: 4.949 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00628/0.6433, allocations: 1.602 MB / 0.714 GB, free: 3.34 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002729/0.6436, allocations: 23.98 kB / 0.714 GB, free: 3.316 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02424/0.6678, allocations: 9.616 MB / 0.7234 GB, free: 9.414 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.72e-06/0.6678, allocations: 4 kB / 0.7234 GB, free: 9.41 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.017/0.6848, allocations: 4.724 MB / 0.728 GB, free: 4.652 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006567/0.6855, allocations: 231.9 kB / 0.7283 GB, free: 4.406 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005223/0.686, allocations: 16 kB / 0.7283 GB, free: 4.391 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001549/0.6875, allocations: 111.9 kB / 0.7284 GB, free: 4.281 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008218/0.6884, allocations: 196.7 kB / 0.7286 GB, free: 4.09 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001644/0.6885, allocations: 31.98 kB / 0.7286 GB, free: 4.059 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001522/0.69, allocations: 0.7274 MB / 0.7293 GB, free: 3.324 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.11e-07/0.69, allocations: 0 / 0.7293 GB, free: 3.324 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.002214/0.6923, allocations: 475.6 kB / 0.7298 GB, free: 2.859 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 10 (order2.delta,order2.w,order4.delta,order4.w,order4.e1q,order4.e1d,aVRTypeII.ExcitationSystem.x_scaled[1],aVRTypeII.derivativeBlock.x,aVRTypeII.firstOrder2.y,aVRTypeII.simpleLagLim.state) * Number of discrete variables: 2 ($whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (64): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 1 * 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 {(21,11,21.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004594/0.6927, allocations: 134.5 kB / 0.7299 GB, free: 2.719 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.007118/0.6998, allocations: 2.361 MB / 0.7322 GB, free: 320 kB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 6.682e-06/0.6998, allocations: 0 / 0.7322 GB, free: 320 kB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.004976/0.7048, allocations: 1.551 MB / 0.7337 GB, free: 14.73 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001507/0.7063, allocations: 115.6 kB / 0.7338 GB, free: 14.62 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005406/0.7117, allocations: 2.333 MB / 0.7361 GB, free: 12.25 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001028/0.7128, allocations: 1.12 MB / 0.7372 GB, free: 11.1 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005802/0.7133, allocations: 87.41 kB / 0.7373 GB, free: 11.01 MB / 0.5294 GB Notification: Performance of SimCode: time 1.362e-06/0.7133, allocations: 0 / 0.7373 GB, free: 11.01 MB / 0.5294 GB Notification: Performance of Templates: time 0.03968/0.753, allocations: 23.69 MB / 0.7604 GB, free: 3.312 MB / 0.545 GB make -j1 -f OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.makefile (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.sim & ./OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe 2>&1)