Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_dev_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.1.0-master/package.mo", uses=false) Using package OpenIPSL with version 3.1.0-dev (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/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_dev_OpenIPSL_Tests_Controls_PSAT_AVR_AVRTypeII_Test",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Tests.Controls.PSAT.AVR.AVRTypeII_Test,fileNamePrefix="OpenIPSL_dev_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.001324/0.001324, 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.288/1.288, allocations: 222.9 MB / 239.3 MB, free: 4.641 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.001294/0.001294, allocations: 188.5 kB / 289.6 MB, free: 2.359 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.4835/0.4835, allocations: 91.89 MB / 431.6 MB, free: 9.305 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001492/0.001492, allocations: 87.86 kB / 0.502 GB, free: 7.66 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2934/0.2949, allocations: 71.26 MB / 0.5716 GB, free: 36.71 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Controls.PSAT.AVR.AVRTypeII_Test): time 0.005539/0.3005, allocations: 6.636 MB / 0.5781 GB, free: 32.88 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003012/0.3035, allocations: 2.033 MB / 0.58 GB, free: 31.46 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004305/0.3039, allocations: 15.22 kB / 0.5801 GB, free: 31.46 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005623/0.3045, allocations: 242.3 kB / 0.5803 GB, free: 31.33 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001388/0.3059, allocations: 0.77 MB / 0.581 GB, free: 30.82 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001061/0.307, allocations: 0.6694 MB / 0.5817 GB, free: 30.47 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009778/0.308, allocations: 1.62 MB / 0.5833 GB, free: 29.67 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003698/0.3084, allocations: 348.8 kB / 0.5836 GB, free: 29.52 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005556/0.3089, allocations: 0.6729 MB / 0.5843 GB, free: 29.18 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006224/0.3096, allocations: 0.8177 MB / 0.5851 GB, free: 28.78 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001606/0.3097, allocations: 124.2 kB / 0.5852 GB, free: 28.78 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003964/0.3101, allocations: 260.6 kB / 0.5854 GB, free: 28.74 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002008/0.3104, allocations: 327.6 kB / 0.5857 GB, free: 28.52 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003814/0.3107, allocations: 0.6794 MB / 0.5864 GB, free: 28.06 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001065/0.3118, allocations: 1.674 MB / 0.588 GB, free: 27.3 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.3118, allocations: 0 / 0.588 GB, free: 27.3 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.3118, allocations: 5.344 kB / 0.5881 GB, free: 27.3 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.585e-05/0.3119, allocations: 0 / 0.5881 GB, free: 27.3 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: 201 * Number of variables: 201 Notification: Performance of Generate backend data structure: time 0.00809/0.32, allocations: 2.762 MB / 0.5908 GB, free: 26.03 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.792e-05/0.32, allocations: 10.56 kB / 0.5908 GB, free: 26.03 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001443/0.3202, allocations: 133.6 kB / 0.5909 GB, free: 25.93 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004679/0.3248, allocations: 0.788 MB / 0.5917 GB, free: 25.77 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001211/0.3261, allocations: 0.8884 MB / 0.5925 GB, free: 25.17 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001973/0.3263, allocations: 250.6 kB / 0.5928 GB, free: 24.95 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000142/0.3264, allocations: 94.91 kB / 0.5929 GB, free: 24.91 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002002/0.3284, allocations: 1.171 MB / 0.594 GB, free: 24.46 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.701e-05/0.3285, allocations: 0 / 0.594 GB, free: 24.46 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.365e-05/0.3286, allocations: 34.25 kB / 0.594 GB, free: 24.44 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.523e-05/0.3286, allocations: 19.88 kB / 0.594 GB, free: 24.44 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002064/0.3306, allocations: 1.072 MB / 0.5951 GB, free: 24.07 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.00551/0.3362, allocations: 3.678 MB / 0.5987 GB, free: 22.05 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002205/0.3384, allocations: 1.549 MB / 0.6002 GB, free: 21.03 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001439/0.3398, allocations: 0.778 MB / 0.601 GB, free: 20.72 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.969e-05/0.3399, allocations: 24.81 kB / 0.601 GB, free: 20.71 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001657/0.3416, allocations: 0.89 MB / 0.6019 GB, free: 20.36 MB / 430.1 MB Notification: Performance of pre-optimization done (n=102): time 2.525e-06/0.3416, allocations: 0 / 0.6019 GB, free: 20.36 MB / 430.1 MB Notification: Performance of matching and sorting (n=102): time 0.02759/0.3692, allocations: 6.964 MB / 0.6087 GB, free: 18.9 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.4e-05/0.3693, allocations: 118.5 kB / 0.6088 GB, free: 18.77 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00157/0.3709, allocations: 1.025 MB / 0.6098 GB, free: 18.36 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001693/0.3711, allocations: 42.69 kB / 0.6098 GB, free: 18.31 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003057/0.3714, allocations: 0.5043 MB / 0.6103 GB, free: 17.91 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000311/0.3717, allocations: 369.7 kB / 0.6107 GB, free: 17.62 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004388/0.3721, allocations: 252.1 kB / 0.6109 GB, free: 17.5 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 7.418e-05/0.3722, allocations: 358.7 kB / 0.6112 GB, free: 17.17 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001647/0.3739, allocations: 0.7627 MB / 0.612 GB, free: 16.88 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001746/0.3756, allocations: 0.906 MB / 0.6129 GB, free: 16.48 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02116/0.3968, allocations: 5.444 MB / 0.6182 GB, free: 13.96 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.181e-05/0.3968, allocations: 1.156 kB / 0.6182 GB, free: 13.96 MB / 430.1 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.01344/0.4103, allocations: 4.51 MB / 0.6226 GB, free: 9.809 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.591e-05/0.4104, allocations: 63.34 kB / 0.6226 GB, free: 9.734 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.124e-05/0.4104, allocations: 3.938 kB / 0.6227 GB, free: 9.73 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006296/0.4167, allocations: 1.862 MB / 0.6245 GB, free: 7.863 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001347/0.4181, allocations: 247.6 kB / 0.6247 GB, free: 7.621 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02013/0.4382, allocations: 9.482 MB / 0.634 GB, free: 14 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001918/0.4402, allocations: 198.8 kB / 0.6342 GB, free: 13.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001284/0.4403, allocations: 51.98 kB / 0.6342 GB, free: 13.75 MB / 446.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.0005536/0.4409, allocations: 297.3 kB / 0.6345 GB, free: 13.45 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002181/0.4411, allocations: 122.5 kB / 0.6346 GB, free: 13.33 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01411/0.4552, allocations: 4.196 MB / 0.6387 GB, free: 9.105 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.509e-05/0.4553, allocations: 8 kB / 0.6387 GB, free: 9.098 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.95e-06/0.4553, allocations: 4 kB / 0.6387 GB, free: 9.094 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.611e-05/0.4553, allocations: 15.91 kB / 0.6387 GB, free: 9.078 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01598/0.4713, allocations: 5.965 MB / 0.6446 GB, free: 2.977 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.688e-06/0.4713, allocations: 0 / 0.6446 GB, free: 2.977 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007348/0.4721, allocations: 107.9 kB / 0.6447 GB, free: 2.871 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006354/0.4784, allocations: 1.835 MB / 0.6464 GB, free: 1.027 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001938/0.4787, allocations: 20 kB / 0.6465 GB, free: 1.008 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02195/0.5006, allocations: 10.31 MB / 0.6565 GB, free: 6.398 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.13e-06/0.5007, allocations: 3.938 kB / 0.6565 GB, free: 6.395 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01562/0.5163, allocations: 5.142 MB / 0.6616 GB, free: 1.215 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004768/0.5168, allocations: 223.2 kB / 0.6618 GB, free: 0.9766 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002154/0.517, allocations: 27.94 kB / 0.6618 GB, free: 0.9492 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001266/0.5183, allocations: 115.9 kB / 0.6619 GB, free: 0.8359 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00068/0.519, allocations: 204.7 kB / 0.6621 GB, free: 0.6367 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.018e-05/0.5191, allocations: 31.98 kB / 0.6621 GB, free: 0.6055 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001067/0.5202, allocations: 0.7071 MB / 0.6628 GB, free: 15.89 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5202, allocations: 0 / 0.6628 GB, free: 15.89 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.001308/0.5215, allocations: 475.5 kB / 0.6633 GB, free: 15.43 MB / 478.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.01553/0.537, allocations: 5.725 MB / 0.6689 GB, free: 9.652 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.007377/0.5444, allocations: 2.718 MB / 0.6715 GB, free: 6.902 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 3.426e-06/0.5444, allocations: 0 / 0.6715 GB, free: 6.902 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004831/0.5493, allocations: 1.798 MB / 0.6733 GB, free: 5.059 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009454/0.5502, allocations: 106.6 kB / 0.6734 GB, free: 4.953 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03951/0.5898, allocations: 17.34 MB / 0.6903 GB, free: 3.18 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006372/0.5904, allocations: 1.124 MB / 0.6914 GB, free: 2.027 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0005458/0.591, allocations: 107.9 kB / 0.6915 GB, free: 1.918 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005831/0.5916, allocations: 479.3 kB / 0.692 GB, free: 1.449 MB / 494.1 MB Notification: Performance of SimCode: time 6.31e-07/0.5916, allocations: 3.938 kB / 0.692 GB, free: 1.445 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06513/0.6567, allocations: 36.8 MB / 0.7279 GB, free: 12.8 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.16/11.82, allocations: 7.062 kB / 0.7279 GB, free: 12.8 MB / 0.5294 GB (rm -f OpenIPSL_dev_OpenIPSL.Tests.Controls.PSAT.AVR.AVRTypeII_Test.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Tests.Controls.PSAT.AVR.AVRTypeII_Test.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Tests.Controls.PSAT.AVR.AVRTypeII_Test.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Tests.Controls.PSAT.AVR.AVRTypeII_Test.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_OpenIPSL_dev_OpenIPSL_Tests_Controls_PSAT_AVR_AVRTypeII_Test_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 OpenIPSL_dev_OpenIPSL_Tests_Controls_PSAT_AVR_AVRTypeII_Test.fmu > OpenIPSL_dev_OpenIPSL.Tests.Controls.PSAT.AVR.AVRTypeII_Test.pipe 2>&1)