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.001367/0.001367, allocations: 107.8 kB / 16.42 MB, free: 6.504 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.001205/0.001205, allocations: 185.5 kB / 17.34 MB, free: 5.758 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.553/1.553, allocations: 205.1 MB / 223.2 MB, free: 12.29 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06844/0.06844, allocations: 14.17 MB / 284.8 MB, free: 13.86 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.00313/0.00313, allocations: 73.23 kB / 399.3 MB, free: 42.75 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1226/0.1257, allocations: 50.13 MB / 449.4 MB, free: 11.58 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDerivativeLag): time 0.003245/0.129, allocations: 1.819 MB / 451.2 MB, free: 9.746 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004201/0.1295, allocations: 171.4 kB / 451.4 MB, free: 9.578 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.63e-05/0.1296, allocations: 4 kB / 451.4 MB, free: 9.574 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001341/0.1297, allocations: 27.73 kB / 451.4 MB, free: 9.547 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001315/0.1299, allocations: 23.78 kB / 451.4 MB, free: 9.523 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000109/0.13, allocations: 39.95 kB / 451.5 MB, free: 9.484 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002544/0.1302, allocations: 127.6 kB / 451.6 MB, free: 9.359 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001629/0.1304, allocations: 53.3 kB / 451.7 MB, free: 9.309 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.476e-05/0.1305, allocations: 43.84 kB / 451.7 MB, free: 9.266 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000119/0.1306, allocations: 55.7 kB / 451.8 MB, free: 9.211 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.416e-05/0.1306, allocations: 8 kB / 451.8 MB, free: 9.203 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.001e-05/0.1307, allocations: 8 kB / 451.8 MB, free: 9.195 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.269e-05/0.1307, allocations: 19.92 kB / 451.8 MB, free: 9.176 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.138e-05/0.1308, allocations: 55.62 kB / 451.8 MB, free: 9.121 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001867/0.131, allocations: 103.5 kB / 451.9 MB, free: 9.02 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.131, allocations: 0 / 451.9 MB, free: 9.02 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.923e-06/0.131, allocations: 0 / 451.9 MB, free: 9.02 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.13e-06/0.131, allocations: 0 / 451.9 MB, free: 9.02 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.0005806/0.1316, allocations: 431 kB / 452.4 MB, free: 8.547 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.908e-05/0.1316, allocations: 12.02 kB / 452.4 MB, free: 8.535 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.916e-05/0.1317, allocations: 16.84 kB / 452.4 MB, free: 8.52 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003124/0.132, allocations: 216.2 kB / 452.6 MB, free: 8.27 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.742e-05/0.132, allocations: 8.562 kB / 452.6 MB, free: 8.262 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.059e-05/0.132, allocations: 16.31 kB / 452.6 MB, free: 8.246 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002776/0.1323, allocations: 136.3 kB / 452.8 MB, free: 8.094 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.999e-06/0.1323, allocations: 0 / 452.8 MB, free: 8.094 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.554e-05/0.1324, allocations: 7.938 kB / 452.8 MB, free: 8.086 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.989e-06/0.1324, allocations: 3.938 kB / 452.8 MB, free: 8.082 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002053/0.1326, allocations: 67.89 kB / 452.8 MB, free: 8.016 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007933/0.1334, allocations: 0.6069 MB / 453.4 MB, free: 7.34 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002734/0.1337, allocations: 111.8 kB / 453.6 MB, free: 7.203 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001138/0.1338, allocations: 46.73 kB / 453.6 MB, free: 7.148 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.474e-05/0.1338, allocations: 0 / 453.6 MB, free: 7.148 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.268e-05/0.1339, allocations: 34.56 kB / 453.6 MB, free: 7.105 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 1.162e-06/0.1339, allocations: 4 kB / 453.6 MB, free: 7.102 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.000467/0.1343, allocations: 117.5 kB / 453.8 MB, free: 6.98 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.318e-05/0.1344, allocations: 102.8 kB / 453.9 MB, free: 6.855 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001469/0.1346, allocations: 147.1 kB / 454 MB, free: 6.703 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.882e-05/0.1346, allocations: 29.7 kB / 454 MB, free: 6.668 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.737e-05/0.1347, allocations: 120.2 kB / 454.1 MB, free: 6.547 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.971e-05/0.1347, allocations: 31.73 kB / 454.2 MB, free: 6.516 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.421e-05/0.1348, allocations: 25.72 kB / 454.2 MB, free: 6.484 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001752/0.135, allocations: 322.8 kB / 454.5 MB, free: 6.16 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.979e-05/0.1351, allocations: 19.98 kB / 454.5 MB, free: 6.141 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00013/0.1352, allocations: 77.91 kB / 454.6 MB, free: 6.043 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002119/0.1355, allocations: 97 kB / 454.7 MB, free: 5.93 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.769e-06/0.1355, allocations: 8.031 kB / 454.7 MB, free: 5.922 MB / 334.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002573/0.1357, allocations: 117.5 kB / 454.8 MB, free: 5.801 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.501e-05/0.1358, allocations: 4 kB / 454.8 MB, free: 5.797 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.794e-06/0.1358, allocations: 4 kB / 454.8 MB, free: 5.793 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.215e-05/0.1358, allocations: 3.984 kB / 454.8 MB, free: 5.789 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001308/0.1359, allocations: 23.98 kB / 454.9 MB, free: 5.766 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.071e-05/0.136, allocations: 12.41 kB / 454.9 MB, free: 5.754 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.341e-05/0.136, allocations: 15.88 kB / 454.9 MB, free: 5.738 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.819e-05/0.1361, allocations: 8 kB / 454.9 MB, free: 5.73 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 0.0001161/0.1362, allocations: 129.7 kB / 455 MB, free: 5.594 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.331e-05/0.1362, allocations: 11.95 kB / 455 MB, free: 5.582 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.752e-05/0.1363, allocations: 16.31 kB / 455.1 MB, free: 5.566 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.863e-06/0.1363, allocations: 0 / 455.1 MB, free: 5.566 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.94e-06/0.1363, allocations: 0 / 455.1 MB, free: 5.566 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.991e-06/0.1363, allocations: 3.984 kB / 455.1 MB, free: 5.562 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002643/0.1366, allocations: 209.5 kB / 455.3 MB, free: 5.309 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.153e-06/0.1366, allocations: 0 / 455.3 MB, free: 5.309 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001195/0.1367, allocations: 23.98 kB / 455.3 MB, free: 5.285 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.1367, allocations: 0 / 455.3 MB, free: 5.285 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.266e-05/0.1367, allocations: 0 / 455.3 MB, free: 5.285 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.587e-06/0.1367, allocations: 7.938 kB / 455.3 MB, free: 5.277 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.021e-06/0.1368, allocations: 0 / 455.3 MB, free: 5.277 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001551/0.1383, allocations: 1.368 MB / 456.7 MB, free: 3.758 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.242e-05/0.1384, allocations: 89.05 kB / 456.7 MB, free: 3.652 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.55e-05/0.1384, allocations: 3.938 kB / 456.8 MB, free: 3.648 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.323e-05/0.1385, allocations: 8 kB / 456.8 MB, free: 3.641 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.921e-05/0.1386, allocations: 7.984 kB / 456.8 MB, free: 3.633 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.239e-06/0.1386, allocations: 0 / 456.8 MB, free: 3.633 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001045/0.1387, allocations: 124 kB / 456.9 MB, free: 3.512 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1387, allocations: 0 / 456.9 MB, free: 3.512 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003468/0.1391, allocations: 19.95 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.0001084/0.1392, allocations: 99.25 kB / 457 MB, free: 3.387 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002674/0.1395, allocations: 67.84 kB / 457.1 MB, free: 3.32 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.973e-06/0.1395, allocations: 0 / 457.1 MB, free: 3.32 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.235e-05/0.1396, allocations: 28.42 kB / 457.1 MB, free: 3.293 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003385/0.1399, allocations: 34.44 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.0006623/0.1406, allocations: 371.7 kB / 457.5 MB, free: 2.852 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004601/0.1411, allocations: 0.7081 MB / 458.2 MB, free: 2.117 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.139e-05/0.1411, allocations: 8.547 kB / 458.2 MB, free: 2.109 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.691e-05/0.1412, allocations: 15.44 kB / 458.2 MB, free: 2.094 MB / 334.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1412, allocations: 4 kB / 458.2 MB, free: 2.09 MB / 334.1 MB Notification: Performance of Templates: time 0.00414/0.1453, allocations: 1.032 MB / 459.3 MB, free: 1.062 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=50 -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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Controls.Test.TestDerivativeLag_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDerivativeLag.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches