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.001323/0.001323, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001401/0.001401, allocations: 195.1 kB / 16.53 MB, free: 6.391 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.446/1.446, allocations: 205.1 MB / 222.4 MB, free: 4.59 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06252/0.06252, allocations: 14.16 MB / 283.9 MB, free: 7.109 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.00287/0.00287, allocations: 75.91 kB / 347.3 MB, free: 17.21 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1136/0.1165, allocations: 50.12 MB / 397.4 MB, free: 15.05 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDerivativeLag): time 0.003412/0.12, allocations: 1.825 MB / 399.2 MB, free: 13.21 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004366/0.1204, allocations: 171.5 kB / 399.4 MB, free: 13.04 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001135/0.1206, allocations: 7.938 kB / 399.4 MB, free: 13.03 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001616/0.1207, allocations: 23.73 kB / 399.4 MB, free: 13.01 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001692/0.1209, allocations: 23.8 kB / 399.5 MB, free: 12.98 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001141/0.121, allocations: 43.95 kB / 399.5 MB, free: 12.94 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001815/0.1212, allocations: 119.7 kB / 399.6 MB, free: 12.82 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001845/0.1214, allocations: 57.27 kB / 399.7 MB, free: 12.77 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.648e-05/0.1215, allocations: 47.78 kB / 399.7 MB, free: 12.72 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001214/0.1216, allocations: 39.78 kB / 399.8 MB, free: 12.68 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.753e-05/0.1216, allocations: 8 kB / 399.8 MB, free: 12.68 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.307e-05/0.1217, allocations: 8 kB / 399.8 MB, free: 12.67 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.147e-05/0.1217, allocations: 31.84 kB / 399.8 MB, free: 12.64 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.489e-05/0.1218, allocations: 47.73 kB / 399.8 MB, free: 12.59 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001749/0.122, allocations: 103.6 kB / 399.9 MB, free: 12.49 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.166e-05/0.122, allocations: 0 / 399.9 MB, free: 12.49 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.474e-06/0.122, allocations: 0 / 399.9 MB, free: 12.49 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.959e-06/0.122, allocations: 4 kB / 400 MB, free: 12.48 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.0007684/0.1228, allocations: 415.2 kB / 400.4 MB, free: 12.03 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.103e-05/0.1229, allocations: 12.03 kB / 400.4 MB, free: 12.02 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.405e-05/0.1229, allocations: 42.69 kB / 400.4 MB, free: 11.96 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.612e-05/0.123, allocations: 16.75 kB / 400.4 MB, free: 11.95 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003051/0.1233, allocations: 215 kB / 400.6 MB, free: 11.7 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.675e-05/0.1233, allocations: 12.56 kB / 400.6 MB, free: 11.69 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.167e-05/0.1234, allocations: 8.375 kB / 400.7 MB, free: 11.68 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002874/0.1237, allocations: 142 kB / 400.8 MB, free: 11.52 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.256e-05/0.1237, allocations: 3.984 kB / 400.8 MB, free: 11.52 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.619e-05/0.1237, allocations: 4 kB / 400.8 MB, free: 11.52 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.19e-06/0.1237, allocations: 0 / 400.8 MB, free: 11.52 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001997/0.1239, allocations: 67.91 kB / 400.9 MB, free: 11.45 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008182/0.1248, allocations: 0.603 MB / 401.5 MB, free: 10.77 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002971/0.1251, allocations: 107.8 kB / 401.6 MB, free: 10.64 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001292/0.1252, allocations: 46.75 kB / 401.6 MB, free: 10.59 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.843e-05/0.1252, allocations: 0 / 401.6 MB, free: 10.59 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.336e-05/0.1253, allocations: 46.48 kB / 401.7 MB, free: 10.53 MB / 302.1 MB Notification: Performance of pre-optimization done (n=7): time 1.152e-06/0.1253, allocations: 3.938 kB / 401.7 MB, free: 10.53 MB / 302.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004062/0.1257, allocations: 117.8 kB / 401.8 MB, free: 10.41 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.238e-05/0.1258, allocations: 106.8 kB / 401.9 MB, free: 10.28 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001555/0.1259, allocations: 155.2 kB / 402 MB, free: 10.12 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.999e-05/0.126, allocations: 25.7 kB / 402.1 MB, free: 10.09 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000105/0.1261, allocations: 119.8 kB / 402.2 MB, free: 9.965 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.089e-05/0.1261, allocations: 23.61 kB / 402.2 MB, free: 9.941 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.367e-05/0.1262, allocations: 33.64 kB / 402.2 MB, free: 9.902 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001564/0.1263, allocations: 326.8 kB / 402.6 MB, free: 9.574 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.788e-05/0.1264, allocations: 23.98 kB / 402.6 MB, free: 9.551 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001224/0.1266, allocations: 69.94 kB / 402.7 MB, free: 9.461 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002146/0.1268, allocations: 97.09 kB / 402.7 MB, free: 9.348 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.1268, allocations: 0 / 402.7 MB, free: 9.348 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002618/0.1271, allocations: 113.6 kB / 402.9 MB, free: 9.23 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.985e-05/0.1271, allocations: 12.03 kB / 402.9 MB, free: 9.219 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.492e-06/0.1271, allocations: 0 / 402.9 MB, free: 9.219 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.294e-05/0.1271, allocations: 4 kB / 402.9 MB, free: 9.215 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001467/0.1273, allocations: 31.91 kB / 402.9 MB, free: 9.184 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.245e-05/0.1273, allocations: 4.312 kB / 402.9 MB, free: 9.18 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.358e-05/0.1274, allocations: 11.84 kB / 402.9 MB, free: 9.168 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.549e-05/0.1274, allocations: 8 kB / 402.9 MB, free: 9.16 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 0.0001247/0.1276, allocations: 125.8 kB / 403.1 MB, free: 9.027 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.905e-05/0.1276, allocations: 11.91 kB / 403.1 MB, free: 9.016 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.325e-05/0.1277, allocations: 20.3 kB / 403.1 MB, free: 8.996 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.966e-06/0.1277, allocations: 0 / 403.1 MB, free: 8.996 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.066e-06/0.1277, allocations: 4 kB / 403.1 MB, free: 8.992 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.011e-06/0.1277, allocations: 0 / 403.1 MB, free: 8.992 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002594/0.128, allocations: 209.4 kB / 403.3 MB, free: 8.738 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.619e-06/0.128, allocations: 0 / 403.3 MB, free: 8.738 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000116/0.1281, allocations: 19.92 kB / 403.3 MB, free: 8.719 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.385e-06/0.1281, allocations: 0 / 403.3 MB, free: 8.719 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.512e-05/0.1281, allocations: 8 kB / 403.3 MB, free: 8.711 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.997e-06/0.1282, allocations: 7.984 kB / 403.3 MB, free: 8.703 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.1282, allocations: 0 / 403.3 MB, free: 8.703 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000401/0.1286, allocations: 229 kB / 403.5 MB, free: 8.457 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.56e-05/0.1286, allocations: 93.03 kB / 403.6 MB, free: 8.348 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.176e-05/0.1287, allocations: 4 kB / 403.6 MB, free: 8.344 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.217e-05/0.1288, allocations: 4 kB / 403.6 MB, free: 8.34 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.539e-05/0.1288, allocations: 11.98 kB / 403.7 MB, free: 8.328 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.23e-06/0.1288, allocations: 0 / 403.7 MB, free: 8.328 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001077/0.1289, allocations: 111.2 kB / 403.8 MB, free: 8.219 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.5e-07/0.129, allocations: 0 / 403.8 MB, free: 8.219 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002672/0.1292, allocations: 19.91 kB / 403.8 MB, free: 8.199 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.0008251/0.1301, allocations: 0.7648 MB / 404.6 MB, free: 7.402 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003055/0.1304, allocations: 71.97 kB / 404.6 MB, free: 7.332 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/0.1304, allocations: 0 / 404.6 MB, free: 7.332 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000102/0.1305, allocations: 27.92 kB / 404.7 MB, free: 7.305 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005119/0.131, allocations: 30.47 kB / 404.7 MB, free: 7.277 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002166/0.1332, allocations: 1.656 MB / 406.3 MB, free: 5.496 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003877/0.1336, allocations: 0.7116 MB / 407 MB, free: 4.758 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.709e-05/0.1337, allocations: 16.41 kB / 407.1 MB, free: 4.742 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.498e-05/0.1338, allocations: 35.42 kB / 407.1 MB, free: 4.707 MB / 302.1 MB Notification: Performance of SimCode: time 3e-07/0.1338, allocations: 0 / 407.1 MB, free: 4.707 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.021/0.1548, allocations: 2.432 MB / 409.5 MB, free: 2.281 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.416/7.571, allocations: 19.66 kB / 409.5 MB, free: 2.266 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 & 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