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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001843/0.001843, allocations: 114.3 kB / 18.94 MB, free: 2.957 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002675/0.002675, allocations: 216.4 kB / 22.25 MB, free: 5.117 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.589/1.589, allocations: 207.6 MB / 233 MB, free: 10.01 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.07029/0.07029, allocations: 14.39 MB / 299.7 MB, free: 7.527 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002404/0.002404, allocations: 71.89 kB / 423 MB, free: 36.93 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08702/0.08943, allocations: 52.9 MB / 475.9 MB, free: 15.96 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDerivativeLag): time 0.003624/0.09305, allocations: 1.834 MB / 477.7 MB, free: 14.11 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004933/0.09354, allocations: 179.4 kB / 477.9 MB, free: 13.93 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001366/0.09368, allocations: 7.938 kB / 477.9 MB, free: 13.93 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001661/0.09385, allocations: 19.73 kB / 477.9 MB, free: 13.91 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001912/0.09404, allocations: 31.78 kB / 477.9 MB, free: 13.88 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001783/0.09422, allocations: 39.95 kB / 478 MB, free: 13.84 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002176/0.09443, allocations: 123.7 kB / 478.1 MB, free: 13.71 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001606/0.0946, allocations: 41.45 kB / 478.1 MB, free: 13.68 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001092/0.0947, allocations: 63.7 kB / 478.2 MB, free: 13.61 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001337/0.09484, allocations: 39.78 kB / 478.2 MB, free: 13.57 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.755e-05/0.09487, allocations: 8 kB / 478.3 MB, free: 13.57 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.973e-05/0.09489, allocations: 12 kB / 478.3 MB, free: 13.55 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.994e-05/0.09492, allocations: 15.92 kB / 478.3 MB, free: 13.54 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.244e-05/0.09498, allocations: 51.69 kB / 478.3 MB, free: 13.49 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002065/0.09518, allocations: 107.5 kB / 478.4 MB, free: 13.38 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.701e-06/0.09519, allocations: 3.984 kB / 478.4 MB, free: 13.38 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.09519, allocations: 7.938 kB / 478.4 MB, free: 13.37 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.625e-06/0.0952, allocations: 4 kB / 478.5 MB, free: 13.37 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.0006112/0.09581, allocations: 334 kB / 478.8 MB, free: 13.01 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.501e-05/0.09586, allocations: 16.02 kB / 478.8 MB, free: 12.99 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.675e-05/0.0959, allocations: 38.75 kB / 478.8 MB, free: 12.95 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.643e-05/0.09596, allocations: 24.78 kB / 478.9 MB, free: 12.92 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003048/0.09626, allocations: 158.3 kB / 479 MB, free: 12.74 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.873e-05/0.09628, allocations: 12.56 kB / 479 MB, free: 12.73 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.049e-05/0.09631, allocations: 8.375 kB / 479 MB, free: 12.72 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002993/0.09661, allocations: 134 kB / 479.2 MB, free: 12.57 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.768e-06/0.09662, allocations: 4 kB / 479.2 MB, free: 12.57 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.419e-05/0.09664, allocations: 4 kB / 479.2 MB, free: 12.56 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.722e-06/0.09664, allocations: 4 kB / 479.2 MB, free: 12.56 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002081/0.09685, allocations: 67.89 kB / 479.2 MB, free: 12.49 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008102/0.09766, allocations: 0.567 MB / 479.8 MB, free: 11.86 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002995/0.09796, allocations: 107.8 kB / 479.9 MB, free: 11.73 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001139/0.09807, allocations: 46.67 kB / 480 MB, free: 11.68 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.243e-05/0.0981, allocations: 4 kB / 480 MB, free: 11.67 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.064e-05/0.09813, allocations: 34.56 kB / 480 MB, free: 11.63 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.232e-06/0.09813, allocations: 0 / 480 MB, free: 11.63 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004222/0.09855, allocations: 113.5 kB / 480.1 MB, free: 11.51 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.918e-05/0.09864, allocations: 111.1 kB / 480.2 MB, free: 11.38 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001577/0.0988, allocations: 151.1 kB / 480.4 MB, free: 11.22 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.077e-05/0.09882, allocations: 25.7 kB / 480.4 MB, free: 11.19 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.953e-05/0.09891, allocations: 123.9 kB / 480.5 MB, free: 11.07 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.621e-05/0.09894, allocations: 27.78 kB / 480.5 MB, free: 11.04 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.746e-05/0.09899, allocations: 21.72 kB / 480.6 MB, free: 11.01 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000154/0.09915, allocations: 326.8 kB / 480.9 MB, free: 10.68 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.899e-05/0.09924, allocations: 23.98 kB / 480.9 MB, free: 10.66 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001341/0.09938, allocations: 73.98 kB / 481 MB, free: 10.57 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002115/0.09959, allocations: 97.03 kB / 481.1 MB, free: 10.45 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.09959, allocations: 0 / 481.1 MB, free: 10.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002867/0.09988, allocations: 117.5 kB / 481.2 MB, free: 10.33 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.741e-05/0.0999, allocations: 8 kB / 481.2 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/0.0999, allocations: 8.094 kB / 481.2 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.747e-05/0.09992, allocations: 4 kB / 481.2 MB, free: 10.31 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001446/0.1001, allocations: 24.3 kB / 481.2 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.751e-06/0.1001, allocations: 0 / 481.2 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.27e-05/0.1002, allocations: 19.88 kB / 481.2 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.394e-05/0.1002, allocations: 8 kB / 481.3 MB, free: 10.26 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.0001212/0.1003, allocations: 129.7 kB / 481.4 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.408e-05/0.1003, allocations: 7.953 kB / 481.4 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.671e-05/0.1004, allocations: 20.34 kB / 481.4 MB, free: 10.09 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.1004, allocations: 0 / 481.4 MB, free: 10.09 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.498e-06/0.1004, allocations: 4 kB / 481.4 MB, free: 10.09 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.033e-06/0.1004, allocations: 7.969 kB / 481.4 MB, free: 10.08 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002435/0.1006, allocations: 176.6 kB / 481.6 MB, free: 9.867 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.1006, allocations: 0 / 481.6 MB, free: 9.867 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001188/0.1008, allocations: 15.98 kB / 481.6 MB, free: 9.852 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.606e-06/0.1008, allocations: 0 / 481.6 MB, free: 9.852 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.301e-05/0.1008, allocations: 4 kB / 481.6 MB, free: 9.848 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.844e-06/0.1008, allocations: 0 / 481.6 MB, free: 9.848 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.1008, allocations: 4 kB / 481.6 MB, free: 9.844 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004029/0.1012, allocations: 237 kB / 481.8 MB, free: 9.59 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.633e-05/0.1012, allocations: 11.92 kB / 481.9 MB, free: 9.578 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.301e-05/0.1012, allocations: 4 kB / 481.9 MB, free: 9.574 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.741e-05/0.1013, allocations: 12.05 kB / 481.9 MB, free: 9.562 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.33e-05/0.1014, allocations: 4 kB / 481.9 MB, free: 9.559 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.494e-06/0.1014, allocations: 4 kB / 481.9 MB, free: 9.555 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.673e-05/0.1015, allocations: 115.9 kB / 482 MB, free: 9.441 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1015, allocations: 0 / 482 MB, free: 9.441 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002647/0.1017, allocations: 19.95 kB / 482 MB, free: 9.422 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.0007136/0.1025, allocations: 0.7609 MB / 482.8 MB, free: 8.629 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002578/0.1027, allocations: 72.2 kB / 482.8 MB, free: 8.559 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.1027, allocations: 0 / 482.8 MB, free: 8.559 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.624e-05/0.1028, allocations: 27.98 kB / 482.9 MB, free: 8.531 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003468/0.1032, allocations: 19.98 kB / 482.9 MB, free: 8.512 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002213/0.1054, allocations: 1.681 MB / 484.6 MB, free: 6.703 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003883/0.1058, allocations: 0.7086 MB / 485.3 MB, free: 5.969 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.314e-05/0.1058, allocations: 12.48 kB / 485.3 MB, free: 5.957 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.066e-05/0.1059, allocations: 31.44 kB / 485.3 MB, free: 5.93 MB / 350.1 MB Notification: Performance of SimCode: time 7.92e-07/0.1059, allocations: 0 / 485.3 MB, free: 5.93 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03154/0.1374, allocations: 2.686 MB / 488 MB, free: 3.277 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.69/11.82, allocations: 64 / 488 MB, free: 3.277 MB / 350.1 MB " [Timeout remaining time 648] (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/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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.721649019047618]