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.001504/0.001504, allocations: 117.2 kB / 16.37 MB, free: 6.004 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.432/1.432, allocations: 222.9 MB / 240 MB, free: 4.508 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.001735/0.001735, allocations: 200.4 kB / 290.3 MB, free: 2.223 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4897/0.4897, allocations: 78.54 MB / 419 MB, free: 3.223 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001501/0.001501, allocations: 87.86 kB / 498.9 MB, free: 5.637 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1693/0.1708, allocations: 68.17 MB / 0.5538 GB, free: 1.43 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous): time 0.337/0.5078, allocations: 6.565 MB / 0.5602 GB, free: 36.34 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.004054/0.5119, allocations: 1.955 MB / 0.5621 GB, free: 35.81 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006394/0.5126, allocations: 9.875 kB / 0.5621 GB, free: 35.81 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007239/0.5133, allocations: 242.7 kB / 0.5623 GB, free: 35.8 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001811/0.5152, allocations: 0.7919 MB / 0.5631 GB, free: 35.65 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.001254/0.5164, allocations: 0.6335 MB / 0.5637 GB, free: 35.57 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.002745/0.5192, allocations: 1.587 MB / 0.5653 GB, free: 35.3 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006631/0.5199, allocations: 326.2 kB / 0.5656 GB, free: 35.25 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001206/0.5211, allocations: 0.6579 MB / 0.5662 GB, free: 35.08 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009369/0.522, allocations: 0.8217 MB / 0.567 GB, free: 34.87 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002557/0.5223, allocations: 121.6 kB / 0.5672 GB, free: 34.87 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006161/0.5229, allocations: 260.3 kB / 0.5674 GB, free: 34.86 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002827/0.5232, allocations: 329.3 kB / 0.5677 GB, free: 34.77 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005576/0.5238, allocations: 0.6671 MB / 0.5684 GB, free: 34.53 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001519/0.5253, allocations: 1.663 MB / 0.57 GB, free: 34.14 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.5253, allocations: 0.5938 kB / 0.57 GB, free: 34.14 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.5253, allocations: 1.281 kB / 0.57 GB, free: 34.14 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.8e-05/0.5254, allocations: 0 / 0.57 GB, free: 34.14 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: 190 * Number of variables: 190 Notification: Performance of Generate backend data structure: time 0.008389/0.5338, allocations: 2.683 MB / 0.5726 GB, free: 33.16 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.05e-05/0.5338, allocations: 11.78 kB / 0.5726 GB, free: 33.16 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004744/0.5386, allocations: 0.7753 MB / 0.5734 GB, free: 33.07 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001606/0.5402, allocations: 0.8871 MB / 0.5742 GB, free: 32.66 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002472/0.5405, allocations: 254.4 kB / 0.5745 GB, free: 32.47 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001714/0.5406, allocations: 89.75 kB / 0.5746 GB, free: 32.46 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001983/0.5426, allocations: 1.09 MB / 0.5756 GB, free: 32.38 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.252e-05/0.5427, allocations: 0.5625 kB / 0.5756 GB, free: 32.38 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.232e-05/0.5428, allocations: 28.5 kB / 0.5757 GB, free: 32.38 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.228e-05/0.5428, allocations: 18.38 kB / 0.5757 GB, free: 32.38 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001884/0.5447, allocations: 0.9911 MB / 0.5767 GB, free: 32.37 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.006184/0.5509, allocations: 3.797 MB / 0.5804 GB, free: 30.62 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006845/0.5577, allocations: 2.372 MB / 0.5827 GB, free: 29.8 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001669/0.5594, allocations: 0.6822 MB / 0.5833 GB, free: 29.54 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001155/0.5596, allocations: 14.92 kB / 0.5834 GB, free: 29.53 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001637/0.5612, allocations: 0.8235 MB / 0.5842 GB, free: 29.21 MB / 430.1 MB Notification: Performance of pre-optimization done (n=96): time 2.865e-06/0.5612, allocations: 0 / 0.5842 GB, free: 29.21 MB / 430.1 MB Notification: Performance of matching and sorting (n=96): time 0.02905/0.5903, allocations: 7.079 MB / 0.5911 GB, free: 27.83 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.967e-05/0.5904, allocations: 121.5 kB / 0.5912 GB, free: 27.7 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002032/0.5924, allocations: 1.085 MB / 0.5923 GB, free: 27.25 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003233/0.5928, allocations: 46.3 kB / 0.5923 GB, free: 27.2 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003608/0.5931, allocations: 490.1 kB / 0.5928 GB, free: 26.82 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000401/0.5936, allocations: 361.3 kB / 0.5931 GB, free: 26.54 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005498/0.5941, allocations: 286.9 kB / 0.5934 GB, free: 26.41 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 5.865e-05/0.5942, allocations: 303.3 kB / 0.5937 GB, free: 26.11 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001661/0.5958, allocations: 0.7643 MB / 0.5944 GB, free: 25.82 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001704/0.5976, allocations: 0.9402 MB / 0.5953 GB, free: 25.39 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0238/0.6214, allocations: 5.585 MB / 0.6008 GB, free: 23.64 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.285e-05/0.6214, allocations: 3.938 kB / 0.6008 GB, free: 23.64 MB / 430.1 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.01392/0.6354, allocations: 4.337 MB / 0.605 GB, free: 22.17 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.538e-05/0.6355, allocations: 58.12 kB / 0.6051 GB, free: 22.11 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.81e-05/0.6355, allocations: 7.375 kB / 0.6051 GB, free: 22.11 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005335/0.6408, allocations: 1.514 MB / 0.6066 GB, free: 21.43 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001633/0.6425, allocations: 297 kB / 0.6069 GB, free: 21.36 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01836/0.6609, allocations: 8.253 MB / 0.6149 GB, free: 15.52 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002023/0.6629, allocations: 204 kB / 0.6151 GB, free: 15.32 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001878/0.6631, allocations: 55.98 kB / 0.6152 GB, free: 15.27 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: 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.0006202/0.6638, allocations: 303.5 kB / 0.6154 GB, free: 14.96 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002544/0.664, allocations: 134.9 kB / 0.6156 GB, free: 14.82 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01112/0.6752, allocations: 3.875 MB / 0.6194 GB, free: 10.92 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.68e-05/0.6752, allocations: 8 kB / 0.6194 GB, free: 10.91 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.783e-05/0.6753, allocations: 8 kB / 0.6194 GB, free: 10.91 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-05/0.6753, allocations: 6.438 kB / 0.6194 GB, free: 10.9 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.01353/0.6888, allocations: 5.452 MB / 0.6247 GB, free: 5.34 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.42e-05/0.6889, allocations: 0 / 0.6247 GB, free: 5.34 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006661/0.6896, allocations: 103.8 kB / 0.6248 GB, free: 5.238 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004962/0.6945, allocations: 1.603 MB / 0.6264 GB, free: 3.629 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002473/0.6948, allocations: 23.98 kB / 0.6264 GB, free: 3.605 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01995/0.7148, allocations: 9.606 MB / 0.6358 GB, free: 9.703 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.7148, allocations: 0 / 0.6358 GB, free: 9.703 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0147/0.7295, allocations: 4.735 MB / 0.6404 GB, free: 4.93 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006594/0.7302, allocations: 227.2 kB / 0.6406 GB, free: 4.688 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002776/0.7305, allocations: 16 kB / 0.6406 GB, free: 4.672 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001186/0.7317, allocations: 111.9 kB / 0.6407 GB, free: 4.562 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006422/0.7324, allocations: 192.7 kB / 0.6409 GB, free: 4.375 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.163e-05/0.7325, allocations: 28.92 kB / 0.641 GB, free: 4.348 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001166/0.7336, allocations: 0.7274 MB / 0.6417 GB, free: 3.613 MB / 446.1 MB Notification: Performance of sort global known variables: time 3e-07/0.7337, allocations: 0 / 0.6417 GB, free: 3.613 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001696/0.7354, allocations: 479.5 kB / 0.6421 GB, free: 3.145 MB / 446.1 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.0003205/0.7357, allocations: 133.6 kB / 0.6422 GB, free: 3.008 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006515/0.7422, allocations: 2.506 MB / 0.6447 GB, free: 480 kB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.23e-06/0.7423, allocations: 0 / 0.6447 GB, free: 480 kB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004808/0.7471, allocations: 1.605 MB / 0.6463 GB, free: 14.83 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00146/0.7486, allocations: 133.5 kB / 0.6464 GB, free: 14.7 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004822/0.7534, allocations: 2.24 MB / 0.6486 GB, free: 12.47 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008495/0.7543, allocations: 1.12 MB / 0.6497 GB, free: 11.32 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0006073/0.755, allocations: 124.1 kB / 0.6498 GB, free: 11.2 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002825/0.7552, allocations: 79.42 kB / 0.6499 GB, free: 11.12 MB / 462.1 MB Notification: Performance of SimCode: time 1.022e-06/0.7553, allocations: 0 / 0.6499 GB, free: 11.12 MB / 462.1 MB Notification: Performance of Templates: time 0.04519/0.8005, allocations: 23.46 MB / 0.6728 GB, free: 3.902 MB / 478.1 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 -s cvode -lv LOG_STATS > OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe 2>&1)