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.008042/0.008042, allocations: 100.9 kB / 15.73 MB, free: 6.059 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.001643/0.001643, allocations: 195.4 kB / 16.67 MB, free: 5.973 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.521/1.521, allocations: 222.9 MB / 240.4 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.08022/0.08022, allocations: 16.68 MB / 307.2 MB, free: 14.48 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001901/0.001901, allocations: 63.91 kB / 428.6 MB, free: 8.57 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1115/0.1134, allocations: 53.56 MB / 482.1 MB, free: 2.957 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDerivativeLag): time 0.003409/0.1169, allocations: 1.818 MB / 483.9 MB, free: 1.129 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005046/0.1174, allocations: 167.5 kB / 484.1 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001154/0.1175, allocations: 4 kB / 484.1 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001592/0.1177, allocations: 23.73 kB / 484.1 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001665/0.1179, allocations: 27.78 kB / 484.2 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001131/0.118, allocations: 39.95 kB / 484.2 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000205/0.1182, allocations: 123.6 kB / 484.3 MB, free: 0.75 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001696/0.1184, allocations: 53.33 kB / 484.4 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.25e-05/0.1185, allocations: 47.78 kB / 484.4 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001262/0.1186, allocations: 47.77 kB / 484.5 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.05e-05/0.1186, allocations: 8 kB / 484.5 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.099e-05/0.1187, allocations: 8 kB / 484.5 MB, free: 0.582 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.609e-05/0.1187, allocations: 23.88 kB / 484.5 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.22e-05/0.1188, allocations: 51.67 kB / 484.6 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001924/0.119, allocations: 103.5 kB / 484.7 MB, free: 416 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.105e-05/0.119, allocations: 4 kB / 484.7 MB, free: 412 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.913e-06/0.119, allocations: 3.938 kB / 484.7 MB, free: 408 kB / 350.1 MB Notification: Performance of Transformations before backend: time 5.671e-06/0.119, allocations: 0 / 484.7 MB, free: 408 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.0006723/0.1197, allocations: 431 kB / 485.1 MB, free: 15.93 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.739e-05/0.1197, allocations: 8.031 kB / 485.1 MB, free: 15.92 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.766e-05/0.1198, allocations: 16.84 kB / 485.1 MB, free: 15.9 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003231/0.1201, allocations: 226.5 kB / 485.3 MB, free: 15.64 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.617e-05/0.1201, allocations: 4.562 kB / 485.3 MB, free: 15.64 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.26e-05/0.1202, allocations: 12.38 kB / 485.3 MB, free: 15.63 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002893/0.1205, allocations: 138.2 kB / 485.5 MB, free: 15.47 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.779e-06/0.1205, allocations: 0 / 485.5 MB, free: 15.47 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.996e-05/0.1205, allocations: 8 kB / 485.5 MB, free: 15.46 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.36e-06/0.1205, allocations: 0 / 485.5 MB, free: 15.46 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002127/0.1207, allocations: 67.89 kB / 485.6 MB, free: 15.4 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008097/0.1216, allocations: 0.5991 MB / 486.2 MB, free: 14.73 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003015/0.1219, allocations: 116 kB / 486.3 MB, free: 14.59 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001126/0.122, allocations: 42.62 kB / 486.3 MB, free: 14.54 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.876e-05/0.122, allocations: 0 / 486.3 MB, free: 14.54 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.955e-05/0.1221, allocations: 34.55 kB / 486.3 MB, free: 14.49 MB / 366.1 MB Notification: Performance of pre-optimization done (n=7): time 1.032e-06/0.1221, allocations: 4 kB / 486.4 MB, free: 14.49 MB / 366.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004158/0.1225, allocations: 125.4 kB / 486.5 MB, free: 14.36 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.003e-05/0.1226, allocations: 106.8 kB / 486.6 MB, free: 14.23 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001585/0.1228, allocations: 149.3 kB / 486.7 MB, free: 14.08 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.251e-05/0.1228, allocations: 29.7 kB / 486.8 MB, free: 14.04 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.591e-05/0.1229, allocations: 120.2 kB / 486.9 MB, free: 13.92 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.057e-05/0.123, allocations: 31.78 kB / 486.9 MB, free: 13.89 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.457e-05/0.123, allocations: 25.72 kB / 486.9 MB, free: 13.86 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001733/0.1232, allocations: 322.8 kB / 487.2 MB, free: 13.54 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.978e-05/0.1233, allocations: 19.98 kB / 487.3 MB, free: 13.52 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001317/0.1234, allocations: 73.92 kB / 487.3 MB, free: 13.42 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002271/0.1237, allocations: 101.2 kB / 487.4 MB, free: 13.3 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.57e-06/0.1237, allocations: 8.031 kB / 487.4 MB, free: 13.3 MB / 366.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002728/0.124, allocations: 117.5 kB / 487.6 MB, free: 13.18 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.783e-05/0.124, allocations: 7.984 kB / 487.6 MB, free: 13.17 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.995e-06/0.124, allocations: 4 kB / 487.6 MB, free: 13.16 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.613e-05/0.124, allocations: 0 / 487.6 MB, free: 13.16 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001436/0.1242, allocations: 23.98 kB / 487.6 MB, free: 13.14 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.001e-05/0.1242, allocations: 8.156 kB / 487.6 MB, free: 13.13 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.338e-05/0.1243, allocations: 11.94 kB / 487.6 MB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.776e-05/0.1243, allocations: 7.984 kB / 487.6 MB, free: 13.11 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.0001273/0.1244, allocations: 129.7 kB / 487.7 MB, free: 12.98 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.648e-05/0.1245, allocations: 11.91 kB / 487.8 MB, free: 12.96 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.636e-05/0.1245, allocations: 12.31 kB / 487.8 MB, free: 12.95 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.414e-06/0.1245, allocations: 0 / 487.8 MB, free: 12.95 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.1245, allocations: 0 / 487.8 MB, free: 12.95 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.997e-06/0.1245, allocations: 0 / 487.8 MB, free: 12.95 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002652/0.1248, allocations: 217.5 kB / 488 MB, free: 12.69 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.1248, allocations: 0 / 488 MB, free: 12.69 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001165/0.125, allocations: 19.98 kB / 488 MB, free: 12.67 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.125, allocations: 0 / 488 MB, free: 12.67 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.045e-05/0.125, allocations: 0 / 488 MB, free: 12.67 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.015e-05/0.125, allocations: 4 kB / 488 MB, free: 12.66 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.125, allocations: 3.938 kB / 488 MB, free: 12.66 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000437/0.1254, allocations: 233.1 kB / 488.2 MB, free: 12.41 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.457e-05/0.1255, allocations: 85.02 kB / 488.3 MB, free: 12.31 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.474e-05/0.1256, allocations: 8 kB / 488.3 MB, free: 12.3 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.482e-05/0.1257, allocations: 8.062 kB / 488.3 MB, free: 12.29 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.329e-05/0.1257, allocations: 3.984 kB / 488.3 MB, free: 12.29 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.35e-06/0.1257, allocations: 4 kB / 488.3 MB, free: 12.29 MB / 366.1 MB Notification: Performance of sorting global known variables: time 8.961e-05/0.1258, allocations: 119.3 kB / 488.5 MB, free: 12.17 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1258, allocations: 0 / 488.5 MB, free: 12.17 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002688/0.1261, allocations: 19.94 kB / 488.5 MB, free: 12.15 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 0.0001122/0.1262, allocations: 99.19 kB / 488.6 MB, free: 12.04 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002725/0.1265, allocations: 75.77 kB / 488.6 MB, free: 11.97 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.909e-06/0.1265, allocations: 320 / 488.6 MB, free: 11.97 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001083/0.1266, allocations: 35.86 kB / 488.7 MB, free: 11.93 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003438/0.127, allocations: 23.98 kB / 488.7 MB, free: 11.91 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005747/0.1276, allocations: 241.4 kB / 488.9 MB, free: 11.64 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000379/0.128, allocations: 0.7081 MB / 489.6 MB, free: 10.91 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.236e-05/0.128, allocations: 4.562 kB / 489.7 MB, free: 10.91 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.769e-05/0.1281, allocations: 15.44 kB / 489.7 MB, free: 10.89 MB / 366.1 MB Notification: Performance of SimCode: time 2.284e-06/0.1281, allocations: 4 kB / 489.7 MB, free: 10.89 MB / 366.1 MB Notification: Performance of Templates: time 0.003887/0.132, allocations: 1.021 MB / 490.7 MB, free: 9.871 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=50 -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