Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_OpenIPSL.Tests.Controls.PSAT.OEL.AVRTypeII_OEL_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.OEL.AVRTypeII_OEL_Test,fileNamePrefix="OpenIPSL_OpenIPSL_Tests_Controls_PSAT_OEL_AVRTypeII_OEL_Test",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Tests.Controls.PSAT.OEL.AVRTypeII_OEL_Test,fileNamePrefix="OpenIPSL_OpenIPSL_Tests_Controls_PSAT_OEL_AVRTypeII_OEL_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.007413/0.007413, allocations: 99.64 kB / 15.73 MB, free: 6.016 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.301/1.301, allocations: 222.9 MB / 239.4 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.001288/0.001288, allocations: 196.4 kB / 289.7 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.4439/0.4439, allocations: 78.54 MB / 418.4 MB, free: 3.141 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001459/0.001459, allocations: 79.88 kB / 0.5531 GB, free: 1.445 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3434/0.3449, allocations: 68.17 MB / 0.6197 GB, free: 9.297 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Controls.PSAT.OEL.AVRTypeII_OEL_Test): time 0.006365/0.3513, allocations: 6.979 MB / 0.6265 GB, free: 3.137 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.004174/0.3555, allocations: 2.117 MB / 0.6286 GB, free: 1.016 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008945/0.3564, allocations: 15.94 kB / 0.6286 GB, free: 1 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007254/0.3571, allocations: 269.8 kB / 0.6289 GB, free: 0.7344 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001604/0.3588, allocations: 0.8241 MB / 0.6297 GB, free: 15.91 MB / 446.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 generator.xq <> generator.x1q, <> on Real numbers is only allowed inside functions. Notification: Performance of NFTyping.typeClassSections: time 0.001748/0.3605, allocations: 0.7491 MB / 0.6304 GB, free: 15.17 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.002252/0.3628, allocations: 1.74 MB / 0.6321 GB, free: 13.42 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005851/0.3634, allocations: 404.8 kB / 0.6325 GB, free: 13 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008866/0.3643, allocations: 0.7042 MB / 0.6332 GB, free: 12.29 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009069/0.3652, allocations: 0.8439 MB / 0.634 GB, free: 11.45 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001939/0.3654, allocations: 136 kB / 0.6341 GB, free: 11.31 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004946/0.3659, allocations: 263.9 kB / 0.6344 GB, free: 11.05 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002951/0.3662, allocations: 350.5 kB / 0.6347 GB, free: 10.71 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006176/0.3668, allocations: 0.7108 MB / 0.6354 GB, free: 9.996 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002039/0.3689, allocations: 1.828 MB / 0.6372 GB, free: 8.16 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.031e-06/0.3689, allocations: 0 / 0.6372 GB, free: 8.16 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.3689, allocations: 0 / 0.6372 GB, free: 8.16 MB / 446.1 MB Notification: Performance of Transformations before backend: time 2.352e-05/0.3689, allocations: 0 / 0.6372 GB, free: 8.16 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: 219 * Number of variables: 219 Notification: Performance of Generate backend data structure: time 0.009282/0.3782, allocations: 2.897 MB / 0.64 GB, free: 5.195 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.078e-05/0.3783, allocations: 12.03 kB / 0.64 GB, free: 5.184 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001854/0.3785, allocations: 147.4 kB / 0.6402 GB, free: 5.031 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005056/0.3836, allocations: 0.7991 MB / 0.641 GB, free: 4.23 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001625/0.3852, allocations: 0.9421 MB / 0.6419 GB, free: 3.234 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004011/0.3856, allocations: 331.6 kB / 0.6422 GB, free: 2.859 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001862/0.3858, allocations: 95.94 kB / 0.6423 GB, free: 2.766 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002708/0.3885, allocations: 1.291 MB / 0.6436 GB, free: 1.457 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.095e-05/0.3886, allocations: 0 / 0.6436 GB, free: 1.457 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001083/0.3887, allocations: 35.94 kB / 0.6436 GB, free: 1.422 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.675e-05/0.3887, allocations: 20 kB / 0.6436 GB, free: 1.402 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002719/0.3914, allocations: 1.202 MB / 0.6448 GB, free: 204 kB / 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.007063/0.3985, allocations: 4.157 MB / 0.6488 GB, free: 11.88 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003392/0.4019, allocations: 1.773 MB / 0.6506 GB, free: 9.988 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001746/0.4037, allocations: 0.8602 MB / 0.6514 GB, free: 9.121 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.656e-05/0.4038, allocations: 16.98 kB / 0.6514 GB, free: 9.105 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001978/0.4058, allocations: 0.9621 MB / 0.6524 GB, free: 8.121 MB / 462.1 MB Notification: Performance of pre-optimization done (n=108): time 3.327e-06/0.4058, allocations: 0 / 0.6524 GB, free: 8.121 MB / 462.1 MB Notification: Performance of matching and sorting (n=108): time 0.03443/0.4402, allocations: 7.902 MB / 0.6601 GB, free: 156 kB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001158/0.4404, allocations: 119.8 kB / 0.6602 GB, free: 12 kB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001968/0.4424, allocations: 1.041 MB / 0.6612 GB, free: 14.96 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002354/0.4426, allocations: 49.7 kB / 0.6613 GB, free: 14.9 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004161/0.4431, allocations: 0.5292 MB / 0.6618 GB, free: 14.37 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004924/0.4436, allocations: 404.5 kB / 0.6622 GB, free: 13.97 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005662/0.4441, allocations: 251.5 kB / 0.6624 GB, free: 13.72 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001469/0.4443, allocations: 357.9 kB / 0.6627 GB, free: 13.36 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001839/0.4461, allocations: 0.7925 MB / 0.6635 GB, free: 12.57 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001928/0.4481, allocations: 0.9406 MB / 0.6644 GB, free: 11.59 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02277/0.4709, allocations: 5.489 MB / 0.6698 GB, free: 6.016 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-05/0.4709, allocations: 4 kB / 0.6698 GB, free: 6.012 MB / 478.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.01532/0.4863, allocations: 4.46 MB / 0.6742 GB, free: 1.523 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.898e-05/0.4864, allocations: 63.41 kB / 0.6742 GB, free: 1.449 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.63e-05/0.4864, allocations: 4 kB / 0.6742 GB, free: 1.445 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006292/0.4927, allocations: 1.737 MB / 0.6759 GB, free: 15.7 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001575/0.4943, allocations: 279.6 kB / 0.6762 GB, free: 15.43 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02278/0.5171, allocations: 9.059 MB / 0.685 GB, free: 6.223 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001962/0.5191, allocations: 203.2 kB / 0.6852 GB, free: 6.023 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003206/0.5195, allocations: 51.97 kB / 0.6853 GB, free: 5.973 MB / 494.1 MB Warning: Assuming fixed start value for the following 3 variables: generator.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real generator.delta:VARIABLE(flow=false start = generator.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real generator.e1q:VARIABLE(start = generator.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: 12 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition2,$whenCondition1,oXL.limIntegrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (141): * Single equations (assignments): 138 * 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,11)} Notification: Performance of prepare postOptimizeDAE: time 0.0008295/0.5203, allocations: 303.7 kB / 0.6856 GB, free: 5.66 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000392/0.5207, allocations: 139 kB / 0.6857 GB, free: 5.523 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01495/0.5357, allocations: 4.397 MB / 0.69 GB, free: 1.094 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.31e-05/0.5357, allocations: 12 kB / 0.69 GB, free: 1.082 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.5357, allocations: 3.938 kB / 0.69 GB, free: 1.078 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.26e-05/0.5358, allocations: 15.91 kB / 0.69 GB, free: 1.062 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01832/0.5541, allocations: 6.256 MB / 0.6961 GB, free: 10.67 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.554e-05/0.5542, allocations: 0 / 0.6961 GB, free: 10.67 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008545/0.555, allocations: 123.9 kB / 0.6963 GB, free: 10.55 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00679/0.5618, allocations: 1.911 MB / 0.6981 GB, free: 8.633 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002373/0.5621, allocations: 24 kB / 0.6981 GB, free: 8.609 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02503/0.5871, allocations: 10.73 MB / 0.7086 GB, free: 13.6 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.5872, allocations: 0 / 0.7086 GB, free: 13.6 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01768/0.6049, allocations: 5.437 MB / 0.7139 GB, free: 8.125 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005176/0.6054, allocations: 231.9 kB / 0.7141 GB, free: 7.879 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003563/0.6058, allocations: 16 kB / 0.7142 GB, free: 7.863 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001519/0.6073, allocations: 139.8 kB / 0.7143 GB, free: 7.727 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007711/0.6081, allocations: 240.6 kB / 0.7145 GB, free: 7.492 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001312/0.6083, allocations: 32 kB / 0.7146 GB, free: 7.461 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001185/0.6095, allocations: 0.7045 MB / 0.7152 GB, free: 6.75 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.7e-07/0.6095, allocations: 0 / 0.7152 GB, free: 6.75 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.001598/0.6111, allocations: 487.5 kB / 0.7157 GB, free: 6.273 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 9 (generator.delta,generator.w,generator.e1q,generator.e1d,exciter_Type_II.ExcitationSystem.x_scaled[1],exciter_Type_II.derivativeBlock.x,exciter_Type_II.firstOrder2.y,exciter_Type_II.simpleLagLim.state,oXL.limIntegrator.y) * 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 (67): * Single equations (assignments): 64 * 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,13), (1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01788/0.629, allocations: 6 MB / 0.7216 GB, free: 232 kB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.007895/0.6369, allocations: 2.746 MB / 0.7242 GB, free: 13.44 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 6.082e-06/0.6369, allocations: 0 / 0.7242 GB, free: 13.44 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.005585/0.6425, allocations: 1.891 MB / 0.7261 GB, free: 11.5 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001351/0.6439, allocations: 129.7 kB / 0.7262 GB, free: 11.38 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04271/0.6866, allocations: 16.93 MB / 0.7427 GB, free: 10.24 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008314/0.6875, allocations: 1.147 MB / 0.7439 GB, free: 9.066 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0005451/0.6881, allocations: 120.3 kB / 0.744 GB, free: 8.945 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000731/0.6888, allocations: 0.4915 MB / 0.7445 GB, free: 8.453 MB / 0.545 GB Notification: Performance of SimCode: time 6.31e-07/0.6888, allocations: 0 / 0.7445 GB, free: 8.453 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4223/1.111, allocations: 38.79 MB / 0.7823 GB, free: 137.8 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.06/17.17, allocations: 5.594 kB / 0.7823 GB, free: 137.8 MB / 0.5606 GB (rm -f OpenIPSL_OpenIPSL.Tests.Controls.PSAT.OEL.AVRTypeII_OEL_Test.pipe ; mkfifo OpenIPSL_OpenIPSL.Tests.Controls.PSAT.OEL.AVRTypeII_OEL_Test.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Tests.Controls.PSAT.OEL.AVRTypeII_OEL_Test.pipe >> ../files/OpenIPSL_OpenIPSL.Tests.Controls.PSAT.OEL.AVRTypeII_OEL_Test.sim & python3 -m fmpy simulate --output-file OpenIPSL_OpenIPSL.Tests.Controls.PSAT.OEL.AVRTypeII_OEL_Test_res.csv --start-time 0 --stop-time 50 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.02 OpenIPSL_OpenIPSL_Tests_Controls_PSAT_OEL_AVRTypeII_OEL_Test.fmu > OpenIPSL_OpenIPSL.Tests.Controls.PSAT.OEL.AVRTypeII_OEL_Test.pipe 2>&1)