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.001038/0.001038, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.00108/0.00108, allocations: 195.6 kB / 16.14 MB, free: 6.703 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.162/1.162, allocations: 205.1 MB / 222 MB, free: 4.754 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.05546/0.05546, allocations: 14.15 MB / 283.5 MB, free: 7.32 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.00123/0.00123, allocations: 67.89 kB / 346.5 MB, free: 17.7 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06981/0.07105, allocations: 50.14 MB / 396.7 MB, free: 15.53 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDerivativeLag): time 0.002488/0.07357, allocations: 1.879 MB / 398.6 MB, free: 13.63 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003019/0.07389, allocations: 159.5 kB / 398.7 MB, free: 13.47 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.931e-05/0.07399, allocations: 3.938 kB / 398.7 MB, free: 13.47 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001228/0.07412, allocations: 15.86 kB / 398.7 MB, free: 13.45 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00012/0.07425, allocations: 31.84 kB / 398.8 MB, free: 13.42 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 8.043e-05/0.07434, allocations: 35.97 kB / 398.8 MB, free: 13.39 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001268/0.07447, allocations: 111.7 kB / 398.9 MB, free: 13.28 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001183/0.0746, allocations: 49.31 kB / 399 MB, free: 13.23 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.948e-05/0.07466, allocations: 47.72 kB / 399 MB, free: 13.18 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.943e-05/0.07474, allocations: 43.72 kB / 399 MB, free: 13.14 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.919e-05/0.07477, allocations: 4 kB / 399 MB, free: 13.14 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.555e-05/0.07479, allocations: 12 kB / 399.1 MB, free: 13.12 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.299e-05/0.07482, allocations: 11.92 kB / 399.1 MB, free: 13.11 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.382e-05/0.07487, allocations: 55.55 kB / 399.1 MB, free: 13.06 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001061/0.07498, allocations: 91.69 kB / 399.2 MB, free: 12.97 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.015e-06/0.07498, allocations: 0 / 399.2 MB, free: 12.97 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.07499, allocations: 4 kB / 399.2 MB, free: 12.96 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.807e-06/0.075, allocations: 0 / 399.2 MB, free: 12.96 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.0004498/0.07545, allocations: 419.2 kB / 399.6 MB, free: 12.5 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.176e-05/0.07549, allocations: 8.031 kB / 399.6 MB, free: 12.5 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.663e-05/0.07554, allocations: 42.75 kB / 399.7 MB, free: 12.45 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.253e-05/0.07557, allocations: 16.75 kB / 399.7 MB, free: 12.43 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001868/0.07576, allocations: 212 kB / 399.9 MB, free: 12.18 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.312e-05/0.07578, allocations: 8.562 kB / 399.9 MB, free: 12.18 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.393e-05/0.07581, allocations: 12.38 kB / 399.9 MB, free: 12.16 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002239/0.07604, allocations: 138 kB / 400.1 MB, free: 12.01 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.793e-06/0.07606, allocations: 0 / 400.1 MB, free: 12.01 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.164e-05/0.07607, allocations: 4 kB / 400.1 MB, free: 12 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.787e-06/0.07609, allocations: 4 kB / 400.1 MB, free: 12 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001864/0.07628, allocations: 67.89 kB / 400.1 MB, free: 11.93 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005778/0.07686, allocations: 0.6146 MB / 400.7 MB, free: 11.25 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002356/0.07711, allocations: 112 kB / 400.9 MB, free: 11.11 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001003/0.07722, allocations: 46.56 kB / 400.9 MB, free: 11.05 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.487e-05/0.07724, allocations: 0 / 400.9 MB, free: 11.05 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.72e-05/0.07726, allocations: 30.56 kB / 400.9 MB, free: 11.02 MB / 302.1 MB Notification: Performance of pre-optimization done (n=7): time 8.72e-07/0.07727, allocations: 4 kB / 400.9 MB, free: 11.01 MB / 302.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003362/0.07761, allocations: 117.5 kB / 401 MB, free: 10.89 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.711e-05/0.07767, allocations: 114.8 kB / 401.2 MB, free: 10.75 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001054/0.07778, allocations: 142.4 kB / 401.3 MB, free: 10.61 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.41e-05/0.0778, allocations: 29.7 kB / 401.3 MB, free: 10.57 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.074e-05/0.07787, allocations: 128 kB / 401.5 MB, free: 10.44 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.021e-05/0.07789, allocations: 23.62 kB / 401.5 MB, free: 10.42 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.138e-05/0.07794, allocations: 25.7 kB / 401.5 MB, free: 10.39 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.122e-05/0.07804, allocations: 326.8 kB / 401.8 MB, free: 10.06 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.172e-05/0.07812, allocations: 23.98 kB / 401.8 MB, free: 10.04 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000101/0.07823, allocations: 66 kB / 401.9 MB, free: 9.949 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001787/0.07842, allocations: 89.06 kB / 402 MB, free: 9.844 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.07843, allocations: 4.031 kB / 402 MB, free: 9.84 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002294/0.07866, allocations: 121.4 kB / 402.1 MB, free: 9.715 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.58e-05/0.07869, allocations: 4 kB / 402.1 MB, free: 9.711 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.671e-06/0.0787, allocations: 7.938 kB / 402.1 MB, free: 9.703 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.889e-06/0.07871, allocations: 0 / 402.1 MB, free: 9.703 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001266/0.07884, allocations: 23.98 kB / 402.2 MB, free: 9.68 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.775e-06/0.07886, allocations: 12.14 kB / 402.2 MB, free: 9.668 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.991e-05/0.07894, allocations: 15.83 kB / 402.2 MB, free: 9.652 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.072e-05/0.07896, allocations: 11.94 kB / 402.2 MB, free: 9.641 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 7.834e-05/0.07905, allocations: 130 kB / 402.3 MB, free: 9.504 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.324e-05/0.07908, allocations: 11.91 kB / 402.3 MB, free: 9.492 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.918e-05/0.07912, allocations: 16.23 kB / 402.3 MB, free: 9.477 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.854e-06/0.07913, allocations: 4 kB / 402.3 MB, free: 9.473 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.07913, allocations: 4 kB / 402.4 MB, free: 9.469 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.635e-06/0.07914, allocations: 0 / 402.4 MB, free: 9.469 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000189/0.07934, allocations: 213.5 kB / 402.6 MB, free: 9.211 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.07934, allocations: 0 / 402.6 MB, free: 9.211 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00011/0.07946, allocations: 15.98 kB / 402.6 MB, free: 9.195 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.774e-06/0.07947, allocations: 4 kB / 402.6 MB, free: 9.191 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.417e-06/0.07948, allocations: 0 / 402.6 MB, free: 9.191 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.07949, allocations: 0 / 402.6 MB, free: 9.191 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.0795, allocations: 4 kB / 402.6 MB, free: 9.188 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000326/0.07983, allocations: 229 kB / 402.8 MB, free: 8.941 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.832e-05/0.07988, allocations: 88.98 kB / 402.9 MB, free: 8.836 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.02e-05/0.0799, allocations: 7.984 kB / 402.9 MB, free: 8.828 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.217e-05/0.08, allocations: 8 kB / 402.9 MB, free: 8.82 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.504e-05/0.08004, allocations: 3.984 kB / 402.9 MB, free: 8.816 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.101e-06/0.08005, allocations: 8.062 kB / 402.9 MB, free: 8.809 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.867e-05/0.08012, allocations: 111.3 kB / 403 MB, free: 8.699 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.08013, allocations: 0 / 403 MB, free: 8.699 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002265/0.08036, allocations: 15.91 kB / 403 MB, free: 8.684 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.0005274/0.08089, allocations: 0.7725 MB / 403.8 MB, free: 7.879 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002017/0.0811, allocations: 63.89 kB / 403.9 MB, free: 7.816 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.392e-06/0.08111, allocations: 0 / 403.9 MB, free: 7.816 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.844e-05/0.08121, allocations: 32.36 kB / 403.9 MB, free: 7.785 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003237/0.08154, allocations: 32.03 kB / 403.9 MB, free: 7.754 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001608/0.08316, allocations: 1.687 MB / 405.6 MB, free: 5.938 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002175/0.08339, allocations: 0.705 MB / 406.3 MB, free: 5.207 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.044e-05/0.08346, allocations: 16.8 kB / 406.4 MB, free: 5.191 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.289e-05/0.08352, allocations: 35.42 kB / 406.4 MB, free: 5.156 MB / 302.1 MB Notification: Performance of SimCode: time 3e-07/0.08353, allocations: 0 / 406.4 MB, free: 5.156 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01102/0.09455, allocations: 2.248 MB / 408.6 MB, free: 2.945 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001898/0.09477, allocations: 183.5 kB / 408.8 MB, free: 2.691 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.598/1.692, allocations: 0 / 408.8 MB, free: 2.691 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