Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.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.TwoAreaOld.FourthOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FourthOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FourthOrder_AVRII",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.0008444/0.0008443, allocations: 91.53 kB / 15.06 MB, free: 1.098 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.4/1.4, allocations: 223.2 MB / 239 MB, free: 5.453 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.001269/0.001269, allocations: 188.3 kB / 290.3 MB, free: 2.137 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.5202/0.5202, allocations: 78.56 MB / 419.9 MB, free: 4.285 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003678/0.0003681, allocations: 12 kB / 499.9 MB, free: 6.254 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.161/0.1614, allocations: 69.37 MB / 0.5559 GB, free: 0.8359 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII): time 0.2704/0.4319, allocations: 5.991 MB / 0.5618 GB, free: 37.34 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003935/0.4359, allocations: 1.905 MB / 0.5636 GB, free: 37.08 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005351/0.4364, allocations: 13.38 kB / 0.5636 GB, free: 37.08 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005889/0.437, allocations: 166.1 kB / 0.5638 GB, free: 37.02 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001558/0.4386, allocations: 0.6649 MB / 0.5644 GB, free: 36.75 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.001047/0.4397, allocations: 0.5164 MB / 0.5649 GB, free: 36.68 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001126/0.4408, allocations: 1.412 MB / 0.5663 GB, free: 36.35 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003722/0.4412, allocations: 263.4 kB / 0.5666 GB, free: 36.3 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005137/0.4417, allocations: 0.5585 MB / 0.5671 GB, free: 36.14 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000634/0.4423, allocations: 0.7193 MB / 0.5678 GB, free: 35.96 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001121/0.4425, allocations: 57.84 kB / 0.5679 GB, free: 35.96 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003591/0.4428, allocations: 196.7 kB / 0.5681 GB, free: 35.94 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002384/0.4431, allocations: 248.8 kB / 0.5683 GB, free: 35.87 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002276/0.4433, allocations: 231 kB / 0.5685 GB, free: 35.79 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009278/0.4442, allocations: 1.225 MB / 0.5697 GB, free: 35.58 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.4443, allocations: 3.438 kB / 0.5697 GB, free: 35.58 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.4443, allocations: 0 / 0.5697 GB, free: 35.58 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.202e-05/0.4443, allocations: 0.5312 kB / 0.5697 GB, free: 35.58 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.006919/0.4512, allocations: 2.507 MB / 0.5722 GB, free: 34.64 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.692e-05/0.4513, allocations: 9.469 kB / 0.5722 GB, free: 34.64 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002303/0.4515, allocations: 124.5 kB / 0.5723 GB, free: 34.61 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004539/0.4561, allocations: 0.7856 MB / 0.5731 GB, free: 34.51 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001434/0.4575, allocations: 0.8396 MB / 0.5739 GB, free: 34.14 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002257/0.4577, allocations: 275.2 kB / 0.5741 GB, free: 33.94 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001377/0.4579, allocations: 85.28 kB / 0.5742 GB, free: 33.94 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002/0.4599, allocations: 1.146 MB / 0.5753 GB, free: 33.77 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.819e-05/0.4599, allocations: 0 / 0.5753 GB, free: 33.77 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.583e-05/0.46, allocations: 34.31 kB / 0.5754 GB, free: 33.74 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.714e-05/0.46, allocations: 23.08 kB / 0.5754 GB, free: 33.74 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001717/0.4618, allocations: 1.042 MB / 0.5764 GB, free: 33.41 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.005505/0.4673, allocations: 3.9 MB / 0.5802 GB, free: 31.19 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006879/0.4742, allocations: 2.917 MB / 0.5831 GB, free: 30.3 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001531/0.4758, allocations: 0.7327 MB / 0.5838 GB, free: 30.03 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001182/0.4759, allocations: 23.78 kB / 0.5838 GB, free: 30.02 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001601/0.4775, allocations: 0.8742 MB / 0.5847 GB, free: 29.7 MB / 430.1 MB Notification: Performance of pre-optimization done (n=96): time 3.045e-06/0.4775, allocations: 0 / 0.5847 GB, free: 29.7 MB / 430.1 MB Notification: Performance of matching and sorting (n=96): time 0.0285/0.506, allocations: 8.643 MB / 0.5931 GB, free: 28.13 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.19e-05/0.5061, allocations: 115 kB / 0.5932 GB, free: 28 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002326/0.5085, allocations: 1.069 MB / 0.5943 GB, free: 27.56 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002755/0.5088, allocations: 46.25 kB / 0.5943 GB, free: 27.52 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004578/0.5092, allocations: 494.6 kB / 0.5948 GB, free: 27.13 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005537/0.5098, allocations: 352.7 kB / 0.5951 GB, free: 26.86 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002531/0.5101, allocations: 35.78 kB / 0.5951 GB, free: 26.83 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001462/0.5102, allocations: 364.6 kB / 0.5955 GB, free: 26.5 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001946/0.5122, allocations: 0.8185 MB / 0.5963 GB, free: 26.21 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002067/0.5142, allocations: 0.9901 MB / 0.5973 GB, free: 25.77 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002063/0.5163, allocations: 0.9681 MB / 0.5982 GB, free: 25.3 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.168e-05/0.5163, allocations: 1.219 kB / 0.5982 GB, free: 25.3 MB / 430.1 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.01473/0.5311, allocations: 5.156 MB / 0.6032 GB, free: 24.05 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.677e-05/0.5312, allocations: 63.55 kB / 0.6033 GB, free: 23.98 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.808e-05/0.5313, allocations: 3.656 kB / 0.6033 GB, free: 23.98 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006657/0.5379, allocations: 1.898 MB / 0.6052 GB, free: 23.68 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001672/0.5396, allocations: 297.5 kB / 0.6054 GB, free: 23.65 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0206/0.5602, allocations: 9.022 MB / 0.6143 GB, free: 17.96 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002076/0.5624, allocations: 230.7 kB / 0.6145 GB, free: 17.73 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00033/0.5627, allocations: 60.72 kB / 0.6145 GB, free: 17.67 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.0009626/0.5637, allocations: 300 kB / 0.6148 GB, free: 17.37 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000414/0.5641, allocations: 126.4 kB / 0.6149 GB, free: 17.24 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01153/0.5757, allocations: 4.714 MB / 0.6195 GB, free: 12.5 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.721e-05/0.5757, allocations: 12 kB / 0.6195 GB, free: 12.48 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.228e-05/0.5758, allocations: 8 kB / 0.6196 GB, free: 12.48 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.269e-05/0.5758, allocations: 7.938 kB / 0.6196 GB, free: 12.47 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.01412/0.5899, allocations: 6.297 MB / 0.6257 GB, free: 6.062 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.592e-05/0.59, allocations: 0 / 0.6257 GB, free: 6.062 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000648/0.5907, allocations: 101.3 kB / 0.6258 GB, free: 5.965 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005038/0.5957, allocations: 1.89 MB / 0.6277 GB, free: 4.07 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002235/0.596, allocations: 19.98 kB / 0.6277 GB, free: 4.051 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01913/0.6151, allocations: 9.639 MB / 0.6371 GB, free: 10.14 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.32e-06/0.6152, allocations: 7.891 kB / 0.6371 GB, free: 10.13 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01523/0.6304, allocations: 5.635 MB / 0.6426 GB, free: 4.457 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006645/0.6312, allocations: 235.2 kB / 0.6428 GB, free: 4.207 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004907/0.6317, allocations: 27.94 kB / 0.6429 GB, free: 4.18 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001442/0.6331, allocations: 144.8 kB / 0.643 GB, free: 4.039 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007091/0.6339, allocations: 193.3 kB / 0.6432 GB, free: 3.848 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001655/0.6341, allocations: 27.98 kB / 0.6432 GB, free: 3.82 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001474/0.6355, allocations: 0.7157 MB / 0.6439 GB, free: 3.098 MB / 446.1 MB Notification: Performance of sort global known variables: time 6.81e-07/0.6356, allocations: 0 / 0.6439 GB, free: 3.098 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002261/0.6378, allocations: 477.6 kB / 0.6444 GB, free: 2.633 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.01556/0.6534, allocations: 6.225 MB / 0.6504 GB, free: 12.36 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007138/0.6606, allocations: 2.779 MB / 0.6531 GB, free: 9.555 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.51e-06/0.6606, allocations: 0 / 0.6531 GB, free: 9.555 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004639/0.6653, allocations: 1.829 MB / 0.6549 GB, free: 7.684 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001684/0.667, allocations: 118.3 kB / 0.655 GB, free: 7.57 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03109/0.6981, allocations: 12.03 MB / 0.6668 GB, free: 11.23 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001103/0.6993, allocations: 1.124 MB / 0.6679 GB, free: 10.07 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0007545/0.7001, allocations: 115.2 kB / 0.668 GB, free: 9.961 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009344/0.701, allocations: 467.3 kB / 0.6684 GB, free: 9.504 MB / 478.1 MB Notification: Performance of SimCode: time 1.633e-06/0.7011, allocations: 0 / 0.6684 GB, free: 9.504 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0639/0.765, allocations: 32.02 MB / 0.6997 GB, free: 9.91 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000188/0.7652, allocations: 222.7 kB / 0.6999 GB, free: 9.668 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.981/3.746, allocations: 0 / 0.6999 GB, free: 9.668 MB / 0.4981 GB (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FourthOrder_AVRII_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FourthOrder_AVRII.fmu > OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe 2>&1) Environment - environmentSimulation: