Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerGrids_PowerGrids.Controls.Test.TestDerivativeLag.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.TestDerivativeLag,fileNamePrefix="PowerGrids_PowerGrids_Controls_Test_TestDerivativeLag",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Controls.Test.TestDerivativeLag,fileNamePrefix="PowerGrids_PowerGrids_Controls_Test_TestDerivativeLag",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.008331/0.008331, allocations: 99.83 kB / 15.73 MB, free: 6.012 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.001835/0.001835, allocations: 193.5 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.477/1.477, allocations: 205.1 MB / 222.6 MB, free: 4.523 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06413/0.06413, allocations: 14.16 MB / 284.1 MB, free: 6.984 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.001594/0.001594, allocations: 67.89 kB / 398.1 MB, free: 14.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2878/0.2894, allocations: 50.14 MB / 448.2 MB, free: 2.469 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDerivativeLag): time 0.00318/0.2926, allocations: 1.826 MB / 450.1 MB, free: 1.035 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005392/0.2932, allocations: 166.4 kB / 450.2 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001719/0.2934, allocations: 3.469 kB / 450.2 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001717/0.2935, allocations: 25.89 kB / 450.2 MB, free: 0.875 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001979/0.2938, allocations: 26.72 kB / 450.3 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001399/0.294, allocations: 41.61 kB / 450.3 MB, free: 0.8164 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002605/0.2942, allocations: 125.8 kB / 450.4 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000192/0.2944, allocations: 59.7 kB / 450.5 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.126e-05/0.2945, allocations: 51.88 kB / 450.5 MB, free: 0.668 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001028/0.2946, allocations: 38.72 kB / 450.6 MB, free: 0.6406 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.987e-05/0.2947, allocations: 7.906 kB / 450.6 MB, free: 0.6406 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.022e-05/0.2947, allocations: 9.594 kB / 450.6 MB, free: 0.6406 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.009e-05/0.2947, allocations: 22.77 kB / 450.6 MB, free: 0.6211 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.943e-05/0.2948, allocations: 53.2 kB / 450.7 MB, free: 0.5781 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001783/0.295, allocations: 105 kB / 450.8 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.295, allocations: 4 kB / 450.8 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.295, allocations: 1.438 kB / 450.8 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.594e-06/0.295, allocations: 0 / 450.8 MB, free: 0.5039 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: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.0005112/0.2955, allocations: 432.4 kB / 451.2 MB, free: 72 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.293e-05/0.2956, allocations: 8.969 kB / 451.2 MB, free: 72 kB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.969e-05/0.2956, allocations: 42.33 kB / 451.3 MB, free: 24 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.967e-05/0.2957, allocations: 20.84 kB / 451.3 MB, free: 12 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003302/0.296, allocations: 216.9 kB / 451.5 MB, free: 15.78 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.001e-05/0.296, allocations: 12.91 kB / 451.5 MB, free: 15.77 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.78e-05/0.2961, allocations: 6.469 kB / 451.5 MB, free: 15.77 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003072/0.2964, allocations: 135.4 kB / 451.6 MB, free: 15.65 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.272e-05/0.2964, allocations: 0 / 451.6 MB, free: 15.65 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.618e-05/0.2964, allocations: 5.375 kB / 451.6 MB, free: 15.65 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.404e-06/0.2964, allocations: 2.656 kB / 451.6 MB, free: 15.65 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002076/0.2967, allocations: 71.48 kB / 451.7 MB, free: 15.61 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000745/0.2974, allocations: 0.6022 MB / 452.3 MB, free: 15 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002819/0.2977, allocations: 106 kB / 452.4 MB, free: 14.91 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001112/0.2978, allocations: 47.19 kB / 452.5 MB, free: 14.87 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.517e-05/0.2979, allocations: 1.375 kB / 452.5 MB, free: 14.87 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.536e-05/0.2979, allocations: 39.88 kB / 452.5 MB, free: 14.82 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 1.422e-06/0.2979, allocations: 0 / 452.5 MB, free: 14.82 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004621/0.2984, allocations: 117.9 kB / 452.6 MB, free: 14.75 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.93e-05/0.2984, allocations: 109.5 kB / 452.7 MB, free: 14.62 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000143/0.2986, allocations: 143.4 kB / 452.9 MB, free: 14.5 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.247e-05/0.2986, allocations: 27.08 kB / 452.9 MB, free: 14.46 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.98e-05/0.2987, allocations: 122.8 kB / 453 MB, free: 14.35 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.087e-05/0.2988, allocations: 26.5 kB / 453 MB, free: 14.32 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.681e-05/0.2988, allocations: 29.95 kB / 453.1 MB, free: 14.3 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000115/0.2989, allocations: 321.5 kB / 453.4 MB, free: 13.98 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.668e-05/0.2991, allocations: 28.38 kB / 453.4 MB, free: 13.96 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001204/0.2992, allocations: 67.66 kB / 453.5 MB, free: 13.89 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002217/0.2994, allocations: 100.8 kB / 453.6 MB, free: 13.8 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.2994, allocations: 0.9375 kB / 453.6 MB, free: 13.8 MB / 334.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002806/0.2997, allocations: 119.6 kB / 453.7 MB, free: 13.73 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.17e-05/0.2997, allocations: 5.75 kB / 453.7 MB, free: 13.73 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.794e-06/0.2998, allocations: 9.266 kB / 453.7 MB, free: 13.72 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.793e-05/0.2998, allocations: 2.219 kB / 453.7 MB, free: 13.72 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001493/0.2999, allocations: 27.95 kB / 453.7 MB, free: 13.71 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.158e-05/0.3, allocations: 5.438 kB / 453.7 MB, free: 13.71 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.677e-05/0.3001, allocations: 16.19 kB / 453.8 MB, free: 13.7 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.447e-05/0.3001, allocations: 5.125 kB / 453.8 MB, free: 13.7 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 1 (derivativeLag.integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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 prepare postOptimizeDAE: time 0.0001122/0.3002, allocations: 127.7 kB / 453.9 MB, free: 13.57 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.836e-05/0.3002, allocations: 8.734 kB / 453.9 MB, free: 13.57 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.771e-05/0.3003, allocations: 19.45 kB / 453.9 MB, free: 13.55 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/0.3003, allocations: 1.344 kB / 453.9 MB, free: 13.55 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.661e-06/0.3003, allocations: 5.312 kB / 453.9 MB, free: 13.55 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.3003, allocations: 1.25 kB / 453.9 MB, free: 13.55 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002335/0.3006, allocations: 204 kB / 454.1 MB, free: 13.32 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.796e-06/0.3006, allocations: 1.625 kB / 454.1 MB, free: 13.32 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001392/0.3007, allocations: 20.64 kB / 454.1 MB, free: 13.31 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.338e-06/0.3007, allocations: 6.156 kB / 454.2 MB, free: 13.31 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.213e-05/0.3007, allocations: 4 kB / 454.2 MB, free: 13.3 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.839e-06/0.3008, allocations: 5.938 kB / 454.2 MB, free: 13.3 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.3008, allocations: 0 / 454.2 MB, free: 13.3 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003923/0.3012, allocations: 232.8 kB / 454.4 MB, free: 13.1 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.108e-05/0.3012, allocations: 84.69 kB / 454.5 MB, free: 13 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.459e-05/0.3013, allocations: 1.188 kB / 454.5 MB, free: 13 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.683e-05/0.3014, allocations: 7.453 kB / 454.5 MB, free: 13 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.185e-05/0.3014, allocations: 15.02 kB / 454.5 MB, free: 12.99 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.735e-06/0.3015, allocations: 2.781 kB / 454.5 MB, free: 12.99 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.876e-05/0.3015, allocations: 110.4 kB / 454.6 MB, free: 12.9 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3015, allocations: 0 / 454.6 MB, free: 12.9 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002684/0.3018, allocations: 25.36 kB / 454.6 MB, free: 12.89 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (derivativeLag.integrator.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.0006306/0.3025, allocations: 0.7587 MB / 455.4 MB, free: 12.16 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002634/0.3027, allocations: 75.45 kB / 455.5 MB, free: 12.12 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.3027, allocations: 0 / 455.5 MB, free: 12.12 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.866e-05/0.3028, allocations: 33.89 kB / 455.5 MB, free: 12.11 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003439/0.3032, allocations: 23.39 kB / 455.5 MB, free: 12.1 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002046/0.3053, allocations: 1.664 MB / 457.2 MB, free: 10.57 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003003/0.3056, allocations: 0.7097 MB / 457.9 MB, free: 9.855 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.657e-05/0.3057, allocations: 10.05 kB / 457.9 MB, free: 9.852 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.004e-05/0.3058, allocations: 36.45 kB / 457.9 MB, free: 9.82 MB / 334.1 MB Notification: Performance of SimCode: time 8.72e-07/0.3058, allocations: 1.094 kB / 457.9 MB, free: 9.82 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0263/0.3321, allocations: 2.506 MB / 460.4 MB, free: 8.41 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.742/8.074, allocations: 5.359 kB / 460.4 MB, free: 8.406 MB / 334.1 MB (rm -f PowerGrids_PowerGrids.Controls.Test.TestDerivativeLag.pipe ; mkfifo PowerGrids_PowerGrids.Controls.Test.TestDerivativeLag.pipe ; head -c 1048576 < PowerGrids_PowerGrids.Controls.Test.TestDerivativeLag.pipe >> ../files/PowerGrids_PowerGrids.Controls.Test.TestDerivativeLag.sim & python3 -m fmpy simulate --output-file PowerGrids_PowerGrids.Controls.Test.TestDerivativeLag_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_TestDerivativeLag.fmu > PowerGrids_PowerGrids.Controls.Test.TestDerivativeLag.pipe 2>&1) diffSimulationResults("PowerGrids_PowerGrids.Controls.Test.TestDerivativeLag_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Controls.Test.TestDerivativeLag_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerGrids_PowerGrids.Controls.Test.TestDerivativeLag.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches