Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_symb_jac_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: translateModel(PowerGrids.Controls.Test.TestDerivativeLag,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="derivativeLag.T1|derivativeLag.Td|derivativeLag.feedback.y|derivativeLag.gain.k|derivativeLag.gain.u|derivativeLag.gain.y|derivativeLag.initType|derivativeLag.integrator.initType|derivativeLag.integrator.k|derivativeLag.integrator.u|derivativeLag.integrator.y|derivativeLag.integrator.y_start|derivativeLag.noDynamics|derivativeLag.u|derivativeLag.y|derivativeLag.yStart|derivativeLagAnalyticSolution.y|derivativeLagNoDynamics.T1|derivativeLagNoDynamics.Td|derivativeLagNoDynamics.feedback.y|derivativeLagNoDynamics.gain.k|derivativeLagNoDynamics.gain.u|derivativeLagNoDynamics.gain.y|derivativeLagNoDynamics.initType|derivativeLagNoDynamics.noDynamics|derivativeLagNoDynamics.u|derivativeLagNoDynamics.y|derivativeLagNoDynamics.yStart|derivativeLagNoDynamics.zero.y|derivativeLagNoDynamicsAnalyticSolution.y|step.height|step.offset|step.startTime|step.y|time",fileNamePrefix="PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDerivativeLag") translateModel(PowerGrids.Controls.Test.TestDerivativeLag,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="derivativeLag.T1|derivativeLag.Td|derivativeLag.feedback.y|derivativeLag.gain.k|derivativeLag.gain.u|derivativeLag.gain.y|derivativeLag.initType|derivativeLag.integrator.initType|derivativeLag.integrator.k|derivativeLag.integrator.u|derivativeLag.integrator.y|derivativeLag.integrator.y_start|derivativeLag.noDynamics|derivativeLag.u|derivativeLag.y|derivativeLag.yStart|derivativeLagAnalyticSolution.y|derivativeLagNoDynamics.T1|derivativeLagNoDynamics.Td|derivativeLagNoDynamics.feedback.y|derivativeLagNoDynamics.gain.k|derivativeLagNoDynamics.gain.u|derivativeLagNoDynamics.gain.y|derivativeLagNoDynamics.initType|derivativeLagNoDynamics.noDynamics|derivativeLagNoDynamics.u|derivativeLagNoDynamics.y|derivativeLagNoDynamics.yStart|derivativeLagNoDynamics.zero.y|derivativeLagNoDynamicsAnalyticSolution.y|step.height|step.offset|step.startTime|step.y|time",fileNamePrefix="PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDerivativeLag") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001322/0.001322, allocations: 108.7 kB / 15.99 MB, free: 6.34 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.001202/0.001202, allocations: 191.3 kB / 16.91 MB, free: 6.191 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.68/1.68, allocations: 205.1 MB / 222.8 MB, free: 4.703 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06505/0.06505, allocations: 14.16 MB / 284.3 MB, free: 7.246 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.001677/0.001677, allocations: 67.91 kB / 347.3 MB, free: 17.66 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1093/0.111, allocations: 50.13 MB / 397.4 MB, free: 15.49 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDerivativeLag): time 0.005014/0.116, allocations: 1.883 MB / 399.3 MB, free: 13.59 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006881/0.1168, allocations: 159.5 kB / 399.5 MB, free: 13.43 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002034/0.117, allocations: 7.938 kB / 399.5 MB, free: 13.43 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002095/0.1172, allocations: 11.86 kB / 399.5 MB, free: 13.41 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000224/0.1175, allocations: 19.86 kB / 399.5 MB, free: 13.39 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001501/0.1177, allocations: 35.97 kB / 399.5 MB, free: 13.36 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002554/0.1179, allocations: 123.6 kB / 399.7 MB, free: 13.24 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001954/0.1181, allocations: 65.19 kB / 399.7 MB, free: 13.18 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.613e-05/0.1182, allocations: 47.78 kB / 399.8 MB, free: 13.13 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000138/0.1184, allocations: 39.78 kB / 399.8 MB, free: 13.09 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.979e-05/0.1184, allocations: 12 kB / 399.8 MB, free: 13.08 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.278e-05/0.1185, allocations: 11.94 kB / 399.8 MB, free: 13.07 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.236e-05/0.1185, allocations: 23.86 kB / 399.9 MB, free: 13.04 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.012e-05/0.1186, allocations: 43.73 kB / 399.9 MB, free: 13 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002246/0.1188, allocations: 107.6 kB / 400 MB, free: 12.89 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.852e-06/0.1188, allocations: 0 / 400 MB, free: 12.89 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.078e-06/0.1188, allocations: 4 kB / 400 MB, free: 12.89 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.658e-06/0.1188, allocations: 0 / 400 MB, free: 12.89 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.0006938/0.1195, allocations: 419.2 kB / 400.4 MB, free: 12.43 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.605e-05/0.1196, allocations: 8.031 kB / 400.4 MB, free: 12.42 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.888e-05/0.1197, allocations: 16.75 kB / 400.4 MB, free: 12.41 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003173/0.12, allocations: 219 kB / 400.6 MB, free: 12.16 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.207e-05/0.1201, allocations: 8.562 kB / 400.7 MB, free: 12.15 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.792e-05/0.1201, allocations: 8.375 kB / 400.7 MB, free: 12.14 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003568/0.1205, allocations: 142.2 kB / 400.8 MB, free: 11.98 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.315e-05/0.1205, allocations: 0 / 400.8 MB, free: 11.98 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.626e-05/0.1205, allocations: 0 / 400.8 MB, free: 11.98 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.089e-05/0.1205, allocations: 4 kB / 400.8 MB, free: 11.98 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002394/0.1208, allocations: 71.89 kB / 400.9 MB, free: 11.91 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008401/0.1216, allocations: 0.603 MB / 401.5 MB, free: 11.23 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003128/0.1219, allocations: 111.8 kB / 401.6 MB, free: 11.09 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001118/0.1221, allocations: 50.67 kB / 401.6 MB, free: 11.04 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.293e-05/0.1221, allocations: 4 kB / 401.6 MB, free: 11.03 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.769e-05/0.1222, allocations: 34.56 kB / 401.7 MB, free: 10.99 MB / 302.1 MB Notification: Performance of pre-optimization done (n=7): time 1.543e-06/0.1222, allocations: 3.938 kB / 401.7 MB, free: 10.98 MB / 302.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004031/0.1226, allocations: 113.6 kB / 401.8 MB, free: 10.87 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.199e-05/0.1227, allocations: 115 kB / 401.9 MB, free: 10.73 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001391/0.1228, allocations: 151.2 kB / 402.1 MB, free: 10.57 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.472e-05/0.1229, allocations: 29.7 kB / 402.1 MB, free: 10.54 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.577e-05/0.1229, allocations: 111.9 kB / 402.2 MB, free: 10.43 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.191e-05/0.123, allocations: 31.55 kB / 402.2 MB, free: 10.39 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.07e-05/0.123, allocations: 25.72 kB / 402.2 MB, free: 10.36 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001401/0.1232, allocations: 322.8 kB / 402.6 MB, free: 10.04 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.007e-05/0.1233, allocations: 23.98 kB / 402.6 MB, free: 10.02 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000116/0.1234, allocations: 69.92 kB / 402.7 MB, free: 9.926 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002107/0.1236, allocations: 105 kB / 402.8 MB, free: 9.805 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.567e-06/0.1236, allocations: 0 / 402.8 MB, free: 9.805 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002669/0.1239, allocations: 121.4 kB / 402.9 MB, free: 9.68 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.055e-05/0.1239, allocations: 8.156 kB / 402.9 MB, free: 9.672 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.244e-06/0.124, allocations: 7.938 kB / 402.9 MB, free: 9.664 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.509e-05/0.124, allocations: 0 / 402.9 MB, free: 9.664 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001391/0.1241, allocations: 27.98 kB / 402.9 MB, free: 9.637 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.063e-05/0.1241, allocations: 4 kB / 402.9 MB, free: 9.633 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.206e-05/0.1242, allocations: 11.92 kB / 402.9 MB, free: 9.621 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.459e-05/0.1243, allocations: 7.984 kB / 402.9 MB, free: 9.613 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 0.0001087/0.1244, allocations: 129.7 kB / 403.1 MB, free: 9.477 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.747e-05/0.1244, allocations: 19.81 kB / 403.1 MB, free: 9.457 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.336e-05/0.1245, allocations: 8.312 kB / 403.1 MB, free: 9.449 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.905e-06/0.1245, allocations: 4 kB / 403.1 MB, free: 9.445 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.1245, allocations: 0 / 403.1 MB, free: 9.445 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.711e-06/0.1245, allocations: 3.984 kB / 403.1 MB, free: 9.441 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002269/0.1247, allocations: 209.9 kB / 403.3 MB, free: 9.188 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.639e-06/0.1247, allocations: 4 kB / 403.3 MB, free: 9.184 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001129/0.1249, allocations: 19.92 kB / 403.3 MB, free: 9.164 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.016e-06/0.1249, allocations: 4 kB / 403.3 MB, free: 9.16 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.286e-05/0.1249, allocations: 4 kB / 403.3 MB, free: 9.156 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-06/0.1249, allocations: 4 kB / 403.3 MB, free: 9.152 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.1249, allocations: 4 kB / 403.3 MB, free: 9.148 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001502/0.1264, allocations: 1.36 MB / 404.7 MB, free: 7.641 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.214e-05/0.1265, allocations: 85 kB / 404.8 MB, free: 7.539 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.852e-05/0.1265, allocations: 12.03 kB / 404.8 MB, free: 7.527 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.38e-05/0.1266, allocations: 8 kB / 404.8 MB, free: 7.52 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.58e-05/0.1267, allocations: 7.922 kB / 404.8 MB, free: 7.512 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.202e-06/0.1267, allocations: 4 kB / 404.8 MB, free: 7.508 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.046e-05/0.1268, allocations: 115.2 kB / 404.9 MB, free: 7.395 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.1268, allocations: 0 / 404.9 MB, free: 7.395 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000349/0.1272, allocations: 23.84 kB / 405 MB, free: 7.371 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.0001347/0.1273, allocations: 103.2 kB / 405.1 MB, free: 7.262 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002784/0.1276, allocations: 67.91 kB / 405.1 MB, free: 7.195 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.1276, allocations: 0 / 405.1 MB, free: 7.195 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.461e-05/0.1277, allocations: 27.92 kB / 405.2 MB, free: 7.168 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004488/0.1282, allocations: 31.48 kB / 405.2 MB, free: 7.141 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006793/0.1289, allocations: 396.8 kB / 405.6 MB, free: 6.707 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002821/0.1292, allocations: 0.7118 MB / 406.3 MB, free: 5.969 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.753e-05/0.1292, allocations: 16.66 kB / 406.3 MB, free: 5.953 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.554e-05/0.1293, allocations: 19.44 kB / 406.3 MB, free: 5.934 MB / 302.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1293, allocations: 0 / 406.3 MB, free: 5.934 MB / 302.1 MB Notification: Performance of Templates: time 0.003652/0.1329, allocations: 0.9615 MB / 407.3 MB, free: 4.973 MB / 302.1 MB make -j1 -f PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDerivativeLag.makefile (rm -f PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDerivativeLag.pipe ; mkfifo PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDerivativeLag.pipe ; head -c 1048576 < PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDerivativeLag.pipe >> ../files/PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDerivativeLag.sim & ./PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDerivativeLag -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDerivativeLag.pipe 2>&1) diffSimulationResults("PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDerivativeLag_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Controls.Test.TestDerivativeLag_res.mat","../files/PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDerivativeLag.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches