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.008037/0.008037, allocations: 101.2 kB / 15.73 MB, free: 5.988 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.001809/0.001809, allocations: 188 kB / 16.67 MB, free: 5.914 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.458/1.458, allocations: 222.9 MB / 240.4 MB, free: 4.129 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.2096/0.2096, allocations: 16.68 MB / 307.2 MB, free: 14.74 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001807/0.001807, allocations: 63.62 kB / 428.6 MB, free: 35.84 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09059/0.09241, allocations: 53.56 MB / 482.1 MB, free: 9.121 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDerivativeLag): time 0.002447/0.09489, allocations: 1.811 MB / 483.9 MB, free: 7.707 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003298/0.09524, allocations: 170.3 kB / 484.1 MB, free: 7.566 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001046/0.09536, allocations: 6.688 kB / 484.1 MB, free: 7.562 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001247/0.09549, allocations: 22.55 kB / 484.1 MB, free: 7.543 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001242/0.09563, allocations: 25.17 kB / 484.2 MB, free: 7.52 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 8.586e-05/0.09572, allocations: 46.77 kB / 484.2 MB, free: 7.48 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001517/0.09588, allocations: 122.4 kB / 484.3 MB, free: 7.406 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001424/0.09603, allocations: 49.95 kB / 484.4 MB, free: 7.371 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.134e-05/0.09609, allocations: 56.16 kB / 484.4 MB, free: 7.332 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.83e-05/0.09618, allocations: 42.78 kB / 484.5 MB, free: 7.301 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.79e-05/0.09621, allocations: 12.25 kB / 484.5 MB, free: 7.297 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.138e-05/0.09624, allocations: 8.25 kB / 484.5 MB, free: 7.297 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.421e-05/0.09627, allocations: 28.03 kB / 484.5 MB, free: 7.273 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.346e-05/0.09632, allocations: 49.3 kB / 484.6 MB, free: 7.234 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001437/0.09647, allocations: 109.6 kB / 484.7 MB, free: 7.152 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.09647, allocations: 0 / 484.7 MB, free: 7.152 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.09648, allocations: 0 / 484.7 MB, free: 7.152 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.499e-06/0.09649, allocations: 0 / 484.7 MB, free: 7.152 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.0004433/0.09694, allocations: 429.5 kB / 485.1 MB, free: 6.719 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.552e-05/0.09698, allocations: 13.56 kB / 485.1 MB, free: 6.715 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.408e-05/0.09703, allocations: 15.72 kB / 485.1 MB, free: 6.707 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002291/0.09726, allocations: 218 kB / 485.3 MB, free: 6.473 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.752e-05/0.09729, allocations: 12.67 kB / 485.3 MB, free: 6.465 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.683e-05/0.09732, allocations: 11.25 kB / 485.4 MB, free: 6.461 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002256/0.09755, allocations: 143.6 kB / 485.5 MB, free: 6.336 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.688e-06/0.09757, allocations: 1.375 kB / 485.5 MB, free: 6.336 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.408e-05/0.09759, allocations: 5.375 kB / 485.5 MB, free: 6.332 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.051e-06/0.0976, allocations: 2.75 kB / 485.5 MB, free: 6.332 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001798/0.09779, allocations: 63.69 kB / 485.6 MB, free: 6.305 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000529/0.09832, allocations: 0.5947 MB / 486.2 MB, free: 5.703 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002392/0.09857, allocations: 114.5 kB / 486.3 MB, free: 5.598 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.447e-05/0.09868, allocations: 46.47 kB / 486.3 MB, free: 5.559 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.799e-05/0.0987, allocations: 1.906 kB / 486.3 MB, free: 5.559 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.402e-05/0.09872, allocations: 31.97 kB / 486.4 MB, free: 5.52 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.353e-06/0.09873, allocations: 4 kB / 486.4 MB, free: 5.516 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003538/0.09909, allocations: 118.1 kB / 486.5 MB, free: 5.441 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.68e-05/0.09914, allocations: 112.2 kB / 486.6 MB, free: 5.309 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.938e-05/0.09924, allocations: 150.2 kB / 486.7 MB, free: 5.18 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.017e-05/0.09926, allocations: 27.14 kB / 486.8 MB, free: 5.148 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.691e-05/0.09931, allocations: 117.6 kB / 486.9 MB, free: 5.035 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.867e-05/0.09933, allocations: 31.84 kB / 486.9 MB, free: 5.008 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.955e-05/0.09938, allocations: 24.77 kB / 486.9 MB, free: 4.984 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.427e-05/0.09943, allocations: 322.1 kB / 487.2 MB, free: 4.664 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.309e-05/0.09951, allocations: 25.11 kB / 487.3 MB, free: 4.652 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.076e-05/0.09961, allocations: 67.75 kB / 487.3 MB, free: 4.582 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001651/0.09978, allocations: 93.28 kB / 487.4 MB, free: 4.504 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.0998, allocations: 4 kB / 487.4 MB, free: 4.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000222/0.1, allocations: 131.6 kB / 487.6 MB, free: 4.414 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.477e-05/0.1, allocations: 5.938 kB / 487.6 MB, free: 4.414 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.703e-06/0.1001, allocations: 1.312 kB / 487.6 MB, free: 4.414 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.478e-05/0.1001, allocations: 6.594 kB / 487.6 MB, free: 4.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001284/0.1002, allocations: 31.22 kB / 487.6 MB, free: 4.398 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.332e-06/0.1002, allocations: 1.531 kB / 487.6 MB, free: 4.398 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.277e-05/0.1003, allocations: 13.62 kB / 487.6 MB, free: 4.391 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.086e-05/0.1003, allocations: 3.406 kB / 487.6 MB, free: 4.391 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 6.404e-05/0.1004, allocations: 132.9 kB / 487.8 MB, free: 4.258 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.024e-05/0.1004, allocations: 8.078 kB / 487.8 MB, free: 4.254 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.783e-05/0.1005, allocations: 16.45 kB / 487.8 MB, free: 4.238 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.816e-06/0.1005, allocations: 1.406 kB / 487.8 MB, free: 4.238 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.1005, allocations: 0 / 487.8 MB, free: 4.238 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.946e-06/0.1005, allocations: 1.406 kB / 487.8 MB, free: 4.238 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001562/0.1006, allocations: 212.4 kB / 488 MB, free: 4.004 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.1006, allocations: 1.219 kB / 488 MB, free: 4.004 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001048/0.1008, allocations: 15.92 kB / 488 MB, free: 4 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.475e-06/0.1008, allocations: 1.125 kB / 488 MB, free: 4 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.002e-05/0.1008, allocations: 5.359 kB / 488 MB, free: 3.996 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.1008, allocations: 1.125 kB / 488 MB, free: 3.996 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.1008, allocations: 1.156 kB / 488 MB, free: 3.996 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000301/0.1011, allocations: 236.8 kB / 488.2 MB, free: 3.793 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.478e-05/0.1011, allocations: 87.7 kB / 488.3 MB, free: 3.691 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.898e-05/0.1012, allocations: 6.438 kB / 488.3 MB, free: 3.688 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.757e-05/0.1013, allocations: 2.406 kB / 488.3 MB, free: 3.688 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.766e-05/0.1013, allocations: 12.59 kB / 488.3 MB, free: 3.68 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.891e-06/0.1013, allocations: 1.312 kB / 488.3 MB, free: 3.68 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.81e-05/0.1014, allocations: 121.9 kB / 488.5 MB, free: 3.582 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.1014, allocations: 1.344 kB / 488.5 MB, free: 3.582 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002441/0.1016, allocations: 20.08 kB / 488.5 MB, free: 3.574 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 7.929e-05/0.1017, allocations: 98.38 kB / 488.6 MB, free: 3.484 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00025/0.102, allocations: 74.34 kB / 488.7 MB, free: 3.449 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.102, allocations: 1.688 kB / 488.7 MB, free: 3.449 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.672e-05/0.1021, allocations: 33.84 kB / 488.7 MB, free: 3.434 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003134/0.1024, allocations: 23.42 kB / 488.7 MB, free: 3.422 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004468/0.1029, allocations: 247.6 kB / 489 MB, free: 3.215 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000127/0.103, allocations: 0.7095 MB / 489.7 MB, free: 2.5 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.733e-05/0.1031, allocations: 10.11 kB / 489.7 MB, free: 2.496 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.315e-05/0.1031, allocations: 17.09 kB / 489.7 MB, free: 2.484 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1031, allocations: 4 kB / 489.7 MB, free: 2.48 MB / 350.1 MB Notification: Performance of Templates: time 0.00344/0.1065, allocations: 1.002 MB / 490.7 MB, free: 1.742 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=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