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.001539/0.001539, allocations: 108 kB / 15.61 MB, free: 152 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.002032/0.002032, allocations: 196.7 kB / 16.53 MB, free: 6.699 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.246/1.246, allocations: 205.1 MB / 222.4 MB, free: 4.605 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.05771/0.05771, allocations: 14.16 MB / 283.9 MB, free: 7.094 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.00126/0.00126, allocations: 71.89 kB / 347.3 MB, free: 17.19 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.071/0.07227, allocations: 50.13 MB / 397.4 MB, free: 15.03 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDerivativeLag): time 0.002908/0.07522, allocations: 1.822 MB / 399.2 MB, free: 13.19 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003688/0.0756, allocations: 167.5 kB / 399.4 MB, free: 13.02 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.133e-05/0.07571, allocations: 11.88 kB / 399.4 MB, free: 13.01 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000128/0.07585, allocations: 19.8 kB / 399.4 MB, free: 12.99 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001248/0.07598, allocations: 27.8 kB / 399.4 MB, free: 12.96 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 9.816e-05/0.07609, allocations: 43.88 kB / 399.5 MB, free: 12.92 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001583/0.07625, allocations: 123.7 kB / 399.6 MB, free: 12.8 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001313/0.07639, allocations: 53.34 kB / 399.7 MB, free: 12.75 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.644e-05/0.07646, allocations: 43.8 kB / 399.7 MB, free: 12.71 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.44e-05/0.07656, allocations: 51.7 kB / 399.8 MB, free: 12.66 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.258e-05/0.07659, allocations: 8 kB / 399.8 MB, free: 12.65 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.852e-05/0.07661, allocations: 8 kB / 399.8 MB, free: 12.64 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.966e-05/0.07665, allocations: 23.86 kB / 399.8 MB, free: 12.62 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.839e-05/0.0767, allocations: 47.73 kB / 399.8 MB, free: 12.57 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001242/0.07683, allocations: 99.62 kB / 399.9 MB, free: 12.47 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.685e-06/0.07684, allocations: 0 / 399.9 MB, free: 12.47 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.07685, allocations: 8 kB / 399.9 MB, free: 12.46 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.619e-06/0.07686, allocations: 0 / 399.9 MB, free: 12.46 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.0004783/0.07734, allocations: 415.2 kB / 400.4 MB, free: 12.01 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.33e-05/0.07739, allocations: 8.031 kB / 400.4 MB, free: 12 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.081e-05/0.07743, allocations: 50.66 kB / 400.4 MB, free: 11.94 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.492e-05/0.07748, allocations: 16.75 kB / 400.4 MB, free: 11.93 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000224/0.0777, allocations: 219.2 kB / 400.6 MB, free: 11.68 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.468e-05/0.07773, allocations: 4.562 kB / 400.6 MB, free: 11.67 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.707e-05/0.07776, allocations: 16.38 kB / 400.7 MB, free: 11.66 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002338/0.078, allocations: 134 kB / 400.8 MB, free: 11.5 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.482e-06/0.07802, allocations: 0 / 400.8 MB, free: 11.5 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.061e-05/0.07803, allocations: 4 kB / 400.8 MB, free: 11.5 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.29e-06/0.07804, allocations: 4 kB / 400.8 MB, free: 11.5 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001724/0.07822, allocations: 71.89 kB / 400.9 MB, free: 11.43 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000543/0.07877, allocations: 0.599 MB / 401.5 MB, free: 10.75 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002209/0.079, allocations: 108 kB / 401.6 MB, free: 10.62 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.698e-05/0.07911, allocations: 50.61 kB / 401.6 MB, free: 10.56 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.236e-05/0.07913, allocations: 3.938 kB / 401.6 MB, free: 10.56 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.533e-05/0.07915, allocations: 30.56 kB / 401.7 MB, free: 10.52 MB / 302.1 MB Notification: Performance of pre-optimization done (n=7): time 9.72e-07/0.07915, allocations: 0 / 401.7 MB, free: 10.52 MB / 302.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003218/0.07948, allocations: 117.8 kB / 401.8 MB, free: 10.4 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.091e-05/0.07953, allocations: 114.8 kB / 401.9 MB, free: 10.26 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001037/0.07964, allocations: 151.2 kB / 402 MB, free: 10.11 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.369e-05/0.07966, allocations: 29.7 kB / 402.1 MB, free: 10.07 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.483e-05/0.07972, allocations: 115.8 kB / 402.2 MB, free: 9.953 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.078e-05/0.07975, allocations: 31.59 kB / 402.2 MB, free: 9.922 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.802e-05/0.07979, allocations: 21.72 kB / 402.2 MB, free: 9.895 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.661e-05/0.07988, allocations: 330.8 kB / 402.5 MB, free: 9.562 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.059e-05/0.07997, allocations: 27.92 kB / 402.6 MB, free: 9.535 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.486e-05/0.08007, allocations: 69.92 kB / 402.6 MB, free: 9.445 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001729/0.08025, allocations: 97.03 kB / 402.7 MB, free: 9.332 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.08026, allocations: 4 kB / 402.7 MB, free: 9.328 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002268/0.08049, allocations: 121.8 kB / 402.9 MB, free: 9.203 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.869e-06/0.08051, allocations: 4 kB / 402.9 MB, free: 9.199 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.891e-06/0.08052, allocations: 8 kB / 402.9 MB, free: 9.191 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.077e-06/0.08053, allocations: 0 / 402.9 MB, free: 9.191 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001229/0.08066, allocations: 23.98 kB / 402.9 MB, free: 9.168 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.751e-06/0.08067, allocations: 4 kB / 402.9 MB, free: 9.164 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.495e-05/0.08075, allocations: 19.83 kB / 402.9 MB, free: 9.145 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.015e-05/0.08077, allocations: 4 kB / 402.9 MB, free: 9.141 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.53e-05/0.08085, allocations: 129.8 kB / 403.1 MB, free: 9.004 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.083e-05/0.08089, allocations: 11.91 kB / 403.1 MB, free: 8.992 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.788e-05/0.08092, allocations: 20.28 kB / 403.1 MB, free: 8.973 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.443e-06/0.08093, allocations: 0 / 403.1 MB, free: 8.973 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.915e-06/0.08094, allocations: 0 / 403.1 MB, free: 8.973 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.08094, allocations: 0 / 403.1 MB, free: 8.973 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000179/0.08113, allocations: 209.5 kB / 403.3 MB, free: 8.719 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.08113, allocations: 0 / 403.3 MB, free: 8.719 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001079/0.08125, allocations: 19.98 kB / 403.3 MB, free: 8.699 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.08126, allocations: 0 / 403.3 MB, free: 8.699 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.135e-06/0.08127, allocations: 4 kB / 403.3 MB, free: 8.695 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.412e-06/0.08128, allocations: 0 / 403.3 MB, free: 8.695 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.08128, allocations: 7.938 kB / 403.3 MB, free: 8.688 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003088/0.08159, allocations: 225.1 kB / 403.5 MB, free: 8.445 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.065e-05/0.08165, allocations: 93.02 kB / 403.6 MB, free: 8.336 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.919e-05/0.08167, allocations: 8 kB / 403.6 MB, free: 8.328 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.94e-05/0.08177, allocations: 7.984 kB / 403.6 MB, free: 8.32 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.401e-05/0.08181, allocations: 0 / 403.6 MB, free: 8.32 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.112e-06/0.08182, allocations: 4 kB / 403.6 MB, free: 8.316 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.66e-05/0.08189, allocations: 115.2 kB / 403.8 MB, free: 8.203 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.08189, allocations: 0 / 403.8 MB, free: 8.203 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002269/0.08213, allocations: 15.91 kB / 403.8 MB, free: 8.188 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.0004973/0.08263, allocations: 0.7687 MB / 404.5 MB, free: 7.387 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002041/0.08284, allocations: 71.89 kB / 404.6 MB, free: 7.316 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.303e-06/0.08285, allocations: 0 / 404.6 MB, free: 7.316 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.416e-05/0.08294, allocations: 27.98 kB / 404.6 MB, free: 7.289 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003052/0.08325, allocations: 32.17 kB / 404.7 MB, free: 7.258 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001506/0.08477, allocations: 1.667 MB / 406.3 MB, free: 5.465 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002051/0.08498, allocations: 0.7039 MB / 407 MB, free: 4.734 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.722e-05/0.08505, allocations: 16.41 kB / 407.1 MB, free: 4.719 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.099e-05/0.0851, allocations: 35.42 kB / 407.1 MB, free: 4.684 MB / 302.1 MB Notification: Performance of SimCode: time 2.1e-07/0.08511, allocations: 0 / 407.1 MB, free: 4.684 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.804/1.889, allocations: 2.437 MB / 409.5 MB, free: 2.258 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.01/11.9, allocations: 15.47 kB / 409.5 MB, free: 2.246 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","/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