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.007765/0.007765, allocations: 99.5 kB / 15.73 MB, free: 6.055 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.431/1.431, allocations: 222.9 MB / 239.4 MB, free: 4.352 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.001649/0.001649, allocations: 188.5 kB / 289.7 MB, free: 2.086 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4699/0.4699, allocations: 78.54 MB / 418.4 MB, free: 3.039 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002215/0.002215, allocations: 79.81 kB / 0.5532 GB, free: 1.391 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3335/0.3358, allocations: 68.16 MB / 0.6197 GB, free: 9.277 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Controls.PSAT.OEL.AVRTypeII_OEL_Test): time 0.00553/0.3413, allocations: 6.983 MB / 0.6265 GB, free: 3.086 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003416/0.3448, allocations: 2.109 MB / 0.6286 GB, free: 0.9727 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006444/0.3455, allocations: 15.94 kB / 0.6286 GB, free: 0.957 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006518/0.3461, allocations: 265.8 kB / 0.6289 GB, free: 0.6953 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001578/0.3477, allocations: 0.7802 MB / 0.6296 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.001676/0.3494, allocations: 0.7458 MB / 0.6304 GB, free: 15.18 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.002059/0.3515, allocations: 1.733 MB / 0.6321 GB, free: 13.44 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006477/0.3521, allocations: 407 kB / 0.6324 GB, free: 13.02 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009859/0.3531, allocations: 0.7081 MB / 0.6331 GB, free: 12.3 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001081/0.3542, allocations: 0.8399 MB / 0.634 GB, free: 11.46 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002179/0.3545, allocations: 132 kB / 0.6341 GB, free: 11.33 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005483/0.355, allocations: 271.9 kB / 0.6343 GB, free: 11.07 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003427/0.3554, allocations: 350.5 kB / 0.6347 GB, free: 10.72 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007186/0.3561, allocations: 0.7108 MB / 0.6354 GB, free: 10.01 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00224/0.3584, allocations: 1.826 MB / 0.6371 GB, free: 8.172 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.3584, allocations: 0 / 0.6371 GB, free: 8.172 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.3584, allocations: 4 kB / 0.6372 GB, free: 8.168 MB / 446.1 MB Notification: Performance of Transformations before backend: time 2.918e-05/0.3584, allocations: 4 kB / 0.6372 GB, free: 8.164 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.009531/0.368, allocations: 2.891 MB / 0.64 GB, free: 5.207 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.854e-05/0.368, allocations: 12.03 kB / 0.64 GB, free: 5.195 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002085/0.3682, allocations: 143.4 kB / 0.6401 GB, free: 5.047 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005182/0.3734, allocations: 0.8029 MB / 0.6409 GB, free: 4.242 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001965/0.3754, allocations: 0.9421 MB / 0.6418 GB, free: 3.246 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004703/0.3759, allocations: 331.6 kB / 0.6421 GB, free: 2.871 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001862/0.3761, allocations: 95.94 kB / 0.6422 GB, free: 2.777 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002879/0.379, allocations: 1.283 MB / 0.6435 GB, free: 1.477 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.343e-05/0.379, allocations: 4 kB / 0.6435 GB, free: 1.473 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001084/0.3791, allocations: 32 kB / 0.6435 GB, free: 1.441 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.444e-05/0.3792, allocations: 24 kB / 0.6436 GB, free: 1.418 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002937/0.3821, allocations: 1.202 MB / 0.6447 GB, free: 220 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.007613/0.3897, allocations: 4.157 MB / 0.6488 GB, free: 11.9 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003688/0.3934, allocations: 1.771 MB / 0.6505 GB, free: 10 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001914/0.3954, allocations: 0.8601 MB / 0.6514 GB, free: 9.137 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000122/0.3955, allocations: 20.98 kB / 0.6514 GB, free: 9.117 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002194/0.3977, allocations: 0.9582 MB / 0.6523 GB, free: 8.137 MB / 462.1 MB Notification: Performance of pre-optimization done (n=108): time 2.544e-06/0.3977, allocations: 0 / 0.6523 GB, free: 8.137 MB / 462.1 MB Notification: Performance of matching and sorting (n=108): time 0.0346/0.4323, allocations: 7.902 MB / 0.66 GB, free: 172 kB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.902e-05/0.4325, allocations: 115.8 kB / 0.6601 GB, free: 32 kB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001707/0.4342, allocations: 1.049 MB / 0.6612 GB, free: 14.97 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000177/0.4344, allocations: 45.7 kB / 0.6612 GB, free: 14.92 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004431/0.4348, allocations: 0.5331 MB / 0.6617 GB, free: 14.38 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004329/0.4353, allocations: 400.5 kB / 0.6621 GB, free: 13.98 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005014/0.4358, allocations: 247.5 kB / 0.6623 GB, free: 13.74 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0002402/0.436, allocations: 357.9 kB / 0.6627 GB, free: 13.38 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001875/0.4379, allocations: 0.7925 MB / 0.6635 GB, free: 12.59 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002035/0.4399, allocations: 0.9445 MB / 0.6644 GB, free: 11.61 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02339/0.4633, allocations: 5.492 MB / 0.6697 GB, free: 6.027 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.113e-06/0.4634, allocations: 0 / 0.6697 GB, free: 6.027 MB / 478.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.01573/0.4791, allocations: 4.464 MB / 0.6741 GB, free: 1.535 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.357e-05/0.4792, allocations: 59.41 kB / 0.6742 GB, free: 1.465 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.459e-05/0.4793, allocations: 0 / 0.6742 GB, free: 1.465 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006668/0.4859, allocations: 1.741 MB / 0.6759 GB, free: 15.72 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001609/0.4876, allocations: 283.6 kB / 0.6761 GB, free: 15.44 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02379/0.5114, allocations: 9.051 MB / 0.685 GB, free: 6.242 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001932/0.5133, allocations: 203.1 kB / 0.6852 GB, free: 6.043 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000266/0.5136, allocations: 51.98 kB / 0.6852 GB, free: 5.992 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.0008483/0.5145, allocations: 309 kB / 0.6855 GB, free: 5.676 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003851/0.5149, allocations: 143 kB / 0.6856 GB, free: 5.535 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01644/0.5313, allocations: 4.389 MB / 0.6899 GB, free: 1.113 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.494e-05/0.5314, allocations: 16 kB / 0.6899 GB, free: 1.098 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.558e-06/0.5314, allocations: 0 / 0.6899 GB, free: 1.098 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.988e-05/0.5314, allocations: 15.91 kB / 0.69 GB, free: 1.082 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01897/0.5504, allocations: 6.264 MB / 0.6961 GB, free: 10.68 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.037e-06/0.5504, allocations: 0 / 0.6961 GB, free: 10.68 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007442/0.5512, allocations: 123.9 kB / 0.6962 GB, free: 10.56 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007109/0.5583, allocations: 1.895 MB / 0.698 GB, free: 8.66 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001506/0.5585, allocations: 31.92 kB / 0.6981 GB, free: 8.629 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02695/0.5854, allocations: 10.73 MB / 0.7086 GB, free: 13.61 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.491e-06/0.5855, allocations: 4 kB / 0.7086 GB, free: 13.61 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01875/0.6043, allocations: 5.437 MB / 0.7139 GB, free: 8.137 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005962/0.6049, allocations: 223.9 kB / 0.7141 GB, free: 7.898 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003648/0.6053, allocations: 23.98 kB / 0.7141 GB, free: 7.875 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001513/0.6068, allocations: 135.8 kB / 0.7142 GB, free: 7.742 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008534/0.6077, allocations: 240.6 kB / 0.7145 GB, free: 7.508 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001284/0.6078, allocations: 28 kB / 0.7145 GB, free: 7.48 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001366/0.6092, allocations: 0.7045 MB / 0.7152 GB, free: 6.77 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.7e-07/0.6092, allocations: 4 kB / 0.7152 GB, free: 6.766 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.001779/0.611, allocations: 483.6 kB / 0.7156 GB, free: 6.293 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.01882/0.6298, allocations: 6.011 MB / 0.7215 GB, free: 240 kB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.008107/0.638, allocations: 2.745 MB / 0.7242 GB, free: 13.45 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 7.725e-06/0.638, allocations: 0 / 0.7242 GB, free: 13.45 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.00581/0.6438, allocations: 1.891 MB / 0.726 GB, free: 11.51 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001278/0.6451, allocations: 125.7 kB / 0.7262 GB, free: 11.39 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04622/0.6914, allocations: 16.93 MB / 0.7427 GB, free: 10.25 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001017/0.6924, allocations: 1.159 MB / 0.7438 GB, free: 9.062 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0005229/0.6929, allocations: 112.3 kB / 0.7439 GB, free: 8.949 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008206/0.6938, allocations: 0.4915 MB / 0.7444 GB, free: 8.457 MB / 0.545 GB Notification: Performance of SimCode: time 5.82e-07/0.6938, allocations: 0 / 0.7444 GB, free: 8.457 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3469/1.041, allocations: 38.77 MB / 0.7823 GB, free: 138.4 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.92/15.97, allocations: 11.12 kB / 0.7823 GB, free: 138.4 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)