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.004805/0.004805, allocations: 96.17 kB / 15.73 MB, free: 6.039 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.001293/0.001293, allocations: 199.5 kB / 16.68 MB, free: 5.969 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.534/1.534, allocations: 205.1 MB / 222.6 MB, free: 4.289 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06686/0.06686, allocations: 14.17 MB / 284.1 MB, free: 6.859 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.00208/0.00208, allocations: 75.83 kB / 398.1 MB, free: 14.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2894/0.2915, allocations: 50.14 MB / 448.2 MB, free: 2.594 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDerivativeLag): time 0.002589/0.2942, allocations: 1.82 MB / 450.1 MB, free: 1.164 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003619/0.2945, allocations: 166.9 kB / 450.2 MB, free: 1.027 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001069/0.2947, allocations: 6.688 kB / 450.2 MB, free: 1.023 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001556/0.2948, allocations: 26.48 kB / 450.2 MB, free: 1 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001505/0.295, allocations: 17.23 kB / 450.3 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 9.92e-05/0.2951, allocations: 50.75 kB / 450.3 MB, free: 0.9414 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001932/0.2953, allocations: 126.4 kB / 450.4 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001681/0.2955, allocations: 49.94 kB / 450.5 MB, free: 0.8359 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.096e-05/0.2955, allocations: 48.23 kB / 450.5 MB, free: 0.8047 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000112/0.2957, allocations: 50.75 kB / 450.6 MB, free: 0.7656 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.814e-05/0.2957, allocations: 8.25 kB / 450.6 MB, free: 0.7656 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.822e-05/0.2957, allocations: 8.25 kB / 450.6 MB, free: 0.7656 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.611e-05/0.2957, allocations: 20.06 kB / 450.6 MB, free: 0.75 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.433e-05/0.2958, allocations: 49.3 kB / 450.7 MB, free: 0.7109 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001729/0.296, allocations: 112.4 kB / 450.8 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.296, allocations: 0 / 450.8 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.296, allocations: 1.344 kB / 450.8 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.38e-05/0.296, allocations: 0 / 450.8 MB, free: 0.6328 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.0005532/0.2966, allocations: 424.4 kB / 451.2 MB, free: 212 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.582e-05/0.2966, allocations: 9.531 kB / 451.2 MB, free: 212 kB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.631e-05/0.2967, allocations: 41.58 kB / 451.2 MB, free: 164 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.256e-05/0.2967, allocations: 20.2 kB / 451.3 MB, free: 152 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003372/0.2971, allocations: 225 kB / 451.5 MB, free: 15.91 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.093e-05/0.2971, allocations: 5.344 kB / 451.5 MB, free: 15.91 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.469e-05/0.2971, allocations: 14.5 kB / 451.5 MB, free: 15.9 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000297/0.2974, allocations: 135.8 kB / 451.6 MB, free: 15.78 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.131e-05/0.2975, allocations: 4 kB / 451.6 MB, free: 15.78 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.864e-05/0.2975, allocations: 9.234 kB / 451.6 MB, free: 15.77 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.219e-05/0.2975, allocations: 2.594 kB / 451.7 MB, free: 15.77 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002055/0.2977, allocations: 62.97 kB / 451.7 MB, free: 15.74 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008545/0.2986, allocations: 0.6027 MB / 452.3 MB, free: 15.13 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002911/0.2989, allocations: 106.6 kB / 452.4 MB, free: 15.04 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001128/0.299, allocations: 50.22 kB / 452.5 MB, free: 14.99 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.043e-05/0.299, allocations: 1.094 kB / 452.5 MB, free: 14.99 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.059e-05/0.2991, allocations: 37.02 kB / 452.5 MB, free: 14.95 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 1.704e-06/0.2991, allocations: 0 / 452.5 MB, free: 14.95 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004182/0.2995, allocations: 122.1 kB / 452.6 MB, free: 14.87 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.967e-05/0.2996, allocations: 108.2 kB / 452.7 MB, free: 14.74 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001492/0.2997, allocations: 148.9 kB / 452.9 MB, free: 14.62 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.026e-05/0.2998, allocations: 25.7 kB / 452.9 MB, free: 14.59 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001029/0.2999, allocations: 119.1 kB / 453 MB, free: 14.47 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.269e-05/0.2999, allocations: 26.41 kB / 453 MB, free: 14.45 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.046e-05/0.3, allocations: 30.67 kB / 453.1 MB, free: 14.42 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001572/0.3001, allocations: 328.1 kB / 453.4 MB, free: 14.09 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.089e-05/0.3002, allocations: 21.05 kB / 453.4 MB, free: 14.09 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001259/0.3004, allocations: 64.31 kB / 453.5 MB, free: 14.02 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002021/0.3006, allocations: 102.3 kB / 453.6 MB, free: 13.93 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.208e-06/0.3006, allocations: 0 / 453.6 MB, free: 13.93 MB / 334.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002529/0.3008, allocations: 122.9 kB / 453.7 MB, free: 13.86 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.755e-05/0.3009, allocations: 5.312 kB / 453.7 MB, free: 13.86 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.3009, allocations: 1.375 kB / 453.7 MB, free: 13.86 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.949e-05/0.3009, allocations: 2.75 kB / 453.7 MB, free: 13.86 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001351/0.301, allocations: 27.17 kB / 453.7 MB, free: 13.85 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.045e-05/0.3011, allocations: 5.359 kB / 453.7 MB, free: 13.84 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.499e-05/0.3012, allocations: 17.39 kB / 453.8 MB, free: 13.83 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.194e-05/0.3012, allocations: 4.125 kB / 453.8 MB, free: 13.83 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.0001197/0.3013, allocations: 132.8 kB / 453.9 MB, free: 13.7 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.444e-05/0.3013, allocations: 8.078 kB / 453.9 MB, free: 13.7 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.715e-05/0.3014, allocations: 16.42 kB / 453.9 MB, free: 13.68 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.875e-06/0.3014, allocations: 1.375 kB / 453.9 MB, free: 13.68 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.468e-06/0.3014, allocations: 5.625 kB / 453.9 MB, free: 13.68 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.3014, allocations: 0 / 453.9 MB, free: 13.68 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002528/0.3017, allocations: 208.9 kB / 454.1 MB, free: 13.45 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.953e-06/0.3017, allocations: 1.375 kB / 454.1 MB, free: 13.45 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001173/0.3018, allocations: 15.98 kB / 454.1 MB, free: 13.45 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/0.3018, allocations: 5.031 kB / 454.1 MB, free: 13.44 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.434e-05/0.3018, allocations: 5.109 kB / 454.1 MB, free: 13.44 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.488e-06/0.3019, allocations: 5.266 kB / 454.2 MB, free: 13.43 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.863e-06/0.3019, allocations: 1.219 kB / 454.2 MB, free: 13.43 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000396/0.3023, allocations: 235.9 kB / 454.4 MB, free: 13.23 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.665e-05/0.3023, allocations: 92.67 kB / 454.5 MB, free: 13.12 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.011e-05/0.3024, allocations: 1.438 kB / 454.5 MB, free: 13.12 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001042/0.3025, allocations: 3.469 kB / 454.5 MB, free: 13.12 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.209e-05/0.3025, allocations: 6.828 kB / 454.5 MB, free: 13.12 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.854e-06/0.3025, allocations: 6.5 kB / 454.5 MB, free: 13.12 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.929e-05/0.3026, allocations: 111.7 kB / 454.6 MB, free: 13.03 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3027, allocations: 0 / 454.6 MB, free: 13.03 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002583/0.3029, allocations: 28.62 kB / 454.6 MB, free: 13.01 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.0007413/0.3037, allocations: 0.759 MB / 455.4 MB, free: 12.29 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002413/0.3039, allocations: 66.41 kB / 455.5 MB, free: 12.26 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.3039, allocations: 1.125 kB / 455.5 MB, free: 12.26 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.867e-05/0.304, allocations: 34.11 kB / 455.5 MB, free: 12.24 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000343/0.3044, allocations: 19.08 kB / 455.5 MB, free: 12.23 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002108/0.3065, allocations: 1.672 MB / 457.2 MB, free: 10.7 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003688/0.3069, allocations: 0.7136 MB / 457.9 MB, free: 9.98 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.5e-05/0.307, allocations: 13.42 kB / 457.9 MB, free: 9.973 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.931e-05/0.3071, allocations: 38.08 kB / 457.9 MB, free: 9.941 MB / 334.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3071, allocations: 0 / 457.9 MB, free: 9.941 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0289/0.336, allocations: 2.497 MB / 460.4 MB, free: 8.535 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.915/8.251, allocations: 10.61 kB / 460.5 MB, free: 8.531 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