Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Tests.Controls.PSAT.AVR.AVRTypeII_Test.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.1.0-master/package.mo", uses=false) Using package OpenIPSL with version 3.1.0-dev (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/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.Tests.Controls.PSAT.AVR.AVRTypeII_Test,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Tests_Controls_PSAT_AVR_AVRTypeII_Test",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Tests.Controls.PSAT.AVR.AVRTypeII_Test,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Tests_Controls_PSAT_AVR_AVRTypeII_Test",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.001218/0.001218, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.425/1.425, allocations: 222.9 MB / 239.3 MB, free: 4.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.00156/0.00156, allocations: 203.4 kB / 289.6 MB, free: 2.316 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5758/0.5758, allocations: 91.91 MB / 431.6 MB, free: 9.316 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001728/0.001728, allocations: 75.88 kB / 0.502 GB, free: 7.648 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4513/0.4531, allocations: 71.26 MB / 0.5716 GB, free: 36.61 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Controls.PSAT.AVR.AVRTypeII_Test): time 0.006282/0.4594, allocations: 6.642 MB / 0.5781 GB, free: 32.76 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.004148/0.4636, allocations: 2.034 MB / 0.5801 GB, free: 31.32 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008605/0.4645, allocations: 11.5 kB / 0.5801 GB, free: 31.32 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007474/0.4653, allocations: 246.3 kB / 0.5803 GB, free: 31.19 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002002/0.4673, allocations: 0.7644 MB / 0.581 GB, free: 30.69 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001422/0.4688, allocations: 0.6707 MB / 0.5817 GB, free: 30.34 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001648/0.4704, allocations: 1.623 MB / 0.5833 GB, free: 29.54 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004756/0.4709, allocations: 343.9 kB / 0.5836 GB, free: 29.39 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009033/0.4718, allocations: 0.6648 MB / 0.5843 GB, free: 29.06 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007347/0.4726, allocations: 0.8221 MB / 0.5851 GB, free: 28.66 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001726/0.4728, allocations: 123.1 kB / 0.5852 GB, free: 28.66 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005564/0.4733, allocations: 260.8 kB / 0.5854 GB, free: 28.61 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002411/0.4736, allocations: 332.8 kB / 0.5858 GB, free: 28.39 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005074/0.4741, allocations: 0.6778 MB / 0.5864 GB, free: 27.93 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001484/0.4756, allocations: 1.676 MB / 0.5881 GB, free: 27.17 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.501e-06/0.4756, allocations: 0 / 0.5881 GB, free: 27.17 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.435e-06/0.4756, allocations: 5 kB / 0.5881 GB, free: 27.17 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.911e-05/0.4756, allocations: 0 / 0.5881 GB, free: 27.17 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: 201 * Number of variables: 201 Notification: Performance of Generate backend data structure: time 0.009316/0.485, allocations: 2.76 MB / 0.5908 GB, free: 25.91 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.989e-05/0.485, allocations: 9.438 kB / 0.5908 GB, free: 25.91 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001477/0.4852, allocations: 134.1 kB / 0.5909 GB, free: 25.81 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005216/0.4904, allocations: 0.7879 MB / 0.5917 GB, free: 25.65 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001713/0.4922, allocations: 0.89 MB / 0.5925 GB, free: 25.05 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002478/0.4924, allocations: 254.2 kB / 0.5928 GB, free: 24.82 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001663/0.4926, allocations: 87.34 kB / 0.5929 GB, free: 24.79 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002312/0.4949, allocations: 1.176 MB / 0.594 GB, free: 24.34 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.914e-05/0.4949, allocations: 0 / 0.594 GB, free: 24.34 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001021/0.4951, allocations: 35.89 kB / 0.594 GB, free: 24.31 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.304e-05/0.4951, allocations: 18.97 kB / 0.5941 GB, free: 24.31 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002335/0.4974, allocations: 1.073 MB / 0.5951 GB, free: 23.95 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.006825/0.5043, allocations: 3.673 MB / 0.5987 GB, free: 21.93 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002541/0.5068, allocations: 1.553 MB / 0.6002 GB, free: 20.91 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001605/0.5084, allocations: 0.7828 MB / 0.601 GB, free: 20.59 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001047/0.5086, allocations: 25.11 kB / 0.601 GB, free: 20.58 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001906/0.5105, allocations: 0.8852 MB / 0.6019 GB, free: 20.24 MB / 430.1 MB Notification: Performance of pre-optimization done (n=102): time 4.489e-06/0.5105, allocations: 0 / 0.6019 GB, free: 20.24 MB / 430.1 MB Notification: Performance of matching and sorting (n=102): time 0.02872/0.5392, allocations: 6.963 MB / 0.6087 GB, free: 18.78 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.296e-05/0.5393, allocations: 115.8 kB / 0.6088 GB, free: 18.66 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001921/0.5412, allocations: 1.027 MB / 0.6098 GB, free: 18.23 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003452/0.5416, allocations: 51.78 kB / 0.6098 GB, free: 18.18 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003746/0.542, allocations: 0.4987 MB / 0.6103 GB, free: 17.78 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003895/0.5424, allocations: 370.4 kB / 0.6107 GB, free: 17.49 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004859/0.5429, allocations: 248.3 kB / 0.6109 GB, free: 17.38 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001027/0.543, allocations: 358.6 kB / 0.6112 GB, free: 17.05 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001822/0.5448, allocations: 0.7628 MB / 0.612 GB, free: 16.76 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001906/0.5467, allocations: 0.9184 MB / 0.6129 GB, free: 16.35 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0219/0.5686, allocations: 5.437 MB / 0.6182 GB, free: 13.85 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.118e-05/0.5687, allocations: 0 / 0.6182 GB, free: 13.85 MB / 430.1 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.01396/0.5827, allocations: 4.509 MB / 0.6226 GB, free: 9.801 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.687e-05/0.5828, allocations: 63.39 kB / 0.6227 GB, free: 9.727 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.633e-05/0.5828, allocations: 7.938 kB / 0.6227 GB, free: 9.719 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006452/0.5892, allocations: 1.85 MB / 0.6245 GB, free: 7.863 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00135/0.5906, allocations: 251.6 kB / 0.6247 GB, free: 7.617 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02146/0.6121, allocations: 9.476 MB / 0.634 GB, free: 14 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002251/0.6144, allocations: 194.8 kB / 0.6341 GB, free: 13.81 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003144/0.6147, allocations: 51.98 kB / 0.6342 GB, free: 13.76 MB / 446.1 MB Warning: Assuming fixed start value for the following 2 variables: order6Type2_Inputs_Outputs.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order6Type2_Inputs_Outputs.delta:VARIABLE(flow=false start = order6Type2_Inputs_Outputs.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (139): * Single equations (assignments): 136 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(24,14)} Notification: Performance of prepare postOptimizeDAE: time 0.0009523/0.6157, allocations: 298.9 kB / 0.6345 GB, free: 13.45 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004521/0.6162, allocations: 122.5 kB / 0.6346 GB, free: 13.33 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01453/0.6307, allocations: 4.2 MB / 0.6387 GB, free: 9.102 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.196e-05/0.6308, allocations: 12 kB / 0.6387 GB, free: 9.09 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.189e-06/0.6308, allocations: 0 / 0.6387 GB, free: 9.09 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.363e-05/0.6308, allocations: 7.922 kB / 0.6387 GB, free: 9.082 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01792/0.6488, allocations: 5.973 MB / 0.6446 GB, free: 2.969 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.952e-05/0.6488, allocations: 4 kB / 0.6446 GB, free: 2.965 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008214/0.6497, allocations: 103.9 kB / 0.6447 GB, free: 2.863 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006609/0.6563, allocations: 1.831 MB / 0.6464 GB, free: 1.023 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002899/0.6566, allocations: 19.98 kB / 0.6465 GB, free: 1.004 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02357/0.6802, allocations: 10.31 MB / 0.6565 GB, free: 6.395 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.861e-06/0.6803, allocations: 7.938 kB / 0.6565 GB, free: 6.387 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01694/0.6972, allocations: 5.142 MB / 0.6616 GB, free: 1.207 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008376/0.6981, allocations: 223.2 kB / 0.6618 GB, free: 0.9688 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007348/0.6989, allocations: 23.94 kB / 0.6618 GB, free: 0.9453 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00202/0.7009, allocations: 123.9 kB / 0.6619 GB, free: 0.8242 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001057/0.702, allocations: 208.7 kB / 0.6621 GB, free: 0.6211 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002337/0.7022, allocations: 31.98 kB / 0.6622 GB, free: 0.5898 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001458/0.7037, allocations: 0.6993 MB / 0.6628 GB, free: 15.88 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.7037, allocations: 0 / 0.6628 GB, free: 15.88 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.002057/0.7058, allocations: 479.5 kB / 0.6633 GB, free: 15.41 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 10 (order6Type2_Inputs_Outputs.delta,order6Type2_Inputs_Outputs.w,order6Type2_Inputs_Outputs.e1q,order6Type2_Inputs_Outputs.e1d,order6Type2_Inputs_Outputs.e2q,order6Type2_Inputs_Outputs.e2d,aVRI.ExcitationSystem.x_scaled[1],aVRI.derivativeBlock.x,aVRI.firstOrder2.y,aVRI.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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(26,10), (1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01719/0.723, allocations: 5.721 MB / 0.6689 GB, free: 9.645 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.008835/0.7319, allocations: 2.714 MB / 0.6715 GB, free: 6.898 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 8.085e-06/0.7319, allocations: 0 / 0.6715 GB, free: 6.898 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005776/0.7377, allocations: 1.798 MB / 0.6733 GB, free: 5.059 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00164/0.7394, allocations: 121.6 kB / 0.6734 GB, free: 4.941 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04677/0.7862, allocations: 17.33 MB / 0.6903 GB, free: 3.18 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009768/0.7872, allocations: 1.132 MB / 0.6914 GB, free: 2.02 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0007007/0.7879, allocations: 103.9 kB / 0.6915 GB, free: 1.914 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008297/0.7888, allocations: 483.3 kB / 0.692 GB, free: 1.441 MB / 494.1 MB Notification: Performance of SimCode: time 1.303e-06/0.7888, allocations: 0 / 0.692 GB, free: 1.441 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07932/0.8681, allocations: 36.8 MB / 0.7279 GB, free: 12.8 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.43/13.29, allocations: 13.78 kB / 0.7279 GB, free: 12.79 MB / 0.5294 GB (rm -f OpenIPSL_dev_OpenIPSL.Tests.Controls.PSAT.AVR.AVRTypeII_Test.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Tests.Controls.PSAT.AVR.AVRTypeII_Test.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Tests.Controls.PSAT.AVR.AVRTypeII_Test.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Tests.Controls.PSAT.AVR.AVRTypeII_Test.sim & python3 -m fmpy simulate --output-file OpenIPSL_dev_OpenIPSL.Tests.Controls.PSAT.AVR.AVRTypeII_Test_res.csv --start-time 0 --stop-time 60 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.024 OpenIPSL_dev_OpenIPSL_Tests_Controls_PSAT_AVR_AVRTypeII_Test.fmu > OpenIPSL_dev_OpenIPSL.Tests.Controls.PSAT.AVR.AVRTypeII_Test.pipe 2>&1)