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.001063/0.001063, allocations: 111.3 kB / 15.23 MB, free: 0.6562 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.216/1.216, allocations: 222.9 MB / 238.9 MB, free: 4.73 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.001322/0.001322, allocations: 192.5 kB / 289.1 MB, free: 2.488 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4227/0.4227, allocations: 78.52 MB / 417.8 MB, free: 3.309 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001228/0.001228, allocations: 67.89 kB / 496.8 MB, free: 6.809 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1168/0.118, allocations: 68.18 MB / 0.5517 GB, free: 2.586 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete): time 0.1946/0.3127, allocations: 6.506 MB / 0.558 GB, free: 36.05 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.002681/0.3154, allocations: 1.895 MB / 0.5599 GB, free: 35.5 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003246/0.3157, allocations: 11.16 kB / 0.5599 GB, free: 35.5 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003953/0.3162, allocations: 164.3 kB / 0.5601 GB, free: 35.5 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00125/0.3174, allocations: 0.6725 MB / 0.5607 GB, free: 35.35 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.0009532/0.3184, allocations: 0.5479 MB / 0.5613 GB, free: 35.27 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008737/0.3193, allocations: 1.316 MB / 0.5625 GB, free: 35.19 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000295/0.3196, allocations: 251 kB / 0.5628 GB, free: 35.14 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004273/0.32, allocations: 0.5351 MB / 0.5633 GB, free: 35.01 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004968/0.3205, allocations: 0.7125 MB / 0.564 GB, free: 34.84 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001146/0.3206, allocations: 68.09 kB / 0.5641 GB, free: 34.84 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003323/0.321, allocations: 196.8 kB / 0.5643 GB, free: 34.83 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001635/0.3211, allocations: 253.3 kB / 0.5645 GB, free: 34.76 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003461/0.3215, allocations: 0.569 MB / 0.5651 GB, free: 34.55 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008529/0.3224, allocations: 1.444 MB / 0.5665 GB, free: 34.21 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.3224, allocations: 2.688 kB / 0.5665 GB, free: 34.21 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.3224, allocations: 0 / 0.5665 GB, free: 34.21 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.424e-05/0.3224, allocations: 1.031 kB / 0.5665 GB, free: 34.21 MB / 430.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.006973/0.3294, allocations: 2.478 MB / 0.5689 GB, free: 33.34 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.356e-05/0.3294, allocations: 8.844 kB / 0.5689 GB, free: 33.34 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004471/0.3339, allocations: 0.7663 MB / 0.5696 GB, free: 33.26 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008719/0.3348, allocations: 0.7965 MB / 0.5704 GB, free: 32.87 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002022/0.335, allocations: 258.6 kB / 0.5707 GB, free: 32.68 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001202/0.3351, allocations: 77.91 kB / 0.5707 GB, free: 32.68 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001962/0.3371, allocations: 1.17 MB / 0.5719 GB, free: 32.57 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.801e-05/0.3371, allocations: 8.438 kB / 0.5719 GB, free: 32.56 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.963e-05/0.3372, allocations: 24.88 kB / 0.5719 GB, free: 32.56 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.139e-05/0.3372, allocations: 18.38 kB / 0.5719 GB, free: 32.56 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00165/0.3389, allocations: 0.9493 MB / 0.5729 GB, free: 32.55 MB / 430.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.004539/0.3434, allocations: 3.552 MB / 0.5763 GB, free: 31.26 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006667/0.3501, allocations: 2.31 MB / 0.5786 GB, free: 30.78 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001137/0.3513, allocations: 0.6512 MB / 0.5792 GB, free: 30.53 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.571e-05/0.3514, allocations: 22.91 kB / 0.5792 GB, free: 30.52 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.858e-05/0.3514, allocations: 44.94 kB / 0.5793 GB, free: 30.47 MB / 430.1 MB Notification: Performance of pre-optimization done (n=92): time 2.314e-06/0.3514, allocations: 0 / 0.5793 GB, free: 30.47 MB / 430.1 MB Notification: Performance of matching and sorting (n=92): time 0.02589/0.3773, allocations: 6.755 MB / 0.5859 GB, free: 29.16 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.311e-05/0.3774, allocations: 90.11 kB / 0.586 GB, free: 29.07 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001383/0.3788, allocations: 0.9661 MB / 0.5869 GB, free: 28.65 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001222/0.3789, allocations: 46.45 kB / 0.587 GB, free: 28.6 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002738/0.3792, allocations: 457 kB / 0.5874 GB, free: 28.24 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002665/0.3795, allocations: 318.1 kB / 0.5877 GB, free: 28 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000422/0.3799, allocations: 255.5 kB / 0.5879 GB, free: 27.88 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 4.183e-05/0.3799, allocations: 303.1 kB / 0.5882 GB, free: 27.58 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001485/0.3814, allocations: 0.6991 MB / 0.5889 GB, free: 27.32 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001508/0.383, allocations: 0.9159 MB / 0.5898 GB, free: 26.84 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02196/0.4049, allocations: 5.06 MB / 0.5947 GB, free: 25.37 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.612e-05/0.405, allocations: 1.406 kB / 0.5947 GB, free: 25.37 MB / 430.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.01223/0.4172, allocations: 4.145 MB / 0.5988 GB, free: 24.32 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.646e-05/0.4173, allocations: 7.281 kB / 0.5988 GB, free: 24.32 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.74e-05/0.4173, allocations: 6.5 kB / 0.5988 GB, free: 24.32 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005228/0.4225, allocations: 1.511 MB / 0.6003 GB, free: 24.04 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001192/0.4237, allocations: 262 kB / 0.6005 GB, free: 24.02 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0165/0.4403, allocations: 7.622 MB / 0.608 GB, free: 19.96 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001557/0.4418, allocations: 179.3 kB / 0.6081 GB, free: 19.85 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001094/0.442, allocations: 57.45 kB / 0.6082 GB, free: 19.83 MB / 430.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.000504/0.4425, allocations: 263.7 kB / 0.6085 GB, free: 19.62 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008737/0.4434, allocations: 336.8 kB / 0.6088 GB, free: 19.43 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0109/0.4543, allocations: 3.593 MB / 0.6123 GB, free: 17.07 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.829e-06/0.4543, allocations: 11.94 kB / 0.6123 GB, free: 17.06 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.065e-05/0.4543, allocations: 8 kB / 0.6123 GB, free: 17.05 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.367e-05/0.4543, allocations: 4.641 kB / 0.6123 GB, free: 17.05 MB / 430.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.01219/0.4665, allocations: 5.118 MB / 0.6173 GB, free: 11.83 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.46e-06/0.4666, allocations: 4.688 kB / 0.6173 GB, free: 11.82 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005076/0.4671, allocations: 111.9 kB / 0.6174 GB, free: 11.71 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004663/0.4717, allocations: 1.575 MB / 0.619 GB, free: 10.13 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.231e-05/0.4718, allocations: 29.17 kB / 0.619 GB, free: 10.11 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01502/0.4869, allocations: 9.893 MB / 0.6286 GB, free: 15.88 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.915e-06/0.4869, allocations: 5.094 kB / 0.6286 GB, free: 15.88 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01375/0.5007, allocations: 4.613 MB / 0.6332 GB, free: 11.24 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004847/0.5012, allocations: 203.5 kB / 0.6333 GB, free: 11.02 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001788/0.5014, allocations: 24.66 kB / 0.6334 GB, free: 11 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000936/0.5023, allocations: 81.09 kB / 0.6334 GB, free: 10.92 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005377/0.5029, allocations: 172.7 kB / 0.6336 GB, free: 10.75 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.097e-05/0.5029, allocations: 31.94 kB / 0.6336 GB, free: 10.72 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0007825/0.5037, allocations: 0.6395 MB / 0.6343 GB, free: 10.07 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.5037, allocations: 5.5 kB / 0.6343 GB, free: 10.07 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001456/0.5052, allocations: 431.6 kB / 0.6347 GB, free: 9.645 MB / 446.1 MB 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.0002814/0.5055, allocations: 139.1 kB / 0.6348 GB, free: 9.5 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005876/0.5114, allocations: 2.294 MB / 0.6371 GB, free: 7.195 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.138e-06/0.5114, allocations: 0 / 0.6371 GB, free: 7.195 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003927/0.5153, allocations: 1.32 MB / 0.6383 GB, free: 5.863 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001666/0.517, allocations: 348.3 kB / 0.6387 GB, free: 5.508 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003996/0.521, allocations: 2.45 MB / 0.6411 GB, free: 3.066 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005657/0.5216, allocations: 1.081 MB / 0.6421 GB, free: 1.957 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0003536/0.522, allocations: 99.23 kB / 0.6422 GB, free: 1.859 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002266/0.5222, allocations: 75.41 kB / 0.6423 GB, free: 1.785 MB / 446.1 MB Notification: Performance of SimCode: time 9.02e-07/0.5222, allocations: 0 / 0.6423 GB, free: 1.785 MB / 446.1 MB Notification: Performance of Templates: time 0.0318/0.554, allocations: 19.6 MB / 0.6614 GB, free: 14.4 MB / 478.1 MB 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)