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.001476/0.001476, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001375/0.001375, allocations: 191 kB / 16.25 MB, free: 6.625 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.291/1.291, allocations: 205.1 MB / 222.1 MB, free: 4.695 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.05872/0.05872, allocations: 14.16 MB / 283.6 MB, free: 7.25 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.001327/0.001327, allocations: 59.91 kB / 346.7 MB, free: 17.58 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08113/0.08247, allocations: 50.13 MB / 396.9 MB, free: 15.41 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDerivativeLag): time 0.003543/0.08605, allocations: 1.89 MB / 398.7 MB, free: 13.51 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003914/0.08647, allocations: 155.5 kB / 398.9 MB, free: 13.36 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000113/0.08659, allocations: 7.938 kB / 398.9 MB, free: 13.35 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001651/0.08679, allocations: 19.86 kB / 398.9 MB, free: 13.33 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001371/0.08694, allocations: 19.86 kB / 398.9 MB, free: 13.31 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001145/0.08706, allocations: 47.95 kB / 399 MB, free: 13.26 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001648/0.08723, allocations: 115.7 kB / 399.1 MB, free: 13.15 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001693/0.08741, allocations: 49.31 kB / 399.2 MB, free: 13.1 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.603e-05/0.08748, allocations: 47.73 kB / 399.2 MB, free: 13.05 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001101/0.0876, allocations: 43.78 kB / 399.2 MB, free: 13.01 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.33e-05/0.08763, allocations: 8 kB / 399.3 MB, free: 13 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.924e-05/0.08765, allocations: 8 kB / 399.3 MB, free: 13 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.149e-05/0.08769, allocations: 31.84 kB / 399.3 MB, free: 12.96 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.091e-05/0.08775, allocations: 55.67 kB / 399.3 MB, free: 12.91 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001643/0.08792, allocations: 99.62 kB / 399.4 MB, free: 12.81 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.08793, allocations: 0 / 399.4 MB, free: 12.81 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.654e-06/0.08794, allocations: 0 / 399.4 MB, free: 12.81 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.651e-06/0.08795, allocations: 0 / 399.4 MB, free: 12.81 MB / 302.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.0005728/0.08853, allocations: 415.2 kB / 399.8 MB, free: 12.36 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.25e-05/0.08859, allocations: 12.03 kB / 399.9 MB, free: 12.34 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.108e-05/0.08864, allocations: 42.73 kB / 399.9 MB, free: 12.29 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.889e-05/0.08869, allocations: 16.75 kB / 399.9 MB, free: 12.28 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002451/0.08894, allocations: 222.9 kB / 400.1 MB, free: 12.02 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.808e-05/0.08897, allocations: 8.562 kB / 400.1 MB, free: 12.02 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.656e-05/0.089, allocations: 12.36 kB / 400.2 MB, free: 12 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002697/0.08927, allocations: 134 kB / 400.3 MB, free: 11.85 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.027e-06/0.08929, allocations: 0 / 400.3 MB, free: 11.85 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.44e-05/0.08931, allocations: 12 kB / 400.3 MB, free: 11.84 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.27e-06/0.08932, allocations: 0 / 400.3 MB, free: 11.84 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000183/0.08951, allocations: 67.89 kB / 400.4 MB, free: 11.77 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006458/0.09017, allocations: 0.603 MB / 401 MB, free: 11.1 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002578/0.09044, allocations: 111.8 kB / 401.1 MB, free: 10.96 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001102/0.09056, allocations: 46.69 kB / 401.1 MB, free: 10.91 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.817e-05/0.09058, allocations: 3.938 kB / 401.1 MB, free: 10.9 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.088e-05/0.09061, allocations: 38.55 kB / 401.2 MB, free: 10.86 MB / 302.1 MB Notification: Performance of pre-optimization done (n=7): time 1.102e-06/0.09062, allocations: 0 / 401.2 MB, free: 10.86 MB / 302.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003604/0.09098, allocations: 121.6 kB / 401.3 MB, free: 10.73 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001072/0.0911, allocations: 106.8 kB / 401.4 MB, free: 10.6 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000139/0.09125, allocations: 155.2 kB / 401.5 MB, free: 10.44 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.531e-05/0.09127, allocations: 25.7 kB / 401.6 MB, free: 10.41 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.142e-05/0.09135, allocations: 119.8 kB / 401.7 MB, free: 10.29 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.191e-05/0.09138, allocations: 27.61 kB / 401.7 MB, free: 10.26 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.15e-05/0.09144, allocations: 29.97 kB / 401.7 MB, free: 10.23 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001151/0.09156, allocations: 326.8 kB / 402.1 MB, free: 9.898 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.388e-05/0.09165, allocations: 19.98 kB / 402.1 MB, free: 9.879 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001098/0.09176, allocations: 69.98 kB / 402.1 MB, free: 9.789 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002012/0.09197, allocations: 97.09 kB / 402.2 MB, free: 9.676 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.09198, allocations: 0 / 402.2 MB, free: 9.676 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002375/0.09223, allocations: 113.5 kB / 402.3 MB, free: 9.559 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.567e-05/0.09225, allocations: 11.98 kB / 402.4 MB, free: 9.547 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.569e-06/0.09226, allocations: 0 / 402.4 MB, free: 9.547 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.173e-05/0.09229, allocations: 4 kB / 402.4 MB, free: 9.543 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001289/0.09242, allocations: 23.92 kB / 402.4 MB, free: 9.52 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.494e-06/0.09244, allocations: 4 kB / 402.4 MB, free: 9.516 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.097e-05/0.09252, allocations: 16 kB / 402.4 MB, free: 9.5 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.127e-05/0.09254, allocations: 8 kB / 402.4 MB, free: 9.492 MB / 302.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 9.605e-05/0.09265, allocations: 137.7 kB / 402.6 MB, free: 9.348 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.348e-05/0.09269, allocations: 8.219 kB / 402.6 MB, free: 9.34 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.12e-05/0.09272, allocations: 12.31 kB / 402.6 MB, free: 9.328 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.09273, allocations: 0 / 402.6 MB, free: 9.328 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.082e-06/0.09274, allocations: 4 kB / 402.6 MB, free: 9.324 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.538e-06/0.09275, allocations: 4 kB / 402.6 MB, free: 9.32 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002177/0.09297, allocations: 209.5 kB / 402.8 MB, free: 9.066 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.031e-06/0.09299, allocations: 7.984 kB / 402.8 MB, free: 9.059 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001115/0.0931, allocations: 19.98 kB / 402.8 MB, free: 9.039 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.853e-06/0.09311, allocations: 0 / 402.8 MB, free: 9.039 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.248e-05/0.09313, allocations: 4 kB / 402.8 MB, free: 9.035 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.303e-06/0.09314, allocations: 4 kB / 402.8 MB, free: 9.031 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.175e-06/0.09315, allocations: 3.984 kB / 402.8 MB, free: 9.027 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003594/0.09351, allocations: 233 kB / 403 MB, free: 8.777 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.781e-05/0.09357, allocations: 92.98 kB / 403.1 MB, free: 8.668 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.91e-05/0.09359, allocations: 0 / 403.1 MB, free: 8.668 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.078e-05/0.09369, allocations: 7.938 kB / 403.1 MB, free: 8.66 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.097e-05/0.09374, allocations: 7.984 kB / 403.2 MB, free: 8.652 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.572e-06/0.09375, allocations: 4 kB / 403.2 MB, free: 8.648 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.186e-05/0.09384, allocations: 111.2 kB / 403.3 MB, free: 8.539 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.09384, allocations: 4.062 kB / 403.3 MB, free: 8.535 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002431/0.09409, allocations: 19.91 kB / 403.3 MB, free: 8.516 MB / 302.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.0005995/0.0947, allocations: 0.7647 MB / 404.1 MB, free: 7.719 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002364/0.09494, allocations: 63.91 kB / 404.1 MB, free: 7.656 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.09496, allocations: 0 / 404.1 MB, free: 7.656 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.947e-05/0.09505, allocations: 35.91 kB / 404.2 MB, free: 7.621 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003872/0.09545, allocations: 20.48 kB / 404.2 MB, free: 7.602 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00174/0.09719, allocations: 1.693 MB / 405.9 MB, free: 5.781 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002412/0.09745, allocations: 0.7086 MB / 406.6 MB, free: 5.047 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.107e-05/0.09753, allocations: 16.67 kB / 406.6 MB, free: 5.031 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.102e-05/0.09759, allocations: 39.42 kB / 406.6 MB, free: 4.992 MB / 302.1 MB Notification: Performance of SimCode: time 2.6e-07/0.0976, allocations: 0 / 406.6 MB, free: 4.992 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01285/0.1105, allocations: 2.328 MB / 409 MB, free: 2.719 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000182/0.1107, allocations: 183.7 kB / 409.1 MB, free: 2.465 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.768/1.878, allocations: 3.938 kB / 409.1 MB, free: 2.461 MB / 302.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerGrids_PowerGrids.Controls.Test.TestDerivativeLag_res.mat --tempDir=temp_PowerGrids_PowerGrids_Controls_Test_TestDerivativeLag_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 PowerGrids_PowerGrids_Controls_Test_TestDerivativeLag.fmu > PowerGrids_PowerGrids.Controls.Test.TestDerivativeLag.pipe 2>&1) diffSimulationResults("PowerGrids_PowerGrids.Controls.Test.TestDerivativeLag_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Controls.Test.TestDerivativeLag_res.mat","../files/PowerGrids_PowerGrids.Controls.Test.TestDerivativeLag.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches