Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerGrids_dev_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo", uses=false) Using package PowerGrids with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_dev_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_dev_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.001296/0.001296, allocations: 106.7 kB / 16.41 MB, free: 6.465 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.001284/0.001284, allocations: 187 kB / 17.34 MB, free: 5.723 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.38/1.38, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.07546/0.07546, allocations: 16.77 MB / 308 MB, free: 14.4 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001239/0.001239, allocations: 63.91 kB / 429.3 MB, free: 8.465 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1131/0.1144, allocations: 53.57 MB / 482.9 MB, free: 2.844 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDerivativeLag): time 0.003438/0.1179, allocations: 1.818 MB / 484.7 MB, free: 1.016 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005736/0.1185, allocations: 175.4 kB / 484.9 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000171/0.1187, allocations: 7.938 kB / 484.9 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001785/0.1189, allocations: 15.8 kB / 484.9 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002022/0.1191, allocations: 27.8 kB / 485 MB, free: 0.793 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001412/0.1192, allocations: 43.89 kB / 485 MB, free: 0.75 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002307/0.1195, allocations: 127.7 kB / 485.1 MB, free: 0.625 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001686/0.1197, allocations: 45.33 kB / 485.2 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.778e-05/0.1197, allocations: 55.72 kB / 485.2 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001074/0.1199, allocations: 39.78 kB / 485.3 MB, free: 492 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.44e-05/0.1199, allocations: 8 kB / 485.3 MB, free: 484 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.869e-05/0.1199, allocations: 16 kB / 485.3 MB, free: 468 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.58e-05/0.1199, allocations: 15.92 kB / 485.3 MB, free: 452 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.005e-05/0.12, allocations: 59.66 kB / 485.4 MB, free: 392 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001694/0.1202, allocations: 107.6 kB / 485.5 MB, free: 284 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.087e-06/0.1202, allocations: 0 / 485.5 MB, free: 284 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1202, allocations: 0 / 485.5 MB, free: 284 kB / 350.1 MB Notification: Performance of Transformations before backend: time 5.671e-06/0.1202, allocations: 0 / 485.5 MB, free: 284 kB / 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.0006051/0.1208, allocations: 415.2 kB / 485.9 MB, free: 15.82 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.986e-05/0.1209, allocations: 15.97 kB / 485.9 MB, free: 15.8 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.195e-05/0.1209, allocations: 16.84 kB / 485.9 MB, free: 15.79 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003319/0.1213, allocations: 223.9 kB / 486.1 MB, free: 15.53 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.856e-05/0.1213, allocations: 12.56 kB / 486.1 MB, free: 15.52 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.079e-05/0.1213, allocations: 8.359 kB / 486.1 MB, free: 15.51 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002791/0.1216, allocations: 144.4 kB / 486.3 MB, free: 15.35 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.247e-05/0.1216, allocations: 4 kB / 486.3 MB, free: 15.35 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.278e-05/0.1217, allocations: 0 / 486.3 MB, free: 15.35 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.034e-05/0.1217, allocations: 4 kB / 486.3 MB, free: 15.34 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001933/0.1219, allocations: 67.8 kB / 486.4 MB, free: 15.28 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007038/0.1226, allocations: 0.5914 MB / 486.9 MB, free: 14.61 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000286/0.1229, allocations: 119.8 kB / 487.1 MB, free: 14.47 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000107/0.123, allocations: 42.75 kB / 487.1 MB, free: 14.42 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.992e-05/0.123, allocations: 3.938 kB / 487.1 MB, free: 14.41 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.617e-05/0.1231, allocations: 38.56 kB / 487.1 MB, free: 14.37 MB / 366.1 MB Notification: Performance of pre-optimization done (n=7): time 1.303e-06/0.1231, allocations: 0 / 487.1 MB, free: 14.37 MB / 366.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003951/0.1235, allocations: 117.6 kB / 487.3 MB, free: 14.25 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.467e-05/0.1235, allocations: 102.8 kB / 487.4 MB, free: 14.12 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001391/0.1237, allocations: 157.3 kB / 487.5 MB, free: 13.96 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.701e-05/0.1237, allocations: 29.64 kB / 487.5 MB, free: 13.93 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.513e-05/0.1238, allocations: 123.7 kB / 487.7 MB, free: 13.8 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.48e-05/0.1238, allocations: 23.7 kB / 487.7 MB, free: 13.78 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.001e-05/0.1239, allocations: 29.97 kB / 487.7 MB, free: 13.74 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001083/0.124, allocations: 322.8 kB / 488 MB, free: 13.42 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.798e-05/0.1241, allocations: 19.98 kB / 488 MB, free: 13.4 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001207/0.1242, allocations: 73.97 kB / 488.1 MB, free: 13.3 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001875/0.1244, allocations: 97.05 kB / 488.2 MB, free: 13.19 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.347e-06/0.1244, allocations: 0 / 488.2 MB, free: 13.19 MB / 366.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002502/0.1247, allocations: 125.3 kB / 488.3 MB, free: 13.06 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.065e-05/0.1247, allocations: 8 kB / 488.3 MB, free: 13.05 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.222e-06/0.1247, allocations: 0 / 488.3 MB, free: 13.05 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.7e-05/0.1247, allocations: 4 kB / 488.3 MB, free: 13.05 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000142/0.1249, allocations: 31.91 kB / 488.4 MB, free: 13.02 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.505e-06/0.1249, allocations: 4 kB / 488.4 MB, free: 13.02 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.138e-05/0.125, allocations: 8.094 kB / 488.4 MB, free: 13.01 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.182e-05/0.125, allocations: 8 kB / 488.4 MB, free: 13 MB / 366.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.0001048/0.1251, allocations: 129.8 kB / 488.5 MB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.424e-05/0.1252, allocations: 11.84 kB / 488.5 MB, free: 12.85 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.843e-05/0.1252, allocations: 16.31 kB / 488.6 MB, free: 12.83 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.714e-06/0.1252, allocations: 0 / 488.6 MB, free: 12.83 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.568e-06/0.1252, allocations: 0 / 488.6 MB, free: 12.83 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.223e-06/0.1252, allocations: 4.312 kB / 488.6 MB, free: 12.83 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000214/0.1255, allocations: 205.5 kB / 488.8 MB, free: 12.58 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.088e-06/0.1255, allocations: 8 kB / 488.8 MB, free: 12.57 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001171/0.1256, allocations: 19.98 kB / 488.8 MB, free: 12.55 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.874e-06/0.1256, allocations: 0 / 488.8 MB, free: 12.55 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.283e-05/0.1256, allocations: 4 kB / 488.8 MB, free: 12.55 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.258e-06/0.1256, allocations: 4 kB / 488.8 MB, free: 12.54 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.1256, allocations: 0 / 488.8 MB, free: 12.54 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003612/0.126, allocations: 233 kB / 489 MB, free: 12.29 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.881e-05/0.1261, allocations: 92.97 kB / 489.1 MB, free: 12.18 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.777e-05/0.1261, allocations: 0 / 489.1 MB, free: 12.18 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.614e-05/0.1262, allocations: 4 kB / 489.1 MB, free: 12.18 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.411e-05/0.1262, allocations: 11.98 kB / 489.1 MB, free: 12.17 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.679e-06/0.1263, allocations: 0 / 489.1 MB, free: 12.17 MB / 366.1 MB Notification: Performance of sorting global known variables: time 7.724e-05/0.1263, allocations: 111.2 kB / 489.2 MB, free: 12.06 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1263, allocations: 4.062 kB / 489.2 MB, free: 12.05 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000251/0.1266, allocations: 19.91 kB / 489.3 MB, free: 12.04 MB / 366.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 9.324e-05/0.1267, allocations: 95.47 kB / 489.4 MB, free: 11.93 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002415/0.1269, allocations: 75.77 kB / 489.4 MB, free: 11.86 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.127, allocations: 0 / 489.4 MB, free: 11.86 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 9.255e-05/0.1271, allocations: 36.34 kB / 489.5 MB, free: 11.82 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000322/0.1274, allocations: 27.92 kB / 489.5 MB, free: 11.8 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005346/0.1279, allocations: 271 kB / 489.8 MB, free: 11.5 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002457/0.1282, allocations: 0.7079 MB / 490.5 MB, free: 10.76 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.142e-05/0.1282, allocations: 19.42 kB / 490.5 MB, free: 10.74 MB / 366.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1282, allocations: 4 kB / 490.5 MB, free: 10.74 MB / 366.1 MB Notification: Performance of Templates: time 0.00303/0.1313, allocations: 1.417 MB / 491.9 MB, free: 9.32 MB / 366.1 MB make -j1 -f PowerGrids_dev_PowerGrids.Controls.Test.TestDerivativeLag.makefile (rm -f PowerGrids_dev_PowerGrids.Controls.Test.TestDerivativeLag.pipe ; mkfifo PowerGrids_dev_PowerGrids.Controls.Test.TestDerivativeLag.pipe ; head -c 1048576 < PowerGrids_dev_PowerGrids.Controls.Test.TestDerivativeLag.pipe >> ../files/PowerGrids_dev_PowerGrids.Controls.Test.TestDerivativeLag.sim & ./PowerGrids_dev_PowerGrids.Controls.Test.TestDerivativeLag -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerGrids_dev_PowerGrids.Controls.Test.TestDerivativeLag.pipe 2>&1) diffSimulationResults("PowerGrids_dev_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_dev_PowerGrids.Controls.Test.TestDerivativeLag.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches