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: 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_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_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.001092/0.001093, allocations: 91.45 kB / 15.36 MB, free: 0.7383 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.008474/0.008474, allocations: 174.1 kB / 16.27 MB, free: 6.613 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.496/1.496, allocations: 205.4 MB / 222.4 MB, free: 5.562 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06243/0.06243, allocations: 14.15 MB / 284.9 MB, free: 7.039 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.0005216/0.0005216, allocations: 20.5 kB / 348.8 MB, free: 17.48 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09315/0.09368, allocations: 51.1 MB / 399.9 MB, free: 14.33 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDerivativeLag): time 0.002002/0.09572, allocations: 1.534 MB / 401.5 MB, free: 12.79 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003793/0.09612, allocations: 155.5 kB / 401.6 MB, free: 12.63 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001134/0.09626, allocations: 11.94 kB / 401.6 MB, free: 12.62 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001213/0.09639, allocations: 15.86 kB / 401.6 MB, free: 12.61 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001417/0.09654, allocations: 23.84 kB / 401.7 MB, free: 12.58 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 9.578e-05/0.09664, allocations: 31.97 kB / 401.7 MB, free: 12.55 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001735/0.09682, allocations: 111.7 kB / 401.8 MB, free: 12.44 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001406/0.09697, allocations: 57.23 kB / 401.9 MB, free: 12.39 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.969e-05/0.09704, allocations: 43.73 kB / 401.9 MB, free: 12.34 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.54e-05/0.09713, allocations: 27.8 kB / 401.9 MB, free: 12.32 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.024e-05/0.09716, allocations: 0 / 401.9 MB, free: 12.32 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.493e-05/0.09718, allocations: 4 kB / 401.9 MB, free: 12.31 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.5e-05/0.09722, allocations: 19.86 kB / 402 MB, free: 12.29 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.662e-05/0.09729, allocations: 65.38 kB / 402 MB, free: 12.22 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001188/0.09741, allocations: 95.61 kB / 402.1 MB, free: 12.13 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.796e-06/0.09742, allocations: 0 / 402.1 MB, free: 12.13 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.09743, allocations: 0 / 402.1 MB, free: 12.13 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.37e-06/0.09744, allocations: 0 / 402.1 MB, free: 12.13 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.0005171/0.09796, allocations: 403.3 kB / 402.5 MB, free: 11.68 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.592e-05/0.098, allocations: 8.031 kB / 402.5 MB, free: 11.68 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.625e-05/0.09805, allocations: 16.75 kB / 402.5 MB, free: 11.66 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002349/0.0983, allocations: 216 kB / 402.7 MB, free: 11.41 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.595e-05/0.09832, allocations: 4.562 kB / 402.7 MB, free: 11.41 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.382e-05/0.09836, allocations: 12.38 kB / 402.8 MB, free: 11.39 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002846/0.09865, allocations: 142.2 kB / 402.9 MB, free: 11.23 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.278e-06/0.09867, allocations: 0 / 402.9 MB, free: 11.23 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.69e-05/0.09869, allocations: 8 kB / 402.9 MB, free: 11.23 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.678e-06/0.09871, allocations: 0 / 402.9 MB, free: 11.23 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002147/0.09893, allocations: 79.83 kB / 403 MB, free: 11.15 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007633/0.09971, allocations: 0.6031 MB / 403.6 MB, free: 10.47 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000297/0.1, allocations: 115.9 kB / 403.7 MB, free: 10.33 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001211/0.1002, allocations: 54.55 kB / 403.8 MB, free: 10.27 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.736e-05/0.1002, allocations: 0 / 403.8 MB, free: 10.27 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.506e-05/0.1002, allocations: 34.56 kB / 403.8 MB, free: 10.23 MB / 302.1 MB Notification: Performance of pre-optimization done (n=7): time 1.062e-06/0.1002, allocations: 0 / 403.8 MB, free: 10.23 MB / 302.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004221/0.1007, allocations: 121.5 kB / 403.9 MB, free: 10.1 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.568e-05/0.1007, allocations: 114.7 kB / 404 MB, free: 9.965 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001327/0.1009, allocations: 146.4 kB / 404.2 MB, free: 9.812 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.219e-05/0.1009, allocations: 25.7 kB / 404.2 MB, free: 9.781 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.353e-05/0.101, allocations: 119.9 kB / 404.3 MB, free: 9.66 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.677e-05/0.101, allocations: 31.5 kB / 404.3 MB, free: 9.629 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.023e-05/0.1011, allocations: 21.97 kB / 404.4 MB, free: 9.602 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001168/0.1012, allocations: 318.8 kB / 404.7 MB, free: 9.281 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001079/0.1013, allocations: 23.98 kB / 404.7 MB, free: 9.258 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001165/0.1014, allocations: 69.98 kB / 404.8 MB, free: 9.168 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002157/0.1017, allocations: 105 kB / 404.9 MB, free: 9.047 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.1017, allocations: 4 kB / 404.9 MB, free: 9.043 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002783/0.1019, allocations: 117.4 kB / 405 MB, free: 8.922 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.835e-05/0.102, allocations: 8 kB / 405 MB, free: 8.914 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.181e-06/0.102, allocations: 0 / 405 MB, free: 8.914 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.583e-05/0.102, allocations: 4 kB / 405 MB, free: 8.91 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001453/0.1022, allocations: 32.08 kB / 405 MB, free: 8.879 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.826e-06/0.1022, allocations: 3.984 kB / 405 MB, free: 8.875 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.225e-05/0.1023, allocations: 23.83 kB / 405 MB, free: 8.852 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.202e-05/0.1023, allocations: 4 kB / 405.1 MB, free: 8.848 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.0001071/0.1024, allocations: 129.7 kB / 405.2 MB, free: 8.711 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.923e-05/0.1025, allocations: 11.91 kB / 405.2 MB, free: 8.699 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.477e-05/0.1025, allocations: 8.625 kB / 405.2 MB, free: 8.691 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.286e-06/0.1025, allocations: 4 kB / 405.2 MB, free: 8.688 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.833e-06/0.1025, allocations: 7.984 kB / 405.2 MB, free: 8.68 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.179e-06/0.1025, allocations: 4 kB / 405.2 MB, free: 8.676 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002453/0.1028, allocations: 209.5 kB / 405.4 MB, free: 8.422 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.1028, allocations: 0 / 405.4 MB, free: 8.422 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001194/0.1029, allocations: 19.98 kB / 405.4 MB, free: 8.402 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.348e-05/0.103, allocations: 0 / 405.4 MB, free: 8.402 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.156e-05/0.103, allocations: 4 kB / 405.4 MB, free: 8.398 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.809e-06/0.103, allocations: 4 kB / 405.4 MB, free: 8.395 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.325e-06/0.103, allocations: 0 / 405.4 MB, free: 8.395 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000447/0.1035, allocations: 233 kB / 405.7 MB, free: 8.145 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.612e-05/0.1035, allocations: 92.98 kB / 405.8 MB, free: 8.035 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.093e-05/0.1036, allocations: 11.94 kB / 405.8 MB, free: 8.023 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.734e-05/0.1037, allocations: 7.984 kB / 405.8 MB, free: 8.016 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.041e-05/0.1037, allocations: 4 kB / 405.8 MB, free: 8.012 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.154e-06/0.1037, allocations: 4 kB / 405.8 MB, free: 8.008 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.219e-05/0.1038, allocations: 115.2 kB / 405.9 MB, free: 7.895 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1038, allocations: 0 / 405.9 MB, free: 7.895 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002644/0.1041, allocations: 19.91 kB / 405.9 MB, free: 7.875 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.0001112/0.1042, allocations: 99.19 kB / 406 MB, free: 7.77 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002595/0.1045, allocations: 79.77 kB / 406.1 MB, free: 7.691 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.1045, allocations: 0 / 406.1 MB, free: 7.691 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.664e-05/0.1046, allocations: 27.98 kB / 406.1 MB, free: 7.664 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004012/0.105, allocations: 24.42 kB / 406.1 MB, free: 7.641 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005609/0.1056, allocations: 295.6 kB / 406.4 MB, free: 7.316 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002875/0.1059, allocations: 0.7043 MB / 407.1 MB, free: 6.586 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.464e-05/0.106, allocations: 12.55 kB / 407.2 MB, free: 6.57 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.025e-05/0.1061, allocations: 15.44 kB / 407.2 MB, free: 6.555 MB / 302.1 MB Notification: Performance of SimCode: time 4.71e-07/0.1061, allocations: 0 / 407.2 MB, free: 6.555 MB / 302.1 MB Notification: Performance of Templates: time 0.003554/0.1096, allocations: 0.8896 MB / 408.1 MB, free: 5.672 MB / 302.1 MB make -j1 -f PowerGrids_PowerGrids.Controls.Test.TestDerivativeLag.makefile (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 & ./PowerGrids_PowerGrids.Controls.Test.TestDerivativeLag -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerGrids_PowerGrids.Controls.Test.TestDerivativeLag.pipe 2>&1) diffSimulationResults("PowerGrids_PowerGrids.Controls.Test.TestDerivativeLag_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Controls.Test.TestDerivativeLag_res.mat","../files/PowerGrids_PowerGrids.Controls.Test.TestDerivativeLag.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches