Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerGrids_PowerGrids.Controls.Test.TestLeadLag.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/Complex 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/PowerGrids 1.0.3/package.mo", uses=false) Using package PowerGrids with version 1.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 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(PowerGrids.Controls.Test.TestLeadLag,fileNamePrefix="PowerGrids_PowerGrids_Controls_Test_TestLeadLag",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Controls.Test.TestLeadLag,fileNamePrefix="PowerGrids_PowerGrids_Controls_Test_TestLeadLag",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.00727/0.007277, allocations: 99.67 kB / 15.73 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001627/0.001627, allocations: 193.4 kB / 16.67 MB, free: 5.93 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.456/1.456, allocations: 205.1 MB / 222.6 MB, free: 4.48 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06533/0.06533, allocations: 14.16 MB / 284.1 MB, free: 6.973 MB / 238.1 MB 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: Performance of FrontEnd - loaded program: time 0.001678/0.001678, allocations: 71.89 kB / 398.1 MB, free: 14.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2929/0.2946, allocations: 50.13 MB / 448.2 MB, free: 2.59 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLeadLag): time 0.002833/0.2975, allocations: 1.79 MB / 450 MB, free: 1.188 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.000347/0.2979, allocations: 159.4 kB / 450.2 MB, free: 1.055 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001064/0.298, allocations: 3 kB / 450.2 MB, free: 1.055 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001382/0.2981, allocations: 29.48 kB / 450.2 MB, free: 1.027 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001555/0.2983, allocations: 26.64 kB / 450.2 MB, free: 1.004 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001868/0.2985, allocations: 37.05 kB / 450.3 MB, free: 0.9727 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001997/0.2987, allocations: 135.7 kB / 450.4 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001509/0.2989, allocations: 59.05 kB / 450.5 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.417e-05/0.299, allocations: 53.72 kB / 450.5 MB, free: 0.8164 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.997e-05/0.2991, allocations: 50.7 kB / 450.6 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.57e-05/0.2991, allocations: 9.625 kB / 450.6 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.019e-05/0.2991, allocations: 9.625 kB / 450.6 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.707e-05/0.2992, allocations: 22.67 kB / 450.6 MB, free: 0.7578 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.067e-05/0.2992, allocations: 58.59 kB / 450.7 MB, free: 0.7109 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001562/0.2994, allocations: 108.4 kB / 450.8 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.2994, allocations: 0 / 450.8 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.2994, allocations: 0 / 450.8 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.05e-05/0.2994, allocations: 0 / 450.8 MB, free: 0.6367 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0005167/0.2999, allocations: 433.7 kB / 451.2 MB, free: 212 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.687e-05/0.3, allocations: 9.625 kB / 451.2 MB, free: 212 kB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.777e-05/0.3, allocations: 41.5 kB / 451.2 MB, free: 164 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.974e-05/0.3001, allocations: 15.72 kB / 451.3 MB, free: 156 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002458/0.3003, allocations: 210.6 kB / 451.5 MB, free: 15.93 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.481e-05/0.3003, allocations: 8.5 kB / 451.5 MB, free: 15.92 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.092e-05/0.3004, allocations: 11.25 kB / 451.5 MB, free: 15.92 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002269/0.3006, allocations: 129.5 kB / 451.6 MB, free: 15.81 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.115e-06/0.3006, allocations: 0 / 451.6 MB, free: 15.81 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.25e-05/0.3007, allocations: 5.375 kB / 451.6 MB, free: 15.81 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.1e-06/0.3007, allocations: 1.375 kB / 451.6 MB, free: 15.81 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002422/0.3009, allocations: 66.27 kB / 451.7 MB, free: 15.78 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007025/0.3016, allocations: 452.5 kB / 452.1 MB, free: 15.34 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003845/0.302, allocations: 122.2 kB / 452.2 MB, free: 15.23 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001069/0.3022, allocations: 44.44 kB / 452.3 MB, free: 15.2 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.885e-05/0.3022, allocations: 0 / 452.3 MB, free: 15.2 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.972e-05/0.3022, allocations: 41.25 kB / 452.3 MB, free: 15.15 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 9.82e-07/0.3022, allocations: 0 / 452.3 MB, free: 15.15 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003992/0.3026, allocations: 127.7 kB / 452.4 MB, free: 15.07 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.693e-05/0.3027, allocations: 104.5 kB / 452.5 MB, free: 14.94 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000144/0.3028, allocations: 145.8 kB / 452.7 MB, free: 14.82 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.723e-05/0.3029, allocations: 26.67 kB / 452.7 MB, free: 14.79 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.469e-05/0.303, allocations: 122.3 kB / 452.8 MB, free: 14.67 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.38e-05/0.303, allocations: 23.22 kB / 452.9 MB, free: 14.65 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.291e-05/0.303, allocations: 32.27 kB / 452.9 MB, free: 14.62 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001088/0.3032, allocations: 318.2 kB / 453.2 MB, free: 14.3 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.316e-05/0.3033, allocations: 24.47 kB / 453.2 MB, free: 14.29 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001723/0.3035, allocations: 65.02 kB / 453.3 MB, free: 14.22 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001791/0.3036, allocations: 85.56 kB / 453.4 MB, free: 14.16 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.09e-06/0.3037, allocations: 1.75 kB / 453.4 MB, free: 14.16 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003641/0.304, allocations: 139.1 kB / 453.5 MB, free: 14.06 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.531e-05/0.304, allocations: 5.469 kB / 453.5 MB, free: 14.06 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.3041, allocations: 1.344 kB / 453.5 MB, free: 14.06 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002088/0.3043, allocations: 37.02 kB / 453.5 MB, free: 14.04 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001023/0.3044, allocations: 24.27 kB / 453.6 MB, free: 14.03 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001229/0.3056, allocations: 1.456 MB / 455 MB, free: 12.54 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001502/0.3058, allocations: 8.234 kB / 455 MB, free: 12.54 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.382e-05/0.3058, allocations: 11.48 kB / 455 MB, free: 12.53 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * 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): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001119/0.306, allocations: 123.2 kB / 455.2 MB, free: 12.4 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.944e-05/0.306, allocations: 13.34 kB / 455.2 MB, free: 12.39 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.767e-05/0.306, allocations: 15.78 kB / 455.2 MB, free: 12.38 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.405e-06/0.306, allocations: 1.156 kB / 455.2 MB, free: 12.38 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.843e-06/0.306, allocations: 1.188 kB / 455.2 MB, free: 12.38 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.3061, allocations: 1.062 kB / 455.2 MB, free: 12.38 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002325/0.3063, allocations: 208.6 kB / 455.4 MB, free: 12.15 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.404e-06/0.3063, allocations: 1.031 kB / 455.4 MB, free: 12.15 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001213/0.3064, allocations: 23.98 kB / 455.4 MB, free: 12.14 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.3064, allocations: 1.312 kB / 455.4 MB, free: 12.14 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.507e-05/0.3065, allocations: 6.062 kB / 455.4 MB, free: 12.14 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.853e-06/0.3065, allocations: 5 kB / 455.4 MB, free: 12.13 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.415e-06/0.3065, allocations: 0.9688 kB / 455.4 MB, free: 12.13 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000367/0.3068, allocations: 229.5 kB / 455.7 MB, free: 11.94 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.018e-05/0.3069, allocations: 92.58 kB / 455.8 MB, free: 11.83 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.896e-05/0.3069, allocations: 6.25 kB / 455.8 MB, free: 11.83 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001039/0.307, allocations: 3.406 kB / 455.8 MB, free: 11.83 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.002e-05/0.3071, allocations: 6.078 kB / 455.8 MB, free: 11.82 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.197e-06/0.3071, allocations: 2.281 kB / 455.8 MB, free: 11.82 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.491e-05/0.3072, allocations: 132.8 kB / 455.9 MB, free: 11.71 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3072, allocations: 4 kB / 455.9 MB, free: 11.71 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002613/0.3075, allocations: 24.61 kB / 455.9 MB, free: 11.7 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (leadLag.firstOrder.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007369/0.3082, allocations: 0.7631 MB / 456.7 MB, free: 10.97 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000476/0.3087, allocations: 197.1 kB / 456.9 MB, free: 10.82 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.3087, allocations: 1.719 kB / 456.9 MB, free: 10.82 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001139/0.3088, allocations: 30.11 kB / 456.9 MB, free: 10.81 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003485/0.3092, allocations: 31.2 kB / 456.9 MB, free: 10.79 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002271/0.3115, allocations: 1.725 MB / 458.7 MB, free: 9.246 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003397/0.3118, allocations: 0.7148 MB / 459.4 MB, free: 8.527 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.024e-05/0.3119, allocations: 8.969 kB / 459.4 MB, free: 8.523 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.455e-05/0.312, allocations: 32.58 kB / 459.4 MB, free: 8.496 MB / 334.1 MB Notification: Performance of SimCode: time 8.01e-07/0.312, allocations: 0 / 459.4 MB, free: 8.496 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02452/0.3365, allocations: 2.797 MB / 462.2 MB, free: 6.934 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.745/10.08, allocations: 17.06 kB / 462.2 MB, free: 6.922 MB / 334.1 MB (rm -f PowerGrids_PowerGrids.Controls.Test.TestLeadLag.pipe ; mkfifo PowerGrids_PowerGrids.Controls.Test.TestLeadLag.pipe ; head -c 1048576 < PowerGrids_PowerGrids.Controls.Test.TestLeadLag.pipe >> ../files/PowerGrids_PowerGrids.Controls.Test.TestLeadLag.sim & python3 -m fmpy simulate --output-file PowerGrids_PowerGrids.Controls.Test.TestLeadLag_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.02 PowerGrids_PowerGrids_Controls_Test_TestLeadLag.fmu > PowerGrids_PowerGrids.Controls.Test.TestLeadLag.pipe 2>&1) diffSimulationResults("PowerGrids_PowerGrids.Controls.Test.TestLeadLag_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Controls.Test.TestLeadLag_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerGrids_PowerGrids.Controls.Test.TestLeadLag.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches