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.005681/0.005687, allocations: 95.48 kB / 15.73 MB, free: 6.484 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.319/1.319, allocations: 222.9 MB / 239.4 MB, free: 4.547 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.001382/0.001382, allocations: 192.5 kB / 289.7 MB, free: 2.258 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4532/0.4532, allocations: 78.54 MB / 418.4 MB, free: 3.16 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001657/0.001657, allocations: 75.88 kB / 0.5531 GB, free: 1.48 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3316/0.3332, allocations: 68.16 MB / 0.6197 GB, free: 9.473 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Controls.PSAT.AVR.AVRTypeII_Test): time 0.006007/0.3393, allocations: 6.629 MB / 0.6262 GB, free: 3.539 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.004031/0.3434, allocations: 2.02 MB / 0.6281 GB, free: 1.516 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006578/0.3441, allocations: 19.94 kB / 0.6282 GB, free: 1.496 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007251/0.3448, allocations: 237.9 kB / 0.6284 GB, free: 1.262 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001685/0.3465, allocations: 0.8245 MB / 0.6292 GB, free: 448 kB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001277/0.3478, allocations: 0.6707 MB / 0.6299 GB, free: 15.77 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001602/0.3494, allocations: 1.643 MB / 0.6315 GB, free: 14.12 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005064/0.3499, allocations: 354 kB / 0.6318 GB, free: 13.77 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007686/0.3507, allocations: 0.6691 MB / 0.6324 GB, free: 13.09 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008248/0.3515, allocations: 0.8206 MB / 0.6332 GB, free: 12.27 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001569/0.3517, allocations: 124 kB / 0.6334 GB, free: 12.15 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004373/0.3522, allocations: 259.9 kB / 0.6336 GB, free: 11.89 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002661/0.3524, allocations: 322.6 kB / 0.6339 GB, free: 11.58 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005495/0.353, allocations: 0.6796 MB / 0.6346 GB, free: 10.89 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001668/0.3547, allocations: 1.699 MB / 0.6362 GB, free: 9.191 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.1e-06/0.3547, allocations: 0 / 0.6362 GB, free: 9.191 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.3547, allocations: 0 / 0.6362 GB, free: 9.191 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.47e-05/0.3547, allocations: 4 kB / 0.6362 GB, free: 9.188 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.008931/0.3636, allocations: 2.811 MB / 0.639 GB, free: 6.301 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.631e-05/0.3637, allocations: 8.031 kB / 0.639 GB, free: 6.293 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000168/0.3639, allocations: 138.9 kB / 0.6391 GB, free: 6.148 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005046/0.3689, allocations: 0.7874 MB / 0.6399 GB, free: 5.359 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001659/0.3706, allocations: 0.9025 MB / 0.6408 GB, free: 4.402 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002785/0.3709, allocations: 260.1 kB / 0.641 GB, free: 4.113 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001831/0.3711, allocations: 87.95 kB / 0.6411 GB, free: 4.027 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002359/0.3735, allocations: 1.168 MB / 0.6423 GB, free: 2.844 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.988e-05/0.3735, allocations: 0 / 0.6423 GB, free: 2.844 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001047/0.3736, allocations: 39.98 kB / 0.6423 GB, free: 2.805 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.676e-05/0.3736, allocations: 16 kB / 0.6423 GB, free: 2.789 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0023/0.3759, allocations: 1.077 MB / 0.6434 GB, free: 1.715 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.006354/0.3823, allocations: 3.661 MB / 0.6469 GB, free: 13.92 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00247/0.3848, allocations: 1.551 MB / 0.6485 GB, free: 12.24 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001552/0.3864, allocations: 0.7816 MB / 0.6492 GB, free: 11.46 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.543e-05/0.3865, allocations: 20.94 kB / 0.6492 GB, free: 11.44 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00179/0.3883, allocations: 0.888 MB / 0.6501 GB, free: 10.53 MB / 462.1 MB Notification: Performance of pre-optimization done (n=102): time 3.476e-06/0.3883, allocations: 3.938 kB / 0.6501 GB, free: 10.52 MB / 462.1 MB Notification: Performance of matching and sorting (n=102): time 0.02769/0.416, allocations: 6.957 MB / 0.6569 GB, free: 3.508 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.76e-05/0.4161, allocations: 123.8 kB / 0.657 GB, free: 3.363 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001718/0.4179, allocations: 1.031 MB / 0.658 GB, free: 2.316 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002682/0.4181, allocations: 49.7 kB / 0.6581 GB, free: 2.262 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003964/0.4186, allocations: 0.5054 MB / 0.6586 GB, free: 1.75 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004191/0.419, allocations: 384.7 kB / 0.6589 GB, free: 1.371 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004691/0.4195, allocations: 251.5 kB / 0.6592 GB, free: 1.121 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001467/0.4196, allocations: 349.9 kB / 0.6595 GB, free: 0.7734 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00172/0.4213, allocations: 0.7652 MB / 0.6603 GB, free: 8 kB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001776/0.4231, allocations: 0.9116 MB / 0.6611 GB, free: 15.06 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02195/0.4451, allocations: 5.421 MB / 0.6664 GB, free: 9.559 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.346e-05/0.4451, allocations: 4 kB / 0.6664 GB, free: 9.555 MB / 478.1 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.01532/0.4605, allocations: 4.507 MB / 0.6708 GB, free: 5.02 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.977e-05/0.4606, allocations: 59.41 kB / 0.6709 GB, free: 4.949 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.747e-05/0.4606, allocations: 7.938 kB / 0.6709 GB, free: 4.941 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007087/0.4677, allocations: 1.858 MB / 0.6727 GB, free: 3.078 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0014/0.4691, allocations: 239.7 kB / 0.673 GB, free: 2.844 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02357/0.4927, allocations: 9.496 MB / 0.6822 GB, free: 9.195 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002047/0.4948, allocations: 187.2 kB / 0.6824 GB, free: 9.012 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002867/0.4951, allocations: 51.98 kB / 0.6825 GB, free: 8.961 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.0008003/0.496, allocations: 293.1 kB / 0.6827 GB, free: 8.66 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003883/0.4964, allocations: 131.2 kB / 0.6829 GB, free: 8.531 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01424/0.5106, allocations: 4.196 MB / 0.687 GB, free: 4.301 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.98e-05/0.5107, allocations: 15.94 kB / 0.687 GB, free: 4.285 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.097e-06/0.5107, allocations: 0 / 0.687 GB, free: 4.285 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.586e-05/0.5107, allocations: 11.91 kB / 0.687 GB, free: 4.273 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01693/0.5276, allocations: 5.957 MB / 0.6928 GB, free: 14.18 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.253e-05/0.5277, allocations: 3.938 kB / 0.6928 GB, free: 14.18 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007633/0.5285, allocations: 111.8 kB / 0.6929 GB, free: 14.07 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006415/0.5349, allocations: 1.828 MB / 0.6947 GB, free: 12.23 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002098/0.5351, allocations: 16 kB / 0.6947 GB, free: 12.22 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02265/0.5578, allocations: 10.31 MB / 0.7048 GB, free: 1.621 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.981e-06/0.5579, allocations: 7.875 kB / 0.7048 GB, free: 1.613 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01652/0.5744, allocations: 5.145 MB / 0.7098 GB, free: 12.43 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005022/0.5749, allocations: 220 kB / 0.71 GB, free: 12.2 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004128/0.5754, allocations: 27.94 kB / 0.71 GB, free: 12.17 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00152/0.5769, allocations: 111.9 kB / 0.7102 GB, free: 12.06 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007549/0.5777, allocations: 212.7 kB / 0.7104 GB, free: 11.86 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001468/0.5778, allocations: 31.98 kB / 0.7104 GB, free: 11.82 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001231/0.5791, allocations: 0.7032 MB / 0.7111 GB, free: 11.11 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.61e-07/0.5791, allocations: 4 kB / 0.7111 GB, free: 11.11 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.001795/0.5809, allocations: 483.8 kB / 0.7115 GB, free: 10.64 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.01649/0.5974, allocations: 5.727 MB / 0.7171 GB, free: 4.867 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.007713/0.6051, allocations: 2.686 MB / 0.7198 GB, free: 2.141 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 5.33e-06/0.6052, allocations: 0 / 0.7198 GB, free: 2.141 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.005231/0.6104, allocations: 1.798 MB / 0.7215 GB, free: 308 kB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001329/0.6118, allocations: 118.4 kB / 0.7216 GB, free: 188 kB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04461/0.6564, allocations: 16.63 MB / 0.7379 GB, free: 15.35 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009679/0.6574, allocations: 1.132 MB / 0.739 GB, free: 14.19 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0007472/0.6582, allocations: 107.9 kB / 0.7391 GB, free: 14.08 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000927/0.6592, allocations: 475.3 kB / 0.7395 GB, free: 13.61 MB / 0.545 GB Notification: Performance of SimCode: time 1.012e-06/0.6592, allocations: 0 / 0.7395 GB, free: 13.61 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3507/1.01, allocations: 37.28 MB / 0.7759 GB, free: 138.7 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.88/17.89, allocations: 12.27 kB / 0.7759 GB, free: 138.7 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)