Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_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.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.Tests.Controls.PSAT.AVR.AVRTypeII_Test,fileNamePrefix="OpenIPSL_OpenIPSL_Tests_Controls_PSAT_AVR_AVRTypeII_Test",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Tests.Controls.PSAT.AVR.AVRTypeII_Test,fileNamePrefix="OpenIPSL_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.005739/0.005739, allocations: 96.19 kB / 15.73 MB, free: 6.059 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.457/1.457, allocations: 222.9 MB / 239.4 MB, free: 4.562 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.001791/0.001791, allocations: 196.5 kB / 289.7 MB, free: 2.277 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4919/0.4919, allocations: 78.53 MB / 418.4 MB, free: 3.199 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002294/0.002294, allocations: 75.88 kB / 0.5531 GB, free: 1.492 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3626/0.3649, allocations: 68.17 MB / 0.6197 GB, free: 9.359 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Controls.PSAT.AVR.AVRTypeII_Test): time 0.005555/0.3705, allocations: 6.63 MB / 0.6262 GB, free: 3.551 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003922/0.3744, allocations: 2.032 MB / 0.6282 GB, free: 1.516 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008911/0.3754, allocations: 16 kB / 0.6282 GB, free: 1.5 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008007/0.3762, allocations: 237.9 kB / 0.6284 GB, free: 1.266 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001786/0.378, allocations: 0.7631 MB / 0.6291 GB, free: 0.5 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00127/0.3793, allocations: 0.6748 MB / 0.6298 GB, free: 15.83 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.002016/0.3813, allocations: 1.639 MB / 0.6314 GB, free: 14.19 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000546/0.3819, allocations: 352.2 kB / 0.6317 GB, free: 13.83 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001027/0.3829, allocations: 0.6652 MB / 0.6324 GB, free: 13.16 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009994/0.3839, allocations: 0.8129 MB / 0.6332 GB, free: 12.35 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001935/0.3841, allocations: 124 kB / 0.6333 GB, free: 12.23 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005726/0.3847, allocations: 259.8 kB / 0.6336 GB, free: 11.97 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003198/0.385, allocations: 326.6 kB / 0.6339 GB, free: 11.65 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006532/0.3857, allocations: 0.6719 MB / 0.6345 GB, free: 10.98 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002059/0.3878, allocations: 1.713 MB / 0.6362 GB, free: 9.258 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.3878, allocations: 0 / 0.6362 GB, free: 9.258 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.3878, allocations: 4 kB / 0.6362 GB, free: 9.254 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.926e-05/0.3878, allocations: 3.938 kB / 0.6362 GB, free: 9.25 MB / 446.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.009423/0.3972, allocations: 2.804 MB / 0.6389 GB, free: 6.371 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.011e-05/0.3973, allocations: 12.03 kB / 0.639 GB, free: 6.359 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001797/0.3975, allocations: 134.9 kB / 0.6391 GB, free: 6.219 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005084/0.4026, allocations: 0.7913 MB / 0.6399 GB, free: 5.426 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00188/0.4045, allocations: 0.8947 MB / 0.6407 GB, free: 4.477 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000321/0.4048, allocations: 256.1 kB / 0.641 GB, free: 4.191 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001684/0.405, allocations: 87.95 kB / 0.6411 GB, free: 4.105 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002541/0.4076, allocations: 1.184 MB / 0.6422 GB, free: 2.906 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.041e-05/0.4076, allocations: 0 / 0.6422 GB, free: 2.906 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001014/0.4077, allocations: 28 kB / 0.6422 GB, free: 2.879 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.278e-05/0.4077, allocations: 20 kB / 0.6423 GB, free: 2.859 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002429/0.4102, allocations: 1.078 MB / 0.6433 GB, free: 1.785 MB / 446.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.006815/0.417, allocations: 3.665 MB / 0.6469 GB, free: 13.98 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002679/0.4197, allocations: 1.547 MB / 0.6484 GB, free: 12.31 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00164/0.4214, allocations: 0.7816 MB / 0.6492 GB, free: 11.53 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001296/0.4215, allocations: 24.86 kB / 0.6492 GB, free: 11.5 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001855/0.4234, allocations: 0.8919 MB / 0.6501 GB, free: 10.59 MB / 462.1 MB Notification: Performance of pre-optimization done (n=102): time 3.567e-06/0.4234, allocations: 0 / 0.6501 GB, free: 10.59 MB / 462.1 MB Notification: Performance of matching and sorting (n=102): time 0.02816/0.4515, allocations: 6.953 MB / 0.6568 GB, free: 3.578 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.762e-05/0.4517, allocations: 115.8 kB / 0.657 GB, free: 3.441 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001782/0.4535, allocations: 1.035 MB / 0.658 GB, free: 2.391 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002376/0.4537, allocations: 45.7 kB / 0.658 GB, free: 2.34 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004737/0.4542, allocations: 0.5015 MB / 0.6585 GB, free: 1.832 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000467/0.4547, allocations: 392.7 kB / 0.6589 GB, free: 1.445 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005084/0.4552, allocations: 247.5 kB / 0.6591 GB, free: 1.199 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001941/0.4554, allocations: 353.9 kB / 0.6594 GB, free: 0.8477 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001793/0.4572, allocations: 0.7652 MB / 0.6602 GB, free: 84 kB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001914/0.4591, allocations: 0.9154 MB / 0.6611 GB, free: 15.13 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02258/0.4817, allocations: 5.417 MB / 0.6664 GB, free: 9.633 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.084e-06/0.4818, allocations: 0 / 0.6664 GB, free: 9.633 MB / 478.1 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.01558/0.4973, allocations: 4.511 MB / 0.6708 GB, free: 5.094 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.221e-05/0.4975, allocations: 59.41 kB / 0.6708 GB, free: 5.023 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.883e-05/0.4975, allocations: 7.938 kB / 0.6709 GB, free: 5.016 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007371/0.5049, allocations: 1.857 MB / 0.6727 GB, free: 3.152 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001386/0.5063, allocations: 247.7 kB / 0.6729 GB, free: 2.91 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02442/0.5307, allocations: 9.484 MB / 0.6822 GB, free: 9.273 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001945/0.5327, allocations: 195.2 kB / 0.6823 GB, free: 9.082 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002776/0.533, allocations: 51.98 kB / 0.6824 GB, free: 9.031 MB / 494.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.0007608/0.5338, allocations: 292.5 kB / 0.6827 GB, free: 8.734 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003266/0.5341, allocations: 131.2 kB / 0.6828 GB, free: 8.605 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01505/0.5492, allocations: 4.2 MB / 0.6869 GB, free: 4.371 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.372e-05/0.5493, allocations: 11.98 kB / 0.6869 GB, free: 4.359 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.143e-06/0.5493, allocations: 7.938 kB / 0.6869 GB, free: 4.352 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.977e-05/0.5493, allocations: 7.922 kB / 0.6869 GB, free: 4.344 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0183/0.5676, allocations: 5.961 MB / 0.6928 GB, free: 14.25 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.7e-05/0.5677, allocations: 0 / 0.6928 GB, free: 14.25 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008075/0.5685, allocations: 111.8 kB / 0.6929 GB, free: 14.14 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006893/0.5754, allocations: 1.824 MB / 0.6946 GB, free: 12.31 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002548/0.5757, allocations: 24 kB / 0.6947 GB, free: 12.29 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02512/0.6008, allocations: 10.31 MB / 0.7047 GB, free: 1.684 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.291e-06/0.6009, allocations: 3.938 kB / 0.7047 GB, free: 1.68 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01763/0.6185, allocations: 5.149 MB / 0.7098 GB, free: 12.5 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005359/0.6191, allocations: 220 kB / 0.71 GB, free: 12.26 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004242/0.6195, allocations: 31.92 kB / 0.71 GB, free: 12.23 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001566/0.6211, allocations: 107.9 kB / 0.7101 GB, free: 12.12 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008062/0.6219, allocations: 212.7 kB / 0.7103 GB, free: 11.92 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001582/0.6221, allocations: 28.19 kB / 0.7103 GB, free: 11.89 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001422/0.6235, allocations: 0.7032 MB / 0.711 GB, free: 11.18 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.7e-07/0.6235, allocations: 3.938 kB / 0.711 GB, free: 11.18 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.001896/0.6255, allocations: 491.5 kB / 0.7115 GB, free: 10.7 MB / 0.5137 GB 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.01756/0.643, allocations: 5.715 MB / 0.7171 GB, free: 4.938 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.008389/0.6515, allocations: 2.69 MB / 0.7197 GB, free: 2.207 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 5.701e-06/0.6515, allocations: 0 / 0.7197 GB, free: 2.207 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.005764/0.6573, allocations: 1.798 MB / 0.7215 GB, free: 376 kB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001443/0.6588, allocations: 116.4 kB / 0.7216 GB, free: 256 kB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04659/0.7054, allocations: 16.63 MB / 0.7378 GB, free: 15.42 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001045/0.7065, allocations: 1.124 MB / 0.7389 GB, free: 14.27 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0006161/0.7071, allocations: 107.9 kB / 0.739 GB, free: 14.16 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008506/0.708, allocations: 479.3 kB / 0.7395 GB, free: 13.69 MB / 0.545 GB Notification: Performance of SimCode: time 7.81e-07/0.708, allocations: 4 kB / 0.7395 GB, free: 13.68 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3969/1.105, allocations: 37.28 MB / 0.7759 GB, free: 137.9 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.75/15.85, allocations: 9.641 kB / 0.7759 GB, free: 137.9 MB / 0.5606 GB (rm -f OpenIPSL_OpenIPSL.Tests.Controls.PSAT.AVR.AVRTypeII_Test.pipe ; mkfifo OpenIPSL_OpenIPSL.Tests.Controls.PSAT.AVR.AVRTypeII_Test.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Tests.Controls.PSAT.AVR.AVRTypeII_Test.pipe >> ../files/OpenIPSL_OpenIPSL.Tests.Controls.PSAT.AVR.AVRTypeII_Test.sim & python3 -m fmpy simulate --output-file OpenIPSL_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_OpenIPSL_Tests_Controls_PSAT_AVR_AVRTypeII_Test.fmu > OpenIPSL_OpenIPSL.Tests.Controls.PSAT.AVR.AVRTypeII_Test.pipe 2>&1)