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.001168/0.001168, 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.341/1.341, allocations: 222.9 MB / 239.3 MB, free: 4.598 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.00133/0.00133, allocations: 187.8 kB / 289.6 MB, free: 2.32 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4467/0.4467, allocations: 78.53 MB / 418.3 MB, free: 3.281 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001538/0.001538, allocations: 75.89 kB / 497.6 MB, free: 6.359 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1394/0.141, allocations: 68.18 MB / 0.5525 GB, free: 2.137 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Controls.PSAT.OEL.AVRTypeII_OEL_Test): time 0.2291/0.3702, allocations: 6.984 MB / 0.5593 GB, free: 35.73 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.004166/0.3744, allocations: 2.114 MB / 0.5614 GB, free: 35.16 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009855/0.3754, allocations: 10.81 kB / 0.5614 GB, free: 35.16 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008484/0.3763, allocations: 258.2 kB / 0.5616 GB, free: 35.15 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002067/0.3784, allocations: 0.7756 MB / 0.5624 GB, free: 35 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 generator.xq <> generator.x1q, <> on Real numbers is only allowed inside functions. Notification: Performance of NFTyping.typeClassSections: time 0.00165/0.38, allocations: 0.7519 MB / 0.5631 GB, free: 34.91 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001778/0.3818, allocations: 1.718 MB / 0.5648 GB, free: 34.62 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005489/0.3824, allocations: 398.7 kB / 0.5652 GB, free: 34.54 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009416/0.3833, allocations: 0.7052 MB / 0.5659 GB, free: 34.36 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008648/0.3842, allocations: 0.8328 MB / 0.5667 GB, free: 34.14 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002124/0.3844, allocations: 132.9 kB / 0.5668 GB, free: 34.14 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005416/0.385, allocations: 273.9 kB / 0.5671 GB, free: 34.13 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002388/0.3852, allocations: 348.5 kB / 0.5674 GB, free: 34.04 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005583/0.3858, allocations: 0.7223 MB / 0.5681 GB, free: 33.78 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001547/0.3874, allocations: 1.786 MB / 0.5698 GB, free: 33.38 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.3874, allocations: 3.281 kB / 0.5698 GB, free: 33.38 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.3874, allocations: 2.844 kB / 0.5699 GB, free: 33.38 MB / 430.1 MB Notification: Performance of Transformations before backend: time 2.496e-05/0.3874, allocations: 1.125 kB / 0.5699 GB, free: 33.38 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: 219 * Number of variables: 219 Notification: Performance of Generate backend data structure: time 0.008212/0.3956, allocations: 2.847 MB / 0.5726 GB, free: 32.36 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.36e-05/0.3957, allocations: 10.53 kB / 0.5726 GB, free: 32.36 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001496/0.3958, allocations: 139.4 kB / 0.5728 GB, free: 32.32 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004662/0.4005, allocations: 0.8035 MB / 0.5736 GB, free: 32.22 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001336/0.4019, allocations: 0.9241 MB / 0.5745 GB, free: 31.79 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002971/0.4022, allocations: 326.3 kB / 0.5748 GB, free: 31.54 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001623/0.4023, allocations: 94.28 kB / 0.5749 GB, free: 31.54 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002293/0.4046, allocations: 1.296 MB / 0.5761 GB, free: 31.43 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.983e-05/0.4047, allocations: 0 / 0.5761 GB, free: 31.43 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001038/0.4048, allocations: 37.69 kB / 0.5762 GB, free: 31.43 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.581e-05/0.4048, allocations: 20.34 kB / 0.5762 GB, free: 31.43 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002422/0.4072, allocations: 1.199 MB / 0.5774 GB, free: 31.36 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.00602/0.4133, allocations: 4.185 MB / 0.5814 GB, free: 28.96 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003054/0.4163, allocations: 1.765 MB / 0.5832 GB, free: 27.92 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001665/0.418, allocations: 0.8598 MB / 0.584 GB, free: 27.58 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.596e-05/0.4181, allocations: 19.78 kB / 0.584 GB, free: 27.58 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001823/0.42, allocations: 0.9615 MB / 0.585 GB, free: 27.21 MB / 430.1 MB Notification: Performance of pre-optimization done (n=108): time 2.815e-06/0.42, allocations: 5 kB / 0.585 GB, free: 27.21 MB / 430.1 MB Notification: Performance of matching and sorting (n=108): time 0.03309/0.4531, allocations: 7.89 MB / 0.5927 GB, free: 25.66 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.056e-05/0.4532, allocations: 119.5 kB / 0.5928 GB, free: 25.53 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002188/0.4554, allocations: 1.037 MB / 0.5938 GB, free: 25.12 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002235/0.4556, allocations: 44.86 kB / 0.5938 GB, free: 25.07 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003558/0.456, allocations: 0.5244 MB / 0.5944 GB, free: 24.65 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000368/0.4564, allocations: 396.2 kB / 0.5947 GB, free: 24.34 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004685/0.4569, allocations: 240.7 kB / 0.595 GB, free: 24.23 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000101/0.457, allocations: 360.4 kB / 0.5953 GB, free: 23.9 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001772/0.4588, allocations: 0.7855 MB / 0.5961 GB, free: 23.62 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001868/0.4606, allocations: 0.9432 MB / 0.597 GB, free: 23.2 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0217/0.4823, allocations: 5.51 MB / 0.6024 GB, free: 21.48 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.324e-06/0.4824, allocations: 1.156 kB / 0.6024 GB, free: 21.48 MB / 430.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.01422/0.4966, allocations: 4.457 MB / 0.6067 GB, free: 20.3 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.931e-05/0.4967, allocations: 59.19 kB / 0.6068 GB, free: 20.23 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.421e-05/0.4967, allocations: 4.094 kB / 0.6068 GB, free: 20.23 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00594/0.5027, allocations: 1.746 MB / 0.6085 GB, free: 19.48 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001464/0.5041, allocations: 277.7 kB / 0.6088 GB, free: 19.42 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01972/0.5239, allocations: 9.055 MB / 0.6176 GB, free: 11.97 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001947/0.5259, allocations: 210.8 kB / 0.6178 GB, free: 11.76 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002637/0.5261, allocations: 51.98 kB / 0.6179 GB, free: 11.71 MB / 430.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.0007454/0.5269, allocations: 294 kB / 0.6181 GB, free: 11.41 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003966/0.5273, allocations: 134.3 kB / 0.6183 GB, free: 11.28 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01398/0.5413, allocations: 4.405 MB / 0.6226 GB, free: 6.848 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.714e-05/0.5414, allocations: 8 kB / 0.6226 GB, free: 6.84 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.474e-06/0.5414, allocations: 4 kB / 0.6226 GB, free: 6.836 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.165e-05/0.5414, allocations: 7.922 kB / 0.6226 GB, free: 6.828 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0165/0.5579, allocations: 6.275 MB / 0.6287 GB, free: 428 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.654e-06/0.5579, allocations: 0 / 0.6287 GB, free: 428 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006825/0.5586, allocations: 123.9 kB / 0.6288 GB, free: 304 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006704/0.5654, allocations: 1.912 MB / 0.6307 GB, free: 14.38 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001533/0.5655, allocations: 23.98 kB / 0.6307 GB, free: 14.36 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02492/0.5905, allocations: 10.73 MB / 0.6412 GB, free: 3.336 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.5905, allocations: 0 / 0.6412 GB, free: 3.336 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01743/0.6079, allocations: 5.423 MB / 0.6465 GB, free: 13.88 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004867/0.6084, allocations: 223.2 kB / 0.6467 GB, free: 13.64 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003526/0.6088, allocations: 20 kB / 0.6467 GB, free: 13.62 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001507/0.6103, allocations: 139.8 kB / 0.6469 GB, free: 13.48 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007746/0.6111, allocations: 243.6 kB / 0.6471 GB, free: 13.25 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001297/0.6113, allocations: 34.52 kB / 0.6471 GB, free: 13.22 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001316/0.6126, allocations: 0.7045 MB / 0.6478 GB, free: 12.51 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.6126, allocations: 0 / 0.6478 GB, free: 12.51 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001737/0.6144, allocations: 479.4 kB / 0.6483 GB, free: 12.04 MB / 462.1 MB 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.0175/0.6319, allocations: 5.998 MB / 0.6541 GB, free: 5.992 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007885/0.6398, allocations: 2.772 MB / 0.6568 GB, free: 3.188 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.421e-06/0.6398, allocations: 0 / 0.6568 GB, free: 3.188 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005304/0.6451, allocations: 1.882 MB / 0.6587 GB, free: 1.266 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001441/0.6466, allocations: 129 kB / 0.6588 GB, free: 1.145 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04357/0.6902, allocations: 17.73 MB / 0.6761 GB, free: 15 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001019/0.6912, allocations: 1.155 MB / 0.6772 GB, free: 13.82 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.000617/0.6919, allocations: 118.5 kB / 0.6773 GB, free: 13.7 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008023/0.6927, allocations: 0.4915 MB / 0.6778 GB, free: 13.21 MB / 494.1 MB Notification: Performance of SimCode: time 1.483e-06/0.6927, allocations: 0 / 0.6778 GB, free: 13.21 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0754/0.7681, allocations: 38.31 MB / 0.7152 GB, free: 7.211 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.07/12.84, allocations: 4.188 kB / 0.7152 GB, free: 7.211 MB / 0.5137 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)