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.000932/0.000932, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.005275/0.005275, allocations: 169 kB / 16.26 MB, free: 6.66 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.174/1.174, allocations: 205.4 MB / 222.5 MB, free: 5.562 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.0557/0.0557, allocations: 14.17 MB / 284.9 MB, free: 7.031 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.0004267/0.0004268, allocations: 19.98 kB / 348.9 MB, free: 17.38 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06849/0.06893, allocations: 51.11 MB / 400 MB, free: 14.23 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDerivativeLag): time 0.001837/0.07079, allocations: 1.54 MB / 401.6 MB, free: 12.67 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003695/0.07118, allocations: 159.5 kB / 401.7 MB, free: 12.51 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001065/0.07131, allocations: 3.938 kB / 401.7 MB, free: 12.51 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001106/0.07143, allocations: 15.86 kB / 401.7 MB, free: 12.49 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001196/0.07155, allocations: 27.84 kB / 401.8 MB, free: 12.46 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 8.744e-05/0.07165, allocations: 35.97 kB / 401.8 MB, free: 12.43 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001399/0.0718, allocations: 111.7 kB / 401.9 MB, free: 12.32 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001146/0.07192, allocations: 45.34 kB / 402 MB, free: 12.28 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.969e-05/0.07198, allocations: 39.73 kB / 402 MB, free: 12.24 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.522e-05/0.07206, allocations: 39.77 kB / 402 MB, free: 12.2 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.793e-05/0.07208, allocations: 4 kB / 402 MB, free: 12.2 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.098e-05/0.0721, allocations: 4 kB / 402 MB, free: 12.19 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.95e-05/0.07213, allocations: 11.88 kB / 402.1 MB, free: 12.18 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.223e-05/0.07219, allocations: 73.31 kB / 402.1 MB, free: 12.1 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001031/0.07229, allocations: 87.61 kB / 402.2 MB, free: 12.02 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.415e-06/0.0723, allocations: 0 / 402.2 MB, free: 12.02 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.07231, allocations: 0 / 402.2 MB, free: 12.02 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.446e-06/0.07232, allocations: 0 / 402.2 MB, free: 12.02 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.0004219/0.07275, allocations: 403.3 kB / 402.6 MB, free: 11.57 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.403e-05/0.07279, allocations: 12.03 kB / 402.6 MB, free: 11.56 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.103e-05/0.07283, allocations: 38.73 kB / 402.7 MB, free: 11.51 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.555e-05/0.07288, allocations: 16.75 kB / 402.7 MB, free: 11.5 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000208/0.07309, allocations: 224 kB / 402.9 MB, free: 11.24 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.353e-05/0.07311, allocations: 4.562 kB / 402.9 MB, free: 11.23 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.591e-05/0.07314, allocations: 12.38 kB / 402.9 MB, free: 11.22 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002368/0.07338, allocations: 142 kB / 403 MB, free: 11.06 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.313e-06/0.0734, allocations: 0 / 403 MB, free: 11.06 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.124e-05/0.07342, allocations: 4 kB / 403 MB, free: 11.06 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.55e-06/0.07343, allocations: 4 kB / 403.1 MB, free: 11.05 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001859/0.07362, allocations: 67.89 kB / 403.1 MB, free: 10.99 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006478/0.07428, allocations: 0.6031 MB / 403.7 MB, free: 10.31 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002354/0.07452, allocations: 112 kB / 403.8 MB, free: 10.18 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001052/0.07464, allocations: 46.56 kB / 403.9 MB, free: 10.12 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.451e-05/0.07466, allocations: 11.98 kB / 403.9 MB, free: 10.11 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.088e-05/0.07469, allocations: 34.55 kB / 403.9 MB, free: 10.07 MB / 302.1 MB Notification: Performance of pre-optimization done (n=7): time 1.082e-06/0.0747, allocations: 0 / 403.9 MB, free: 10.07 MB / 302.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003589/0.07506, allocations: 121.7 kB / 404 MB, free: 9.941 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.656e-05/0.07511, allocations: 110.8 kB / 404.2 MB, free: 9.809 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001109/0.07523, allocations: 154.3 kB / 404.3 MB, free: 9.648 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.007e-05/0.07526, allocations: 29.7 kB / 404.3 MB, free: 9.613 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.579e-05/0.07533, allocations: 119.7 kB / 404.4 MB, free: 9.492 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.049e-05/0.07536, allocations: 23.7 kB / 404.5 MB, free: 9.469 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.79e-05/0.07539, allocations: 17.72 kB / 404.5 MB, free: 9.445 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.964e-05/0.07549, allocations: 330.8 kB / 404.8 MB, free: 9.113 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.446e-05/0.07558, allocations: 19.98 kB / 404.8 MB, free: 9.094 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001573/0.07574, allocations: 73.92 kB / 404.9 MB, free: 9 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001855/0.07593, allocations: 97.36 kB / 405 MB, free: 8.887 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.07594, allocations: 0 / 405 MB, free: 8.887 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002534/0.0762, allocations: 129.4 kB / 405.1 MB, free: 8.754 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.182e-05/0.07622, allocations: 4 kB / 405.1 MB, free: 8.75 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.647e-06/0.07623, allocations: 0 / 405.1 MB, free: 8.75 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.528e-06/0.07625, allocations: 4 kB / 405.1 MB, free: 8.746 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001255/0.07638, allocations: 31.91 kB / 405.2 MB, free: 8.715 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.541e-06/0.07639, allocations: 8.156 kB / 405.2 MB, free: 8.707 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.586e-05/0.07647, allocations: 15.84 kB / 405.2 MB, free: 8.691 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.959e-06/0.07649, allocations: 7.938 kB / 405.2 MB, free: 8.684 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 8.277e-05/0.07658, allocations: 137.6 kB / 405.3 MB, free: 8.539 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.133e-05/0.07662, allocations: 11.89 kB / 405.3 MB, free: 8.527 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.737e-05/0.07665, allocations: 12.31 kB / 405.4 MB, free: 8.516 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.016e-06/0.07666, allocations: 3.984 kB / 405.4 MB, free: 8.512 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.106e-06/0.07666, allocations: 0 / 405.4 MB, free: 8.512 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/0.07667, allocations: 8 kB / 405.4 MB, free: 8.504 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001833/0.07686, allocations: 201.6 kB / 405.6 MB, free: 8.258 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.827e-06/0.07687, allocations: 7.984 kB / 405.6 MB, free: 8.25 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001019/0.07698, allocations: 12 kB / 405.6 MB, free: 8.238 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.647e-06/0.07699, allocations: 3.984 kB / 405.6 MB, free: 8.234 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.959e-06/0.07701, allocations: 4 kB / 405.6 MB, free: 8.23 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.725e-06/0.07701, allocations: 0 / 405.6 MB, free: 8.23 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.07702, allocations: 3.938 kB / 405.6 MB, free: 8.227 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003307/0.07736, allocations: 237 kB / 405.8 MB, free: 7.973 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.299e-05/0.07741, allocations: 96.88 kB / 405.9 MB, free: 7.859 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.808e-05/0.07743, allocations: 8 kB / 405.9 MB, free: 7.852 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.872e-05/0.07753, allocations: 8.062 kB / 405.9 MB, free: 7.844 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.122e-05/0.07756, allocations: 3.984 kB / 405.9 MB, free: 7.84 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.468e-06/0.07757, allocations: 4 kB / 405.9 MB, free: 7.836 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.775e-05/0.07765, allocations: 115.2 kB / 406.1 MB, free: 7.723 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.07765, allocations: 0 / 406.1 MB, free: 7.723 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002264/0.07788, allocations: 12 kB / 406.1 MB, free: 7.711 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.0005232/0.07841, allocations: 0.7766 MB / 406.8 MB, free: 6.902 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002052/0.07863, allocations: 71.97 kB / 406.9 MB, free: 6.832 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.684e-06/0.07864, allocations: 0 / 406.9 MB, free: 6.832 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.876e-05/0.07873, allocations: 31.92 kB / 406.9 MB, free: 6.801 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003116/0.07905, allocations: 27.97 kB / 407 MB, free: 6.773 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001601/0.08066, allocations: 1.7 MB / 408.7 MB, free: 4.949 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002172/0.08089, allocations: 0.7167 MB / 409.4 MB, free: 4.207 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.429e-05/0.08095, allocations: 8.5 kB / 409.4 MB, free: 4.195 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.475e-05/0.08101, allocations: 35.42 kB / 409.4 MB, free: 4.16 MB / 302.1 MB Notification: Performance of SimCode: time 3.1e-07/0.08102, allocations: 0 / 409.4 MB, free: 4.16 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01041/0.09143, allocations: 2.202 MB / 411.6 MB, free: 2.027 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001901/0.09164, allocations: 182.5 kB / 411.8 MB, free: 1.777 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.549/1.64, allocations: 0 / 411.8 MB, free: 1.777 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