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/Complex 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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 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/Complex 4.0.0+maint.om/package.mo): time 0.001017/0.001017, allocations: 182.2 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.192/1.192, allocations: 222.9 MB / 239.6 MB, free: 11.02 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001093/0.001093, allocations: 105.6 kB / 289.9 MB, free: 10.95 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4099/0.4099, allocations: 78.5 MB / 418.5 MB, free: 8.527 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0013/0.0013, allocations: 71.88 kB / 497.5 MB, free: 10.3 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2582/0.2595, allocations: 68.16 MB / 0.5524 GB, free: 19.91 MB / 378.7 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous): time 0.005196/0.2648, allocations: 6.878 MB / 0.5591 GB, free: 13.01 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.004357/0.2692, allocations: 2.009 MB / 0.5611 GB, free: 11 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005986/0.2698, allocations: 12 kB / 0.5611 GB, free: 10.99 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005836/0.2704, allocations: 182.8 kB / 0.5613 GB, free: 10.81 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001344/0.2718, allocations: 0.7075 MB / 0.562 GB, free: 10.1 MB / 378.7 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.0009275/0.2727, allocations: 0.5948 MB / 0.5625 GB, free: 9.508 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009574/0.2737, allocations: 1.51 MB / 0.564 GB, free: 7.992 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003137/0.274, allocations: 301.3 kB / 0.5643 GB, free: 7.688 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004401/0.2744, allocations: 0.591 MB / 0.5649 GB, free: 7.094 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005359/0.275, allocations: 0.7815 MB / 0.5656 GB, free: 6.309 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001183/0.2751, allocations: 72 kB / 0.5657 GB, free: 6.238 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003448/0.2755, allocations: 199.9 kB / 0.5659 GB, free: 6.043 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001729/0.2756, allocations: 274.7 kB / 0.5662 GB, free: 5.773 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003901/0.276, allocations: 0.621 MB / 0.5668 GB, free: 5.148 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009623/0.277, allocations: 1.598 MB / 0.5683 GB, free: 3.547 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.277, allocations: 4 kB / 0.5683 GB, free: 3.543 MB / 378.7 MB Notification: Performance of FrontEnd: time 7.62e-07/0.277, allocations: 0 / 0.5683 GB, free: 3.543 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.146e-05/0.277, allocations: 0 / 0.5683 GB, free: 3.543 MB / 378.7 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.007352/0.2844, allocations: 2.696 MB / 0.571 GB, free: 0.7812 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.419e-05/0.2844, allocations: 8.031 kB / 0.571 GB, free: 0.7734 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004271/0.2887, allocations: 0.7709 MB / 0.5717 GB, free: 0 / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001817/0.2906, allocations: 0.8786 MB / 0.5726 GB, free: 15.07 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002871/0.2909, allocations: 260.1 kB / 0.5728 GB, free: 14.77 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001614/0.291, allocations: 87.89 kB / 0.5729 GB, free: 14.69 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002011/0.293, allocations: 1.09 MB / 0.574 GB, free: 13.59 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.567e-05/0.2931, allocations: 0 / 0.574 GB, free: 13.59 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.359e-05/0.2932, allocations: 28 kB / 0.574 GB, free: 13.56 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.554e-05/0.2932, allocations: 23.98 kB / 0.574 GB, free: 13.54 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001898/0.2951, allocations: 0.9838 MB / 0.575 GB, free: 12.55 MB / 394.7 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.006225/0.3013, allocations: 3.831 MB / 0.5787 GB, free: 8.539 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007426/0.3088, allocations: 2.363 MB / 0.581 GB, free: 6.082 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001447/0.3103, allocations: 0.6806 MB / 0.5817 GB, free: 5.395 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001133/0.3104, allocations: 16.98 kB / 0.5817 GB, free: 5.379 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001545/0.3119, allocations: 0.8215 MB / 0.5825 GB, free: 4.539 MB / 394.7 MB Notification: Performance of pre-optimization done (n=96): time 4.769e-06/0.3119, allocations: 0 / 0.5825 GB, free: 4.539 MB / 394.7 MB Notification: Performance of matching and sorting (n=96): time 0.028/0.34, allocations: 7.089 MB / 0.5895 GB, free: 13.38 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.225e-05/0.3401, allocations: 115.8 kB / 0.5896 GB, free: 13.25 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001618/0.3417, allocations: 1.083 MB / 0.5906 GB, free: 12.15 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001905/0.3419, allocations: 45.64 kB / 0.5907 GB, free: 12.1 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003908/0.3423, allocations: 496.8 kB / 0.5911 GB, free: 11.61 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003612/0.3426, allocations: 358.9 kB / 0.5915 GB, free: 11.25 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004869/0.3431, allocations: 287.5 kB / 0.5918 GB, free: 10.96 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 9.765e-05/0.3433, allocations: 305.1 kB / 0.592 GB, free: 10.66 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001525/0.3448, allocations: 0.7613 MB / 0.5928 GB, free: 9.902 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001696/0.3465, allocations: 0.9381 MB / 0.5937 GB, free: 8.922 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02272/0.3692, allocations: 5.582 MB / 0.5992 GB, free: 3.254 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.696e-06/0.3693, allocations: 0 / 0.5992 GB, free: 3.254 MB / 410.7 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.01302/0.3823, allocations: 4.34 MB / 0.6034 GB, free: 14.89 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.678e-05/0.3824, allocations: 59.41 kB / 0.6034 GB, free: 14.82 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.342e-05/0.3824, allocations: 0 / 0.6034 GB, free: 14.82 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005363/0.3878, allocations: 1.512 MB / 0.6049 GB, free: 13.3 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001538/0.3893, allocations: 299.6 kB / 0.6052 GB, free: 13.01 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01808/0.4074, allocations: 7.62 MB / 0.6127 GB, free: 5.246 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001808/0.4093, allocations: 206.8 kB / 0.6128 GB, free: 5.043 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002081/0.4095, allocations: 55.98 kB / 0.6129 GB, free: 4.988 MB / 426.7 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: 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.000653/0.4102, allocations: 307.7 kB / 0.6132 GB, free: 4.676 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002904/0.4105, allocations: 126.4 kB / 0.6133 GB, free: 4.551 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01261/0.4231, allocations: 3.873 MB / 0.6171 GB, free: 0.6484 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.117e-05/0.4231, allocations: 12 kB / 0.6171 GB, free: 0.6367 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.588e-05/0.4231, allocations: 7.938 kB / 0.6171 GB, free: 0.6289 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.132e-05/0.4231, allocations: 7.984 kB / 0.6171 GB, free: 0.6211 MB / 426.7 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.01454/0.4377, allocations: 5.457 MB / 0.6225 GB, free: 11.05 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.59e-06/0.4377, allocations: 0 / 0.6225 GB, free: 11.05 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005409/0.4383, allocations: 99.89 kB / 0.6225 GB, free: 10.96 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005474/0.4437, allocations: 1.617 MB / 0.6241 GB, free: 9.332 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001044/0.4439, allocations: 27.94 kB / 0.6242 GB, free: 9.305 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01863/0.4625, allocations: 8.74 MB / 0.6327 GB, free: 292 kB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.4625, allocations: 4 kB / 0.6327 GB, free: 288 kB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.08971/0.5522, allocations: 33.02 MB / 0.6649 GB, free: 14.73 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002896/0.5526, allocations: 231.5 kB / 0.6652 GB, free: 14.48 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002093/0.5528, allocations: 19.94 kB / 0.6652 GB, free: 14.46 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001147/0.5539, allocations: 107.8 kB / 0.6653 GB, free: 14.36 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000563/0.5545, allocations: 200.6 kB / 0.6655 GB, free: 14.16 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.956e-05/0.5546, allocations: 27.98 kB / 0.6655 GB, free: 14.13 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0009757/0.5556, allocations: 0.7235 MB / 0.6662 GB, free: 13.4 MB / 490.7 MB Notification: Performance of sort global known variables: time 5.31e-07/0.5556, allocations: 0 / 0.6662 GB, free: 13.4 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.001699/0.5573, allocations: 0.6559 MB / 0.6669 GB, free: 12.75 MB / 490.7 MB 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.0002462/0.5576, allocations: 139.1 kB / 0.667 GB, free: 12.6 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.005826/0.5634, allocations: 2.509 MB / 0.6694 GB, free: 10.06 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.5634, allocations: 0 / 0.6694 GB, free: 10.06 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004196/0.5676, allocations: 1.609 MB / 0.671 GB, free: 8.406 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007282/0.5684, allocations: 112.6 kB / 0.6711 GB, free: 8.293 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006997/0.5754, allocations: 4.127 MB / 0.6751 GB, free: 4.094 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006824/0.5761, allocations: 1.156 MB / 0.6763 GB, free: 2.91 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.00045/0.5765, allocations: 136 kB / 0.6764 GB, free: 2.773 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003044/0.5768, allocations: 75.42 kB / 0.6765 GB, free: 2.699 MB / 490.7 MB Notification: Performance of SimCode: time 3.61e-07/0.5768, allocations: 0 / 0.6765 GB, free: 2.699 MB / 490.7 MB Notification: Performance of Templates: time 0.2412/0.818, allocations: 31.68 MB / 0.7074 GB, free: 99.1 MB / 490.7 MB 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)