Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_2.0.0_OpenIPSL.Tests.Controls.PSAT.AVR.AVRTypeII_Test.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) 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 3.2.3+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 2.0.0/package.mo", uses=false) Using package OpenIPSL with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Running command: "" <> buildModelFMU(OpenIPSL.Tests.Controls.PSAT.AVR.AVRTypeII_Test,fileNamePrefix="OpenIPSL_2_0_0_OpenIPSL_Tests_Controls_PSAT_AVR_AVRTypeII_Test",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Tests.Controls.PSAT.AVR.AVRTypeII_Test,fileNamePrefix="OpenIPSL_2_0_0_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/Modelica_Synchronous 0.93.0-master/package.mo): time 0.08595/0.08595, allocations: 12.6 MB / 28.1 MB, free: 184 kB / 19.63 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001084/0.001084, allocations: 107.5 kB / 31.7 MB, free: 3.492 MB / 26.18 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.322/1.322, allocations: 205.1 MB / 240.3 MB, free: 12.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001213/0.001212, allocations: 188.5 kB / 290.5 MB, free: 13.47 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo): time 0.4074/0.4074, allocations: 78.51 MB / 419.2 MB, free: 11.34 MB / 302.1 MB Notification: Modelica_Synchronous requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: OpenIPSL requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00299/0.00299, allocations: 135.8 kB / 499.9 MB, free: 10.71 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2864/0.2894, allocations: 68.11 MB / 0.5547 GB, free: 32.65 MB / 398.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Controls.PSAT.AVR.AVRTypeII_Test): time 0.006256/0.2957, allocations: 6.659 MB / 0.5612 GB, free: 27.8 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004252/0.3, allocations: 1.999 MB / 0.5631 GB, free: 26.18 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00081/0.3008, allocations: 20.22 kB / 0.5632 GB, free: 26.18 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006767/0.3016, allocations: 239.5 kB / 0.5634 GB, free: 25.98 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001787/0.3034, allocations: 0.7673 MB / 0.5641 GB, free: 25.35 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00124/0.3046, allocations: 0.6743 MB / 0.5648 GB, free: 24.85 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001456/0.3061, allocations: 1.624 MB / 0.5664 GB, free: 23.87 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004473/0.3065, allocations: 354 kB / 0.5667 GB, free: 23.68 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007717/0.3073, allocations: 0.6624 MB / 0.5674 GB, free: 23.27 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007178/0.308, allocations: 0.8124 MB / 0.5682 GB, free: 22.7 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002005/0.3083, allocations: 124.6 kB / 0.5683 GB, free: 22.7 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005286/0.3088, allocations: 256.5 kB / 0.5685 GB, free: 22.64 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002218/0.309, allocations: 338.6 kB / 0.5688 GB, free: 22.35 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005066/0.3095, allocations: 0.6712 MB / 0.5695 GB, free: 21.84 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001433/0.311, allocations: 1.682 MB / 0.5711 GB, free: 20.56 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.311, allocations: 0 / 0.5711 GB, free: 20.56 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.311, allocations: 0 / 0.5711 GB, free: 20.56 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.976e-05/0.311, allocations: 0 / 0.5711 GB, free: 20.56 MB / 398.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.008808/0.3198, allocations: 2.763 MB / 0.5738 GB, free: 18.83 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.88e-05/0.3199, allocations: 17.53 kB / 0.5739 GB, free: 18.82 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001461/0.3201, allocations: 138.2 kB / 0.574 GB, free: 18.71 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004887/0.3249, allocations: 0.7803 MB / 0.5748 GB, free: 18.39 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001517/0.3265, allocations: 0.8965 MB / 0.5756 GB, free: 17.64 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002168/0.3267, allocations: 252.6 kB / 0.5759 GB, free: 17.41 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001582/0.3269, allocations: 90.86 kB / 0.576 GB, free: 17.38 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00199/0.3289, allocations: 1.172 MB / 0.5771 GB, free: 16.35 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.861e-05/0.3289, allocations: 0 / 0.5771 GB, free: 16.35 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.567e-05/0.329, allocations: 32 kB / 0.5771 GB, free: 16.32 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.199e-05/0.329, allocations: 20 kB / 0.5771 GB, free: 16.3 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001958/0.331, allocations: 1.077 MB / 0.5782 GB, free: 15.22 MB / 398.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.005281/0.3363, allocations: 3.676 MB / 0.5818 GB, free: 11.41 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002014/0.3383, allocations: 1.551 MB / 0.5833 GB, free: 9.734 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001285/0.3396, allocations: 0.7814 MB / 0.5841 GB, free: 8.949 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.208e-05/0.3397, allocations: 24.86 kB / 0.5841 GB, free: 8.926 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001441/0.3412, allocations: 0.892 MB / 0.585 GB, free: 8.016 MB / 398.1 MB Notification: Performance of pre-optimization done (n=102): time 2.364e-06/0.3412, allocations: 0 / 0.585 GB, free: 8.016 MB / 398.1 MB Notification: Performance of matching and sorting (n=102): time 0.02475/0.3659, allocations: 6.956 MB / 0.5918 GB, free: 0.9961 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.46e-05/0.366, allocations: 123.7 kB / 0.5919 GB, free: 0.8516 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001393/0.3674, allocations: 1.023 MB / 0.5929 GB, free: 15.81 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001605/0.3676, allocations: 49.72 kB / 0.5929 GB, free: 15.76 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003878/0.368, allocations: 0.5007 MB / 0.5934 GB, free: 15.25 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000384/0.3684, allocations: 378.7 kB / 0.5938 GB, free: 14.88 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000468/0.3689, allocations: 243.4 kB / 0.594 GB, free: 14.63 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001494/0.369, allocations: 361.9 kB / 0.5943 GB, free: 14.27 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001657/0.3707, allocations: 0.7613 MB / 0.5951 GB, free: 13.51 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001756/0.3724, allocations: 0.9077 MB / 0.596 GB, free: 12.57 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02163/0.3941, allocations: 5.44 MB / 0.6013 GB, free: 7.051 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.114e-05/0.3941, allocations: 4 kB / 0.6013 GB, free: 7.047 MB / 414.1 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.01488/0.409, allocations: 4.503 MB / 0.6057 GB, free: 2.516 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.906e-05/0.4091, allocations: 63.39 kB / 0.6058 GB, free: 2.441 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.693e-05/0.4091, allocations: 7.938 kB / 0.6058 GB, free: 2.434 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006976/0.4161, allocations: 1.854 MB / 0.6076 GB, free: 0.5742 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001275/0.4174, allocations: 247.7 kB / 0.6078 GB, free: 340 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02341/0.4408, allocations: 9.472 MB / 0.6171 GB, free: 6.719 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002058/0.4429, allocations: 202.8 kB / 0.6173 GB, free: 6.52 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002332/0.4432, allocations: 43.98 kB / 0.6173 GB, free: 6.477 MB / 430.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.0007366/0.4439, allocations: 302.9 kB / 0.6176 GB, free: 6.168 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004071/0.4443, allocations: 122.5 kB / 0.6177 GB, free: 6.047 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01414/0.4585, allocations: 4.193 MB / 0.6218 GB, free: 1.828 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.591e-05/0.4585, allocations: 12 kB / 0.6218 GB, free: 1.816 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.4585, allocations: 0 / 0.6218 GB, free: 1.816 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.154e-05/0.4586, allocations: 7.922 kB / 0.6218 GB, free: 1.809 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01676/0.4753, allocations: 5.965 MB / 0.6276 GB, free: 11.71 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.169e-05/0.4754, allocations: 0 / 0.6276 GB, free: 11.71 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007667/0.4762, allocations: 107.8 kB / 0.6277 GB, free: 11.6 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006585/0.4828, allocations: 1.836 MB / 0.6295 GB, free: 9.758 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002182/0.483, allocations: 23.98 kB / 0.6296 GB, free: 9.734 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02293/0.506, allocations: 10.32 MB / 0.6396 GB, free: 15.11 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.293e-06/0.506, allocations: 7.938 kB / 0.6396 GB, free: 15.11 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01669/0.5227, allocations: 5.134 MB / 0.6447 GB, free: 9.938 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005011/0.5233, allocations: 219.3 kB / 0.6449 GB, free: 9.703 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003794/0.5237, allocations: 27.92 kB / 0.6449 GB, free: 9.676 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001492/0.5252, allocations: 111.9 kB / 0.645 GB, free: 9.566 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007276/0.5259, allocations: 216.7 kB / 0.6452 GB, free: 9.355 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001215/0.526, allocations: 28 kB / 0.6452 GB, free: 9.328 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001266/0.5273, allocations: 0.7032 MB / 0.6459 GB, free: 8.617 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.5273, allocations: 0 / 0.6459 GB, free: 8.617 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001671/0.529, allocations: 487.4 kB / 0.6464 GB, free: 8.141 MB / 462.1 MB 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.01656/0.5456, allocations: 5.706 MB / 0.652 GB, free: 2.387 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.008077/0.5537, allocations: 2.721 MB / 0.6546 GB, free: 15.63 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.68e-06/0.5537, allocations: 0 / 0.6546 GB, free: 15.63 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00525/0.559, allocations: 1.804 MB / 0.6564 GB, free: 13.79 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001365/0.5604, allocations: 117.9 kB / 0.6565 GB, free: 13.67 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04401/0.6044, allocations: 17.34 MB / 0.6734 GB, free: 11.89 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009777/0.6054, allocations: 1.124 MB / 0.6745 GB, free: 10.73 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.00065/0.6061, allocations: 107.9 kB / 0.6746 GB, free: 10.62 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007771/0.6069, allocations: 479.3 kB / 0.6751 GB, free: 10.16 MB / 494.1 MB Notification: Performance of SimCode: time 1.142e-06/0.6069, allocations: 0 / 0.6751 GB, free: 10.16 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07592/0.6828, allocations: 36.8 MB / 0.711 GB, free: 5.434 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.45/12.13, allocations: 7.031 kB / 0.711 GB, free: 5.43 MB / 0.5137 GB (rm -f OpenIPSL_2.0.0_OpenIPSL.Tests.Controls.PSAT.AVR.AVRTypeII_Test.pipe ; mkfifo OpenIPSL_2.0.0_OpenIPSL.Tests.Controls.PSAT.AVR.AVRTypeII_Test.pipe ; head -c 1048576 < OpenIPSL_2.0.0_OpenIPSL.Tests.Controls.PSAT.AVR.AVRTypeII_Test.pipe >> ../files/OpenIPSL_2.0.0_OpenIPSL.Tests.Controls.PSAT.AVR.AVRTypeII_Test.sim & python3 -m fmpy simulate --output-file OpenIPSL_2.0.0_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_2_0_0_OpenIPSL_Tests_Controls_PSAT_AVR_AVRTypeII_Test.fmu > OpenIPSL_2.0.0_OpenIPSL.Tests.Controls.PSAT.AVR.AVRTypeII_Test.pipe 2>&1)