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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00131/0.00131, allocations: 107.3 kB / 16.45 MB, free: 6.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001373/0.001373, allocations: 191.8 kB / 19.41 MB, free: 3.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.427/1.427, allocations: 207.6 MB / 229.8 MB, free: 11.41 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.07171/0.07171, allocations: 14.41 MB / 296.1 MB, free: 8.641 MB / 238.1 MB " [Timeout remaining time 180] 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"}) [Timeout 660] "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.002188/0.002188, allocations: 79.88 kB / 417.5 MB, free: 38.61 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09587/0.09806, allocations: 52.85 MB / 470.4 MB, free: 1.668 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDerivativeLag): time 0.003196/0.1013, allocations: 1.834 MB / 472.2 MB, free: 15.82 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004109/0.1017, allocations: 175.4 kB / 472.4 MB, free: 15.65 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001012/0.1018, allocations: 4 kB / 472.4 MB, free: 15.64 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001556/0.1019, allocations: 19.73 kB / 472.4 MB, free: 15.62 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001603/0.1021, allocations: 23.8 kB / 472.4 MB, free: 15.6 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001096/0.1022, allocations: 43.95 kB / 472.4 MB, free: 15.56 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001819/0.1024, allocations: 119.6 kB / 472.6 MB, free: 15.44 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001512/0.1025, allocations: 57.23 kB / 472.6 MB, free: 15.39 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.876e-05/0.1026, allocations: 43.8 kB / 472.7 MB, free: 15.34 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001093/0.1027, allocations: 47.77 kB / 472.7 MB, free: 15.3 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.394e-05/0.1027, allocations: 8 kB / 472.7 MB, free: 15.29 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.725e-05/0.1027, allocations: 8 kB / 472.7 MB, free: 15.28 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.953e-05/0.1028, allocations: 19.92 kB / 472.7 MB, free: 15.26 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.368e-05/0.1028, allocations: 51.62 kB / 472.8 MB, free: 15.21 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001739/0.103, allocations: 107.5 kB / 472.9 MB, free: 15.11 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.103, allocations: 0 / 472.9 MB, free: 15.11 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.103, allocations: 0 / 472.9 MB, free: 15.11 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.773e-06/0.103, allocations: 0 / 472.9 MB, free: 15.11 MB / 350.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.0006033/0.1036, allocations: 427 kB / 473.3 MB, free: 14.64 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.712e-05/0.1037, allocations: 11.97 kB / 473.3 MB, free: 14.62 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.516e-05/0.1037, allocations: 46.73 kB / 473.4 MB, free: 14.57 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.802e-05/0.1037, allocations: 16.84 kB / 473.4 MB, free: 14.55 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002991/0.104, allocations: 212.2 kB / 473.6 MB, free: 14.31 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.837e-05/0.1041, allocations: 12.5 kB / 473.6 MB, free: 14.3 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.671e-05/0.1041, allocations: 16.38 kB / 473.6 MB, free: 14.28 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00027/0.1044, allocations: 134 kB / 473.8 MB, free: 14.13 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.768e-06/0.1044, allocations: 0 / 473.8 MB, free: 14.13 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.353e-05/0.1044, allocations: 4 kB / 473.8 MB, free: 14.12 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.123e-06/0.1044, allocations: 4 kB / 473.8 MB, free: 14.12 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001924/0.1046, allocations: 63.91 kB / 473.8 MB, free: 14.06 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007471/0.1053, allocations: 0.6069 MB / 474.4 MB, free: 13.38 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002805/0.1056, allocations: 107.8 kB / 474.5 MB, free: 13.25 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001119/0.1057, allocations: 42.75 kB / 474.6 MB, free: 13.2 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.801e-05/0.1057, allocations: 0 / 474.6 MB, free: 13.2 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.405e-05/0.1058, allocations: 38.56 kB / 474.6 MB, free: 13.15 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 2.895e-06/0.1058, allocations: 7.984 kB / 474.6 MB, free: 13.14 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003758/0.1061, allocations: 117.5 kB / 474.7 MB, free: 13.02 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.19e-05/0.1062, allocations: 102.8 kB / 474.8 MB, free: 12.9 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001471/0.1064, allocations: 151.3 kB / 475 MB, free: 12.74 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.002e-05/0.1064, allocations: 29.7 kB / 475 MB, free: 12.71 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.135e-05/0.1065, allocations: 115.9 kB / 475.1 MB, free: 12.59 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.005e-05/0.1065, allocations: 31.73 kB / 475.2 MB, free: 12.56 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.965e-05/0.1065, allocations: 29.7 kB / 475.2 MB, free: 12.52 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001433/0.1067, allocations: 326.8 kB / 475.5 MB, free: 12.2 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.632e-05/0.1068, allocations: 19.98 kB / 475.5 MB, free: 12.18 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001169/0.1069, allocations: 66 kB / 475.6 MB, free: 12.09 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001971/0.1071, allocations: 101 kB / 475.7 MB, free: 11.97 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.1071, allocations: 4 kB / 475.7 MB, free: 11.97 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002527/0.1073, allocations: 117.8 kB / 475.8 MB, free: 11.85 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.514e-05/0.1074, allocations: 4 kB / 475.8 MB, free: 11.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.09e-06/0.1074, allocations: 4 kB / 475.8 MB, free: 11.84 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.516e-05/0.1074, allocations: 8.094 kB / 475.8 MB, free: 11.83 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000143/0.1075, allocations: 31.97 kB / 475.9 MB, free: 11.8 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.075e-05/0.1075, allocations: 7.938 kB / 475.9 MB, free: 11.79 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.765e-05/0.1076, allocations: 11.89 kB / 475.9 MB, free: 11.78 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.287e-05/0.1076, allocations: 4 kB / 475.9 MB, free: 11.78 MB / 350.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.0001058/0.1077, allocations: 125.8 kB / 476 MB, free: 11.64 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.503e-05/0.1078, allocations: 11.94 kB / 476 MB, free: 11.63 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.663e-05/0.1078, allocations: 16.31 kB / 476 MB, free: 11.62 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.1078, allocations: 4 kB / 476 MB, free: 11.61 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.1078, allocations: 0 / 476 MB, free: 11.61 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.989e-06/0.1078, allocations: 7.938 kB / 476 MB, free: 11.61 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000234/0.108, allocations: 197.6 kB / 476.2 MB, free: 11.36 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.108, allocations: 0 / 476.2 MB, free: 11.36 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001186/0.1082, allocations: 23.98 kB / 476.3 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.1082, allocations: 0 / 476.3 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.29e-05/0.1082, allocations: 3.984 kB / 476.3 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.56e-06/0.1082, allocations: 7.938 kB / 476.3 MB, free: 11.33 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.1082, allocations: 0 / 476.3 MB, free: 11.33 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003751/0.1086, allocations: 233.1 kB / 476.5 MB, free: 11.08 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.499e-05/0.1086, allocations: 85.05 kB / 476.6 MB, free: 10.98 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.961e-05/0.1086, allocations: 4 kB / 476.6 MB, free: 10.97 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001079/0.1087, allocations: 8.062 kB / 476.6 MB, free: 10.96 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.147e-05/0.1088, allocations: 11.98 kB / 476.6 MB, free: 10.95 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.709e-06/0.1088, allocations: 0 / 476.6 MB, free: 10.95 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.414e-05/0.1089, allocations: 119.9 kB / 476.7 MB, free: 10.84 MB / 350.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.1089, allocations: 0 / 476.7 MB, free: 10.84 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002499/0.1091, allocations: 23.89 kB / 476.7 MB, free: 10.81 MB / 350.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.0006792/0.1098, allocations: 0.757 MB / 477.5 MB, free: 10.02 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000249/0.1101, allocations: 63.84 kB / 477.6 MB, free: 9.961 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.689e-06/0.1101, allocations: 4.375 kB / 477.6 MB, free: 9.957 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.15e-05/0.1102, allocations: 28.11 kB / 477.6 MB, free: 9.93 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003458/0.1105, allocations: 33.75 kB / 477.6 MB, free: 9.902 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00201/0.1125, allocations: 1.676 MB / 479.3 MB, free: 8.102 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003473/0.1129, allocations: 0.7002 MB / 480 MB, free: 7.375 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.497e-05/0.1129, allocations: 16.55 kB / 480 MB, free: 7.359 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.739e-05/0.113, allocations: 35.42 kB / 480.1 MB, free: 7.328 MB / 350.1 MB Notification: Performance of SimCode: time 3.61e-07/0.113, allocations: 0 / 480.1 MB, free: 7.328 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02658/0.1396, allocations: 2.509 MB / 482.6 MB, free: 4.844 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.207/8.347, allocations: 7.594 kB / 482.6 MB, free: 4.84 MB / 350.1 MB " [Timeout remaining time 652] (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 --stepSize=0.02 --timeout=50 --tolerance=1e-06 PowerGrids_PowerGrids_Controls_Test_TestDerivativeLag.fmu > PowerGrids_PowerGrids.Controls.Test.TestDerivativeLag.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PowerGrids_PowerGrids.Controls.Test.TestDerivativeLag_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Controls.Test.TestDerivativeLag_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/PowerGrids_PowerGrids.Controls.Test.TestDerivativeLag.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 10.965456394013017]