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.005056/0.005055, allocations: 98.39 kB / 15.73 MB, free: 6.031 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.001302/0.001301, allocations: 194 kB / 16.67 MB, free: 5.953 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.436/1.436, allocations: 205.1 MB / 222.5 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06585/0.06585, allocations: 14.18 MB / 284.1 MB, free: 13.84 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.00215/0.00215, allocations: 69.05 kB / 398.1 MB, free: 42.98 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08637/0.08853, allocations: 50.14 MB / 448.2 MB, free: 12.05 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDerivativeLag): time 0.003637/0.09222, allocations: 1.829 MB / 450.1 MB, free: 10.21 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004442/0.09269, allocations: 167.5 kB / 450.2 MB, free: 10.05 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001206/0.09282, allocations: 0 / 450.2 MB, free: 10.05 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001695/0.09302, allocations: 27.72 kB / 450.2 MB, free: 10.02 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001623/0.09319, allocations: 19.8 kB / 450.3 MB, free: 10 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001116/0.09332, allocations: 47.89 kB / 450.3 MB, free: 9.953 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000227/0.09356, allocations: 127.6 kB / 450.4 MB, free: 9.828 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001884/0.09375, allocations: 61.56 kB / 450.5 MB, free: 9.77 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.615e-05/0.09384, allocations: 39.86 kB / 450.5 MB, free: 9.73 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001182/0.09396, allocations: 51.7 kB / 450.6 MB, free: 9.68 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.881e-05/0.094, allocations: 8 kB / 450.6 MB, free: 9.672 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.25e-05/0.09402, allocations: 8 kB / 450.6 MB, free: 9.664 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.385e-05/0.09406, allocations: 19.92 kB / 450.6 MB, free: 9.645 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.203e-05/0.09413, allocations: 47.67 kB / 450.7 MB, free: 9.598 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000208/0.09435, allocations: 119.4 kB / 450.8 MB, free: 9.48 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.845e-06/0.09436, allocations: 3.984 kB / 450.8 MB, free: 9.477 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.923e-06/0.09437, allocations: 0 / 450.8 MB, free: 9.477 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.249e-06/0.09438, allocations: 0 / 450.8 MB, free: 9.477 MB / 334.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.0006322/0.09501, allocations: 415.1 kB / 451.2 MB, free: 9.02 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.516e-05/0.09507, allocations: 15.97 kB / 451.2 MB, free: 9.004 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.124e-05/0.09512, allocations: 42.75 kB / 451.2 MB, free: 8.953 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.117e-05/0.09517, allocations: 12.84 kB / 451.3 MB, free: 8.941 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003548/0.09553, allocations: 220.2 kB / 451.5 MB, free: 8.688 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.982e-05/0.09556, allocations: 8.562 kB / 451.5 MB, free: 8.68 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.941e-05/0.09559, allocations: 8.375 kB / 451.5 MB, free: 8.672 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002817/0.09588, allocations: 140.1 kB / 451.6 MB, free: 8.516 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.247e-06/0.0959, allocations: 0 / 451.6 MB, free: 8.516 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.351e-05/0.09592, allocations: 8 kB / 451.6 MB, free: 8.508 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.484e-06/0.09593, allocations: 4 kB / 451.6 MB, free: 8.504 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002024/0.09614, allocations: 67.89 kB / 451.7 MB, free: 8.438 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008003/0.09695, allocations: 0.6068 MB / 452.3 MB, free: 7.762 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002893/0.09725, allocations: 112 kB / 452.4 MB, free: 7.625 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001083/0.09737, allocations: 42.62 kB / 452.5 MB, free: 7.574 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.419e-05/0.0974, allocations: 4 kB / 452.5 MB, free: 7.57 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.564e-05/0.09743, allocations: 34.56 kB / 452.5 MB, free: 7.527 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 1.182e-06/0.09744, allocations: 0 / 452.5 MB, free: 7.527 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004943/0.09795, allocations: 121.7 kB / 452.6 MB, free: 7.402 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.301e-05/0.09803, allocations: 102.8 kB / 452.7 MB, free: 7.277 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001671/0.09821, allocations: 151.1 kB / 452.9 MB, free: 7.121 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.21e-05/0.09824, allocations: 33.64 kB / 452.9 MB, free: 7.082 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.07e-05/0.09833, allocations: 119.9 kB / 453 MB, free: 6.961 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.031e-05/0.09838, allocations: 31.73 kB / 453.1 MB, free: 6.93 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.45e-05/0.09843, allocations: 17.72 kB / 453.1 MB, free: 6.906 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001911/0.09863, allocations: 330.8 kB / 453.4 MB, free: 6.574 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.808e-05/0.09873, allocations: 23.98 kB / 453.4 MB, free: 6.551 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001305/0.09887, allocations: 69.98 kB / 453.5 MB, free: 6.461 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002509/0.09913, allocations: 97.3 kB / 453.6 MB, free: 6.348 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.275e-06/0.09914, allocations: 0 / 453.6 MB, free: 6.348 MB / 334.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003324/0.09948, allocations: 121.5 kB / 453.7 MB, free: 6.223 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.785e-05/0.09951, allocations: 8 kB / 453.7 MB, free: 6.215 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.68e-06/0.09952, allocations: 0 / 453.7 MB, free: 6.215 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.794e-05/0.09954, allocations: 4 kB / 453.7 MB, free: 6.211 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001354/0.09968, allocations: 27.97 kB / 453.7 MB, free: 6.184 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.903e-06/0.0997, allocations: 0 / 453.7 MB, free: 6.184 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.255e-05/0.09978, allocations: 11.89 kB / 453.7 MB, free: 6.172 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.702e-05/0.09981, allocations: 8 kB / 453.8 MB, free: 6.164 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.0001277/0.09995, allocations: 133.8 kB / 453.9 MB, free: 6.023 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.917e-05/0.09999, allocations: 15.94 kB / 453.9 MB, free: 6.008 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.852e-05/0.1, allocations: 12.31 kB / 453.9 MB, free: 5.996 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.113e-06/0.1, allocations: 3.938 kB / 453.9 MB, free: 5.992 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.134e-06/0.1001, allocations: 4 kB / 453.9 MB, free: 5.988 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.1001, allocations: 0 / 453.9 MB, free: 5.988 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002452/0.1003, allocations: 209.5 kB / 454.1 MB, free: 5.734 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.396e-06/0.1003, allocations: 3.984 kB / 454.1 MB, free: 5.73 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001129/0.1004, allocations: 12 kB / 454.1 MB, free: 5.719 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.432e-06/0.1005, allocations: 7.984 kB / 454.1 MB, free: 5.711 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.183e-05/0.1005, allocations: 4 kB / 454.2 MB, free: 5.707 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.576e-06/0.1005, allocations: 0 / 454.2 MB, free: 5.707 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.1005, allocations: 3.938 kB / 454.2 MB, free: 5.703 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004043/0.1009, allocations: 229.1 kB / 454.4 MB, free: 5.457 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.754e-05/0.101, allocations: 89.08 kB / 454.5 MB, free: 5.352 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.03e-05/0.101, allocations: 0 / 454.5 MB, free: 5.352 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.28e-05/0.1011, allocations: 8.062 kB / 454.5 MB, free: 5.344 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.939e-05/0.1012, allocations: 11.98 kB / 454.5 MB, free: 5.332 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.47e-06/0.1012, allocations: 0 / 454.5 MB, free: 5.332 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001131/0.1013, allocations: 119.9 kB / 454.6 MB, free: 5.215 MB / 334.1 MB Notification: Performance of sort global known variables: time 4.81e-07/0.1013, allocations: 0 / 454.6 MB, free: 5.215 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002689/0.1016, allocations: 23.89 kB / 454.6 MB, free: 5.191 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.0007841/0.1024, allocations: 0.7609 MB / 455.4 MB, free: 4.398 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002747/0.1027, allocations: 75.84 kB / 455.5 MB, free: 4.324 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.1027, allocations: 0 / 455.5 MB, free: 4.324 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.76e-05/0.1028, allocations: 23.98 kB / 455.5 MB, free: 4.301 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003605/0.1031, allocations: 31.95 kB / 455.5 MB, free: 4.27 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002192/0.1053, allocations: 1.665 MB / 457.2 MB, free: 2.477 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003545/0.1057, allocations: 0.7002 MB / 457.9 MB, free: 1.75 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.741e-05/0.1058, allocations: 16.55 kB / 457.9 MB, free: 1.734 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.405e-05/0.1059, allocations: 35.42 kB / 457.9 MB, free: 1.703 MB / 334.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1059, allocations: 0 / 457.9 MB, free: 1.703 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02888/0.1348, allocations: 2.51 MB / 460.4 MB, free: 15.23 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.053/8.188, allocations: 3.984 kB / 460.4 MB, free: 15.22 MB / 350.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","/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