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: "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Continuous",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Continuous",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007941/0.0007941, allocations: 87.42 kB / 15.07 MB, free: 1.082 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.32/1.32, allocations: 223.2 MB / 239 MB, free: 5.613 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.001213/0.001213, allocations: 180.5 kB / 290.3 MB, free: 2.301 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4929/0.4929, allocations: 78.56 MB / 419.9 MB, free: 4.328 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003812/0.0003813, allocations: 12 kB / 499.9 MB, free: 6.281 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1405/0.1409, allocations: 69.36 MB / 0.5559 GB, free: 0.8672 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous): time 0.2727/0.4137, allocations: 6.003 MB / 0.5618 GB, free: 37.38 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003808/0.4176, allocations: 1.906 MB / 0.5636 GB, free: 37.11 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000512/0.4181, allocations: 15.91 kB / 0.5636 GB, free: 37.11 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005895/0.4187, allocations: 163.1 kB / 0.5638 GB, free: 37.05 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001535/0.4202, allocations: 0.6515 MB / 0.5644 GB, free: 36.84 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.001048/0.4213, allocations: 0.5254 MB / 0.5649 GB, free: 36.77 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001165/0.4225, allocations: 1.416 MB / 0.5663 GB, free: 36.43 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003665/0.4228, allocations: 262.4 kB / 0.5666 GB, free: 36.39 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005085/0.4234, allocations: 0.5565 MB / 0.5671 GB, free: 36.23 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006431/0.424, allocations: 0.7219 MB / 0.5678 GB, free: 36.04 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001177/0.4241, allocations: 59.59 kB / 0.5679 GB, free: 36.04 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003891/0.4245, allocations: 185.1 kB / 0.5681 GB, free: 36.03 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002427/0.4248, allocations: 256.7 kB / 0.5683 GB, free: 35.95 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002138/0.425, allocations: 225.6 kB / 0.5685 GB, free: 35.88 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008866/0.4259, allocations: 1.231 MB / 0.5697 GB, free: 35.67 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.002e-06/0.4259, allocations: 6.531 kB / 0.5697 GB, free: 35.66 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.4259, allocations: 0.625 kB / 0.5697 GB, free: 35.66 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.287e-05/0.4259, allocations: 1.188 kB / 0.5697 GB, free: 35.66 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.006815/0.4328, allocations: 2.506 MB / 0.5722 GB, free: 34.73 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.73e-05/0.4328, allocations: 10.59 kB / 0.5722 GB, free: 34.73 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002205/0.4331, allocations: 125.1 kB / 0.5723 GB, free: 34.69 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004523/0.4376, allocations: 0.7848 MB / 0.5731 GB, free: 34.59 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001454/0.439, allocations: 0.8412 MB / 0.5739 GB, free: 34.22 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002272/0.4393, allocations: 272.9 kB / 0.5742 GB, free: 34.03 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001375/0.4394, allocations: 85.34 kB / 0.5742 GB, free: 34.03 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001974/0.4414, allocations: 1.137 MB / 0.5753 GB, free: 33.8 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.958e-05/0.4414, allocations: 0 / 0.5753 GB, free: 33.8 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.235e-05/0.4415, allocations: 32.34 kB / 0.5754 GB, free: 33.77 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.606e-05/0.4416, allocations: 22.73 kB / 0.5754 GB, free: 33.77 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001752/0.4433, allocations: 1.049 MB / 0.5764 GB, free: 33.43 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.005367/0.4487, allocations: 3.901 MB / 0.5802 GB, free: 31.21 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006448/0.4552, allocations: 2.914 MB / 0.5831 GB, free: 30.33 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0014/0.4566, allocations: 0.7347 MB / 0.5838 GB, free: 30.05 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001152/0.4567, allocations: 19.17 kB / 0.5838 GB, free: 30.04 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001553/0.4583, allocations: 0.8743 MB / 0.5847 GB, free: 29.72 MB / 430.1 MB Notification: Performance of pre-optimization done (n=96): time 2.535e-06/0.4583, allocations: 0 / 0.5847 GB, free: 29.72 MB / 430.1 MB Notification: Performance of matching and sorting (n=96): time 0.02768/0.486, allocations: 8.637 MB / 0.5931 GB, free: 28.16 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.198e-05/0.4861, allocations: 116.9 kB / 0.5932 GB, free: 28.04 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001803/0.4879, allocations: 1.069 MB / 0.5943 GB, free: 27.59 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002523/0.4881, allocations: 45.83 kB / 0.5943 GB, free: 27.55 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003578/0.4885, allocations: 498.6 kB / 0.5948 GB, free: 27.16 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003759/0.4889, allocations: 353.2 kB / 0.5951 GB, free: 26.88 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.537e-05/0.489, allocations: 37.5 kB / 0.5952 GB, free: 26.85 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001083/0.4891, allocations: 362.3 kB / 0.5955 GB, free: 26.52 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00162/0.4907, allocations: 0.8212 MB / 0.5963 GB, free: 26.23 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001742/0.4925, allocations: 0.9918 MB / 0.5973 GB, free: 25.79 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001748/0.4942, allocations: 0.963 MB / 0.5982 GB, free: 25.33 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.404e-06/0.4943, allocations: 1.125 kB / 0.5982 GB, free: 25.33 MB / 430.1 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.01401/0.5083, allocations: 5.153 MB / 0.6032 GB, free: 24.08 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.095e-05/0.5084, allocations: 59.16 kB / 0.6033 GB, free: 24.02 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.046e-05/0.5084, allocations: 4.312 kB / 0.6033 GB, free: 24.02 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006367/0.5148, allocations: 1.904 MB / 0.6052 GB, free: 23.7 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001632/0.5164, allocations: 294.6 kB / 0.6054 GB, free: 23.68 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01983/0.5363, allocations: 9.019 MB / 0.6143 GB, free: 18 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001978/0.5383, allocations: 235.7 kB / 0.6145 GB, free: 17.77 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003133/0.5387, allocations: 59.97 kB / 0.6145 GB, free: 17.71 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 aVRTypeII.firstOrder2.y:VARIABLE(flow=false start = aVRTypeII.firstOrder2.y_start fixed = true ) "Connector of Real output signal" type: Real order4.e1d:VARIABLE(start = order4.e1d0 unit = "1" fixed = true ) "d-axis transient voltage" 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 ($whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (164): * Single equations (assignments): 161 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {19 14} Notification: Performance of prepare postOptimizeDAE: time 0.0008315/0.5395, allocations: 306.6 kB / 0.6148 GB, free: 17.41 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003406/0.5398, allocations: 130.3 kB / 0.6149 GB, free: 17.28 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01126/0.5511, allocations: 4.71 MB / 0.6195 GB, free: 12.54 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.673e-05/0.5512, allocations: 12 kB / 0.6196 GB, free: 12.52 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.936e-05/0.5512, allocations: 8 kB / 0.6196 GB, free: 12.52 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.186e-05/0.5512, allocations: 7.938 kB / 0.6196 GB, free: 12.51 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.0134/0.5647, allocations: 6.29 MB / 0.6257 GB, free: 6.109 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.808e-05/0.5647, allocations: 0 / 0.6257 GB, free: 6.109 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006534/0.5654, allocations: 103.8 kB / 0.6258 GB, free: 6.008 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005094/0.5705, allocations: 1.892 MB / 0.6277 GB, free: 4.109 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002373/0.5708, allocations: 20 kB / 0.6277 GB, free: 4.09 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01843/0.5892, allocations: 9.64 MB / 0.6371 GB, free: 10.17 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.763e-06/0.5893, allocations: 7.953 kB / 0.6371 GB, free: 10.16 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0147/0.604, allocations: 5.644 MB / 0.6426 GB, free: 4.488 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006074/0.6047, allocations: 227.2 kB / 0.6428 GB, free: 4.246 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004787/0.6052, allocations: 27.95 kB / 0.6429 GB, free: 4.219 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001399/0.6066, allocations: 148.7 kB / 0.643 GB, free: 4.074 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007149/0.6073, allocations: 188.7 kB / 0.6432 GB, free: 3.887 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001389/0.6075, allocations: 28 kB / 0.6432 GB, free: 3.859 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001414/0.6089, allocations: 0.7157 MB / 0.6439 GB, free: 3.137 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.6089, allocations: 0 / 0.6439 GB, free: 3.137 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002142/0.6111, allocations: 481.1 kB / 0.6444 GB, free: 2.668 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(21,21.8%) 11} * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.01484/0.6259, allocations: 6.212 MB / 0.6504 GB, free: 12.41 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006768/0.6327, allocations: 2.79 MB / 0.6532 GB, free: 9.59 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.333e-06/0.6328, allocations: 0 / 0.6532 GB, free: 9.59 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004504/0.6373, allocations: 1.82 MB / 0.6549 GB, free: 7.727 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001682/0.639, allocations: 113.2 kB / 0.655 GB, free: 7.617 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02741/0.6665, allocations: 12.04 MB / 0.6668 GB, free: 11.26 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008269/0.6673, allocations: 1.116 MB / 0.6679 GB, free: 10.12 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0006517/0.668, allocations: 124.8 kB / 0.668 GB, free: 9.996 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007887/0.6688, allocations: 467.3 kB / 0.6685 GB, free: 9.539 MB / 478.1 MB Notification: Performance of SimCode: time 1.122e-06/0.6688, allocations: 4 kB / 0.6685 GB, free: 9.535 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06186/0.7307, allocations: 32.03 MB / 0.6997 GB, free: 9.953 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001763/0.7309, allocations: 244.6 kB / 0.7 GB, free: 9.715 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.792/3.523, allocations: 3.938 kB / 0.7 GB, free: 9.711 MB / 0.4981 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_OpenIPSL_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Continuous_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Continuous.fmu > OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe 2>&1) Environment - environmentSimulation: