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.001657/0.001657, allocations: 100.1 kB / 15.88 MB, free: 12 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001826/0.001826, allocations: 200.4 kB / 16.8 MB, free: 6.828 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.852/1.852, allocations: 222.9 MB / 240.5 MB, free: 4.555 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.3235/0.3235, allocations: 16.8 MB / 307.4 MB, free: 15 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002131/0.002132, allocations: 59.91 kB / 373.8 MB, free: 2.031 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5876/0.5898, allocations: 53.55 MB / 427.3 MB, free: 40.77 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDerivativeLag): time 0.003811/0.5936, allocations: 1.873 MB / 429.2 MB, free: 40.07 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003385/0.594, allocations: 164.2 kB / 429.4 MB, free: 39.99 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000112/0.5941, allocations: 14.91 kB / 429.4 MB, free: 39.98 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001637/0.5943, allocations: 15.08 kB / 429.4 MB, free: 39.97 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000147/0.5944, allocations: 15.11 kB / 429.4 MB, free: 39.96 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001221/0.5946, allocations: 40.48 kB / 429.5 MB, free: 39.94 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002141/0.5948, allocations: 114.2 kB / 429.6 MB, free: 39.88 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002302/0.595, allocations: 57.61 kB / 429.6 MB, free: 39.85 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.471e-05/0.5951, allocations: 43.83 kB / 429.7 MB, free: 39.83 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001418/0.5953, allocations: 43.08 kB / 429.7 MB, free: 39.81 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.623e-05/0.5953, allocations: 5.625 kB / 429.7 MB, free: 39.81 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.535e-05/0.5953, allocations: 2.844 kB / 429.7 MB, free: 39.81 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.772e-05/0.5954, allocations: 22.45 kB / 429.7 MB, free: 39.79 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.904e-05/0.5954, allocations: 42.69 kB / 429.8 MB, free: 39.77 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001392/0.5956, allocations: 72.33 kB / 429.9 MB, free: 39.74 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.392e-06/0.5956, allocations: 0 / 429.9 MB, free: 39.74 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.043e-06/0.5956, allocations: 4 kB / 429.9 MB, free: 39.73 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.267e-06/0.5956, allocations: 0 / 429.9 MB, free: 39.73 MB / 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.0008112/0.5964, allocations: 427.8 kB / 430.3 MB, free: 39.32 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.903e-05/0.5965, allocations: 10.91 kB / 430.3 MB, free: 39.32 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.485e-05/0.5966, allocations: 16.97 kB / 430.3 MB, free: 39.31 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003507/0.597, allocations: 215.8 kB / 430.5 MB, free: 39.09 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.208e-05/0.597, allocations: 9.719 kB / 430.5 MB, free: 39.08 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.649e-05/0.597, allocations: 5.438 kB / 430.5 MB, free: 39.08 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002867/0.5973, allocations: 146.1 kB / 430.7 MB, free: 38.97 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.436e-05/0.5973, allocations: 0 / 430.7 MB, free: 38.97 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.13e-05/0.5974, allocations: 2.5 kB / 430.7 MB, free: 38.97 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.226e-05/0.5974, allocations: 5.734 kB / 430.7 MB, free: 38.97 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002241/0.5976, allocations: 68.72 kB / 430.8 MB, free: 38.95 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008251/0.5985, allocations: 0.6044 MB / 431.4 MB, free: 38.38 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000263/0.5987, allocations: 107.7 kB / 431.5 MB, free: 38.29 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.966e-05/0.5988, allocations: 50.91 kB / 431.5 MB, free: 38.25 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.196e-05/0.5989, allocations: 0 / 431.5 MB, free: 38.25 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.957e-05/0.5989, allocations: 33.53 kB / 431.5 MB, free: 38.21 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 9.82e-07/0.5989, allocations: 0 / 431.5 MB, free: 38.21 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.00037/0.5993, allocations: 123.1 kB / 431.7 MB, free: 38.15 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.971e-05/0.5993, allocations: 106.8 kB / 431.8 MB, free: 38.02 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000125/0.5995, allocations: 156.4 kB / 431.9 MB, free: 37.91 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.778e-05/0.5995, allocations: 25.7 kB / 431.9 MB, free: 37.88 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.069e-05/0.5996, allocations: 116.2 kB / 432.1 MB, free: 37.77 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.627e-05/0.5996, allocations: 22.47 kB / 432.1 MB, free: 37.75 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.367e-05/0.5997, allocations: 33.22 kB / 432.1 MB, free: 37.72 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001105/0.5998, allocations: 321 kB / 432.4 MB, free: 37.41 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001006/0.5999, allocations: 24.86 kB / 432.5 MB, free: 37.4 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001115/0.6, allocations: 69.06 kB / 432.5 MB, free: 37.33 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002036/0.6002, allocations: 109.1 kB / 432.6 MB, free: 37.25 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.6003, allocations: 3.938 kB / 432.6 MB, free: 37.24 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002451/0.6005, allocations: 116.6 kB / 432.7 MB, free: 37.18 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.417e-05/0.6005, allocations: 9.719 kB / 432.8 MB, free: 37.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.929e-06/0.6005, allocations: 2.875 kB / 432.8 MB, free: 37.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.324e-05/0.6006, allocations: 0 / 432.8 MB, free: 37.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001293/0.6007, allocations: 30.55 kB / 432.8 MB, free: 37.18 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.586e-06/0.6007, allocations: 2.812 kB / 432.8 MB, free: 37.18 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.417e-05/0.6008, allocations: 5.688 kB / 432.8 MB, free: 37.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.096e-05/0.6008, allocations: 2.75 kB / 432.8 MB, free: 37.18 MB / 350.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 8.599e-05/0.6009, allocations: 130.5 kB / 432.9 MB, free: 37.05 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.259e-05/0.6009, allocations: 17.19 kB / 432.9 MB, free: 37.04 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.162e-05/0.601, allocations: 11.34 kB / 433 MB, free: 37.03 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.136e-06/0.601, allocations: 2.844 kB / 433 MB, free: 37.03 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.491e-06/0.601, allocations: 0 / 433 MB, free: 37.03 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.099e-06/0.601, allocations: 6.125 kB / 433 MB, free: 37.03 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001833/0.6012, allocations: 212.3 kB / 433.2 MB, free: 36.81 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.253e-06/0.6012, allocations: 0 / 433.2 MB, free: 36.81 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001099/0.6013, allocations: 14.95 kB / 433.2 MB, free: 36.81 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.397e-06/0.6013, allocations: 2.938 kB / 433.2 MB, free: 36.81 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.254e-05/0.6013, allocations: 8 kB / 433.2 MB, free: 36.8 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.585e-06/0.6013, allocations: 2.75 kB / 433.2 MB, free: 36.8 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.355e-06/0.6013, allocations: 3.938 kB / 433.2 MB, free: 36.8 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003451/0.6017, allocations: 225.2 kB / 433.4 MB, free: 36.62 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.439e-05/0.6018, allocations: 92.02 kB / 433.5 MB, free: 36.52 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.416e-05/0.6018, allocations: 2.688 kB / 433.5 MB, free: 36.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.179e-05/0.6019, allocations: 10.09 kB / 433.5 MB, free: 36.51 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.466e-05/0.602, allocations: 6.062 kB / 433.5 MB, free: 36.51 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.065e-06/0.602, allocations: 6.812 kB / 433.5 MB, free: 36.51 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.648e-05/0.6021, allocations: 109.7 kB / 433.6 MB, free: 36.43 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.6021, allocations: 0 / 433.6 MB, free: 36.43 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002525/0.6023, allocations: 19.44 kB / 433.7 MB, free: 36.42 MB / 350.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.0001359/0.6025, allocations: 105.5 kB / 433.8 MB, free: 36.32 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002699/0.6027, allocations: 69.8 kB / 433.8 MB, free: 36.3 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.063e-06/0.6027, allocations: 0 / 433.8 MB, free: 36.3 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.935e-05/0.6028, allocations: 31.06 kB / 433.9 MB, free: 36.29 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004425/0.6033, allocations: 27.19 kB / 433.9 MB, free: 36.29 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006645/0.604, allocations: 309 kB / 434.2 MB, free: 36.03 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002204/0.6042, allocations: 0.7081 MB / 434.9 MB, free: 35.33 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.583e-05/0.6043, allocations: 13.25 kB / 434.9 MB, free: 35.32 MB / 350.1 MB Notification: Performance of SimCode: time 2.21e-07/0.6043, allocations: 3.938 kB / 434.9 MB, free: 35.32 MB / 350.1 MB Notification: Performance of Templates: time 0.003616/0.6079, allocations: 1.399 MB / 436.3 MB, free: 35.18 MB / 350.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