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.001692/0.001692, allocations: 103.4 kB / 16.27 MB, free: 5.965 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.001666/0.001666, allocations: 189.8 kB / 17.2 MB, free: 5.59 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.435/1.435, allocations: 222.9 MB / 240.9 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.07925/0.07925, allocations: 16.77 MB / 307.8 MB, free: 14.48 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001402/0.001403, allocations: 66.42 kB / 374.5 MB, free: 48.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1143/0.1157, allocations: 53.58 MB / 428.1 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDerivativeLag): time 0.002683/0.1184, allocations: 1.816 MB / 429.9 MB, free: 8.711 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003397/0.1188, allocations: 167.4 kB / 430.1 MB, free: 8.547 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001114/0.1189, allocations: 4 kB / 430.1 MB, free: 8.543 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001455/0.119, allocations: 27.73 kB / 430.1 MB, free: 8.516 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001383/0.1192, allocations: 23.8 kB / 430.1 MB, free: 8.492 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 9.138e-05/0.1193, allocations: 35.95 kB / 430.1 MB, free: 8.457 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001474/0.1194, allocations: 131.6 kB / 430.3 MB, free: 8.328 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001383/0.1196, allocations: 57.28 kB / 430.3 MB, free: 8.27 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.844e-05/0.1196, allocations: 47.78 kB / 430.4 MB, free: 8.223 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.599e-05/0.1198, allocations: 39.78 kB / 430.4 MB, free: 8.184 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.588e-05/0.1198, allocations: 12 kB / 430.4 MB, free: 8.172 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.008e-05/0.1198, allocations: 12 kB / 430.4 MB, free: 8.16 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.129e-05/0.1199, allocations: 23.91 kB / 430.5 MB, free: 8.137 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.94e-05/0.1199, allocations: 55.61 kB / 430.5 MB, free: 8.082 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000159/0.1201, allocations: 99.86 kB / 430.6 MB, free: 7.984 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.578e-06/0.1201, allocations: 3.984 kB / 430.6 MB, free: 7.98 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.82e-07/0.1201, allocations: 3.938 kB / 430.6 MB, free: 7.977 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.52e-06/0.1201, allocations: 0 / 430.6 MB, free: 7.977 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.0004408/0.1206, allocations: 423.2 kB / 431 MB, free: 7.512 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.289e-05/0.1206, allocations: 8.031 kB / 431 MB, free: 7.504 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.026e-05/0.1207, allocations: 16.75 kB / 431.1 MB, free: 7.488 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002045/0.1209, allocations: 212 kB / 431.3 MB, free: 7.242 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.716e-05/0.1209, allocations: 12.56 kB / 431.3 MB, free: 7.23 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.986e-05/0.1209, allocations: 12.38 kB / 431.3 MB, free: 7.219 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002243/0.1212, allocations: 139.7 kB / 431.4 MB, free: 7.062 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.047e-06/0.1212, allocations: 0 / 431.4 MB, free: 7.062 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.33e-05/0.1212, allocations: 4 kB / 431.4 MB, free: 7.059 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.42e-06/0.1212, allocations: 4 kB / 431.4 MB, free: 7.055 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001733/0.1214, allocations: 67.89 kB / 431.5 MB, free: 6.988 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005288/0.1219, allocations: 0.5991 MB / 432.1 MB, free: 6.32 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002293/0.1222, allocations: 112 kB / 432.2 MB, free: 6.184 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.118e-05/0.1223, allocations: 42.55 kB / 432.3 MB, free: 6.133 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.095e-05/0.1223, allocations: 4 kB / 432.3 MB, free: 6.129 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.294e-05/0.1223, allocations: 38.5 kB / 432.3 MB, free: 6.082 MB / 302.1 MB Notification: Performance of pre-optimization done (n=7): time 1.142e-06/0.1223, allocations: 0 / 432.3 MB, free: 6.082 MB / 302.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003461/0.1227, allocations: 113.6 kB / 432.4 MB, free: 5.965 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.007e-05/0.1227, allocations: 106.8 kB / 432.5 MB, free: 5.836 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.939e-05/0.1228, allocations: 152.2 kB / 432.7 MB, free: 5.68 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.183e-05/0.1228, allocations: 29.95 kB / 432.7 MB, free: 5.645 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.604e-05/0.1229, allocations: 119.9 kB / 432.8 MB, free: 5.523 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.86e-05/0.1229, allocations: 35.56 kB / 432.8 MB, free: 5.488 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.025e-05/0.123, allocations: 25.62 kB / 432.9 MB, free: 5.457 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.022e-05/0.123, allocations: 330.8 kB / 433.2 MB, free: 5.125 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.297e-05/0.1231, allocations: 23.98 kB / 433.2 MB, free: 5.102 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.392e-05/0.1232, allocations: 69.98 kB / 433.3 MB, free: 5.012 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001651/0.1234, allocations: 93.05 kB / 433.4 MB, free: 4.902 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.1234, allocations: 0 / 433.4 MB, free: 4.902 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002197/0.1236, allocations: 121.4 kB / 433.5 MB, free: 4.777 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.291e-05/0.1236, allocations: 4 kB / 433.5 MB, free: 4.773 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-06/0.1236, allocations: 4 kB / 433.5 MB, free: 4.77 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.407e-05/0.1237, allocations: 0 / 433.5 MB, free: 4.77 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001294/0.1238, allocations: 36.38 kB / 433.5 MB, free: 4.734 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.863e-06/0.1238, allocations: 0 / 433.5 MB, free: 4.734 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.421e-05/0.1239, allocations: 11.94 kB / 433.5 MB, free: 4.723 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.109e-05/0.1239, allocations: 12 kB / 433.6 MB, free: 4.711 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.313e-05/0.124, allocations: 122.6 kB / 433.7 MB, free: 4.582 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.448e-05/0.124, allocations: 19.81 kB / 433.7 MB, free: 4.562 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.984e-05/0.1241, allocations: 8.312 kB / 433.7 MB, free: 4.551 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.475e-06/0.1241, allocations: 7.938 kB / 433.7 MB, free: 4.543 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.1241, allocations: 0 / 433.7 MB, free: 4.543 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.406e-06/0.1241, allocations: 7.938 kB / 433.7 MB, free: 4.535 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001701/0.1243, allocations: 209.5 kB / 433.9 MB, free: 4.281 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.1243, allocations: 0 / 433.9 MB, free: 4.281 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001077/0.1244, allocations: 15.98 kB / 433.9 MB, free: 4.266 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.785e-06/0.1244, allocations: 4 kB / 433.9 MB, free: 4.262 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.107e-06/0.1244, allocations: 0 / 433.9 MB, free: 4.262 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.352e-06/0.1244, allocations: 0 / 433.9 MB, free: 4.262 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.1244, allocations: 4 kB / 433.9 MB, free: 4.258 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003129/0.1247, allocations: 233 kB / 434.2 MB, free: 4.008 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.762e-05/0.1248, allocations: 85.05 kB / 434.3 MB, free: 3.906 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.049e-05/0.1248, allocations: 4 kB / 434.3 MB, free: 3.902 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.268e-05/0.1249, allocations: 4 kB / 434.3 MB, free: 3.898 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.162e-05/0.1249, allocations: 11.92 kB / 434.3 MB, free: 3.887 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.741e-06/0.125, allocations: 8.062 kB / 434.3 MB, free: 3.879 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.488e-05/0.125, allocations: 119.7 kB / 434.4 MB, free: 3.766 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.125, allocations: 0 / 434.4 MB, free: 3.766 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002451/0.1253, allocations: 19.84 kB / 434.4 MB, free: 3.746 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 7.014e-05/0.1253, allocations: 99.25 kB / 434.5 MB, free: 3.641 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002262/0.1256, allocations: 72.02 kB / 434.6 MB, free: 3.57 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.1256, allocations: 8.062 kB / 434.6 MB, free: 3.562 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.216e-05/0.1257, allocations: 23.98 kB / 434.6 MB, free: 3.539 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003643/0.126, allocations: 26.22 kB / 434.6 MB, free: 3.516 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004612/0.1265, allocations: 267.3 kB / 434.9 MB, free: 3.215 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001427/0.1267, allocations: 0.7041 MB / 435.6 MB, free: 2.484 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.581e-05/0.1267, allocations: 19.42 kB / 435.6 MB, free: 2.465 MB / 302.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1267, allocations: 0 / 435.6 MB, free: 2.465 MB / 302.1 MB Notification: Performance of Templates: time 0.002547/0.1293, allocations: 1.413 MB / 437 MB, free: 1.051 MB / 302.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