Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerGrids_symb_jac_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_symb_jac_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_symb_jac_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.001156/0.001156, allocations: 110.9 kB / 16.41 MB, free: 6.512 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.001023/0.001023, allocations: 189.5 kB / 17.34 MB, free: 5.738 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.58/1.58, allocations: 205.1 MB / 223.2 MB, free: 12.22 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.0654/0.0654, allocations: 14.16 MB / 284.8 MB, free: 13.84 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.001517/0.001517, allocations: 70.33 kB / 399.3 MB, free: 42.77 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1173/0.1188, allocations: 50.13 MB / 449.4 MB, free: 11.57 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDerivativeLag): time 0.003075/0.1219, allocations: 1.815 MB / 451.2 MB, free: 9.742 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004239/0.1224, allocations: 179.4 kB / 451.4 MB, free: 9.566 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001249/0.1225, allocations: 7.938 kB / 451.4 MB, free: 9.559 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001692/0.1227, allocations: 15.8 kB / 451.4 MB, free: 9.543 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001634/0.1229, allocations: 27.78 kB / 451.4 MB, free: 9.516 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001144/0.123, allocations: 43.95 kB / 451.5 MB, free: 9.473 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001739/0.1232, allocations: 119.6 kB / 451.6 MB, free: 9.355 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001609/0.1233, allocations: 61.31 kB / 451.7 MB, free: 9.297 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.733e-05/0.1234, allocations: 47.84 kB / 451.7 MB, free: 9.25 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001083/0.1235, allocations: 51.64 kB / 451.7 MB, free: 9.199 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.33e-05/0.1236, allocations: 8 kB / 451.8 MB, free: 9.191 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.062e-05/0.1236, allocations: 12 kB / 451.8 MB, free: 9.18 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.842e-05/0.1236, allocations: 15.92 kB / 451.8 MB, free: 9.164 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.269e-05/0.1237, allocations: 51.67 kB / 451.8 MB, free: 9.113 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001686/0.1239, allocations: 107.6 kB / 451.9 MB, free: 9.008 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.1239, allocations: 4 kB / 451.9 MB, free: 9.004 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1239, allocations: 0 / 451.9 MB, free: 9.004 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.18e-06/0.1239, allocations: 0 / 451.9 MB, free: 9.004 MB / 334.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.0005608/0.1245, allocations: 415.2 kB / 452.3 MB, free: 8.547 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.662e-05/0.1245, allocations: 8.031 kB / 452.4 MB, free: 8.539 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.217e-05/0.1246, allocations: 12.84 kB / 452.4 MB, free: 8.527 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002966/0.1249, allocations: 231.9 kB / 452.6 MB, free: 8.262 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.942e-05/0.1249, allocations: 8.562 kB / 452.6 MB, free: 8.254 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.478e-05/0.1249, allocations: 4.375 kB / 452.6 MB, free: 8.25 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002844/0.1252, allocations: 144.3 kB / 452.7 MB, free: 8.09 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.39e-05/0.1252, allocations: 3.938 kB / 452.8 MB, free: 8.086 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.362e-05/0.1253, allocations: 3.938 kB / 452.8 MB, free: 8.082 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.682e-06/0.1253, allocations: 4 kB / 452.8 MB, free: 8.078 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001975/0.1255, allocations: 63.89 kB / 452.8 MB, free: 8.016 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006828/0.1262, allocations: 0.5952 MB / 453.4 MB, free: 7.352 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002632/0.1264, allocations: 115.8 kB / 453.5 MB, free: 7.211 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001296/0.1266, allocations: 42.75 kB / 453.6 MB, free: 7.16 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.691e-05/0.1266, allocations: 3.938 kB / 453.6 MB, free: 7.156 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.721e-05/0.1266, allocations: 42.5 kB / 453.6 MB, free: 7.105 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 1.353e-06/0.1266, allocations: 0 / 453.6 MB, free: 7.105 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003698/0.127, allocations: 117.6 kB / 453.7 MB, free: 6.984 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.303e-05/0.1271, allocations: 102.8 kB / 453.8 MB, free: 6.859 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001407/0.1272, allocations: 155 kB / 454 MB, free: 6.699 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.084e-05/0.1273, allocations: 29.95 kB / 454 MB, free: 6.664 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.946e-05/0.1274, allocations: 119.8 kB / 454.1 MB, free: 6.543 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.508e-05/0.1274, allocations: 23.64 kB / 454.2 MB, free: 6.52 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.39e-05/0.1274, allocations: 25.72 kB / 454.2 MB, free: 6.488 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001271/0.1276, allocations: 322.8 kB / 454.5 MB, free: 6.164 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.102e-05/0.1277, allocations: 19.98 kB / 454.5 MB, free: 6.145 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001123/0.1278, allocations: 82.11 kB / 454.6 MB, free: 6.043 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001966/0.128, allocations: 101 kB / 454.7 MB, free: 5.926 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.385e-06/0.128, allocations: 0 / 454.7 MB, free: 5.926 MB / 334.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002458/0.1282, allocations: 117.4 kB / 454.8 MB, free: 5.805 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.481e-05/0.1283, allocations: 8 kB / 454.8 MB, free: 5.797 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.238e-06/0.1283, allocations: 0 / 454.8 MB, free: 5.797 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.376e-05/0.1283, allocations: 4 kB / 454.8 MB, free: 5.793 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001427/0.1284, allocations: 36.06 kB / 454.9 MB, free: 5.758 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.122e-06/0.1285, allocations: 4 kB / 454.9 MB, free: 5.754 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.092e-05/0.1286, allocations: 7.906 kB / 454.9 MB, free: 5.746 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.082e-05/0.1286, allocations: 7.938 kB / 454.9 MB, free: 5.738 MB / 334.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 9.521e-05/0.1287, allocations: 133.7 kB / 455 MB, free: 5.598 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.135e-05/0.1287, allocations: 7.906 kB / 455 MB, free: 5.59 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.998e-05/0.1287, allocations: 12.31 kB / 455 MB, free: 5.578 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.165e-06/0.1288, allocations: 0 / 455 MB, free: 5.578 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.239e-06/0.1288, allocations: 8 kB / 455 MB, free: 5.57 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.095e-06/0.1288, allocations: 0 / 455 MB, free: 5.57 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002332/0.129, allocations: 213.5 kB / 455.2 MB, free: 5.312 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.129, allocations: 0 / 455.2 MB, free: 5.312 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001113/0.1291, allocations: 19.92 kB / 455.3 MB, free: 5.293 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.1291, allocations: 0 / 455.3 MB, free: 5.293 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.173e-05/0.1292, allocations: 8 kB / 455.3 MB, free: 5.285 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.1292, allocations: 0 / 455.3 MB, free: 5.285 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.1292, allocations: 0 / 455.3 MB, free: 5.285 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001369/0.1305, allocations: 1.368 MB / 456.6 MB, free: 3.766 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.424e-05/0.1306, allocations: 88.95 kB / 456.7 MB, free: 3.66 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.562e-05/0.1306, allocations: 3.938 kB / 456.7 MB, free: 3.656 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001016/0.1307, allocations: 7.984 kB / 456.7 MB, free: 3.648 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.632e-05/0.1308, allocations: 8 kB / 456.7 MB, free: 3.641 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.724e-06/0.1308, allocations: 12.08 kB / 456.8 MB, free: 3.629 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.295e-05/0.1309, allocations: 115.9 kB / 456.9 MB, free: 3.516 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1309, allocations: 0 / 456.9 MB, free: 3.516 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003305/0.1312, allocations: 23.94 kB / 456.9 MB, free: 3.492 MB / 334.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.0001021/0.1313, allocations: 99.17 kB / 457 MB, free: 3.387 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002455/0.1316, allocations: 72.22 kB / 457.1 MB, free: 3.316 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.1316, allocations: 4 kB / 457.1 MB, free: 3.312 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.289e-05/0.1317, allocations: 31.92 kB / 457.1 MB, free: 3.281 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003282/0.132, allocations: 22.33 kB / 457.1 MB, free: 3.262 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000597/0.1326, allocations: 368.2 kB / 457.5 MB, free: 2.855 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003042/0.1329, allocations: 0.7042 MB / 458.2 MB, free: 2.125 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.482e-05/0.133, allocations: 16.58 kB / 458.2 MB, free: 2.109 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.22e-05/0.1331, allocations: 15.44 kB / 458.2 MB, free: 2.094 MB / 334.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1331, allocations: 0 / 458.2 MB, free: 2.094 MB / 334.1 MB Notification: Performance of Templates: time 0.00365/0.1367, allocations: 1.029 MB / 459.2 MB, free: 1.07 MB / 334.1 MB make -j1 -f PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDerivativeLag.makefile (rm -f PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDerivativeLag.pipe ; mkfifo PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDerivativeLag.pipe ; head -c 1048576 < PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDerivativeLag.pipe >> ../files/PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDerivativeLag.sim & ./PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDerivativeLag -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDerivativeLag.pipe 2>&1) diffSimulationResults("PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDerivativeLag_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Controls.Test.TestDerivativeLag_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDerivativeLag.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches