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.001104/0.001104, allocations: 92.72 kB / 16.03 MB, free: 76 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.001747/0.001748, allocations: 180.7 kB / 16.92 MB, free: 6.914 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.459/1.459, allocations: 205.4 MB / 223.1 MB, free: 5.547 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06392/0.06392, allocations: 14.15 MB / 285.6 MB, free: 7.051 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.0008221/0.0008225, allocations: 15.94 kB / 349.5 MB, free: 17.5 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1313/0.1321, allocations: 51.11 MB / 400.6 MB, free: 14.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDerivativeLag): time 0.003164/0.1354, allocations: 1.529 MB / 402.1 MB, free: 12.8 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006872/0.1361, allocations: 163.4 kB / 402.3 MB, free: 12.64 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001768/0.1363, allocations: 7.938 kB / 402.3 MB, free: 12.63 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000214/0.1365, allocations: 11.86 kB / 402.3 MB, free: 12.62 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002147/0.1368, allocations: 19.86 kB / 402.3 MB, free: 12.6 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001659/0.1369, allocations: 35.97 kB / 402.4 MB, free: 12.57 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002651/0.1372, allocations: 115.7 kB / 402.5 MB, free: 12.45 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002347/0.1375, allocations: 49.27 kB / 402.5 MB, free: 12.41 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.085e-05/0.1376, allocations: 39.72 kB / 402.6 MB, free: 12.37 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000131/0.1377, allocations: 35.8 kB / 402.6 MB, free: 12.33 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.883e-05/0.1378, allocations: 0 / 402.6 MB, free: 12.33 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.899e-05/0.1378, allocations: 7.938 kB / 402.6 MB, free: 12.32 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.975e-05/0.1378, allocations: 15.86 kB / 402.6 MB, free: 12.31 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.736e-05/0.1379, allocations: 73.38 kB / 402.7 MB, free: 12.23 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001974/0.1382, allocations: 95.59 kB / 402.8 MB, free: 12.14 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/0.1382, allocations: 4 kB / 402.8 MB, free: 12.13 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.565e-06/0.1382, allocations: 0 / 402.8 MB, free: 12.13 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.352e-06/0.1382, allocations: 0 / 402.8 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.0007724/0.139, allocations: 395.3 kB / 403.2 MB, free: 11.7 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.037e-05/0.1391, allocations: 8.031 kB / 403.2 MB, free: 11.69 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.072e-05/0.1391, allocations: 16.75 kB / 403.2 MB, free: 11.67 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003825/0.1395, allocations: 216 kB / 403.4 MB, free: 11.42 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.265e-05/0.1396, allocations: 8.562 kB / 403.4 MB, free: 11.41 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.405e-05/0.1396, allocations: 12.38 kB / 403.4 MB, free: 11.4 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004146/0.1401, allocations: 134.2 kB / 403.6 MB, free: 11.25 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.274e-05/0.1401, allocations: 0 / 403.6 MB, free: 11.25 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.374e-05/0.1401, allocations: 12 kB / 403.6 MB, free: 11.24 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.502e-06/0.1401, allocations: 0 / 403.6 MB, free: 11.24 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003158/0.1405, allocations: 71.89 kB / 403.6 MB, free: 11.17 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001097/0.1416, allocations: 0.6109 MB / 404.2 MB, free: 10.48 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004029/0.142, allocations: 107.9 kB / 404.4 MB, free: 10.35 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001595/0.1422, allocations: 50.67 kB / 404.4 MB, free: 10.29 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.358e-05/0.1422, allocations: 3.938 kB / 404.4 MB, free: 10.29 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.974e-05/0.1423, allocations: 42.56 kB / 404.4 MB, free: 10.24 MB / 302.1 MB Notification: Performance of pre-optimization done (n=7): time 2.224e-06/0.1423, allocations: 0 / 404.4 MB, free: 10.24 MB / 302.1 MB Notification: Performance of matching and sorting (n=7): time 0.0005845/0.1429, allocations: 113.5 kB / 404.6 MB, free: 10.12 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.87e-05/0.143, allocations: 107.1 kB / 404.7 MB, free: 9.992 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002137/0.1432, allocations: 154.3 kB / 404.8 MB, free: 9.832 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.815e-05/0.1432, allocations: 33.64 kB / 404.8 MB, free: 9.793 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001164/0.1434, allocations: 119.8 kB / 405 MB, free: 9.672 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.768e-05/0.1434, allocations: 31.53 kB / 405 MB, free: 9.641 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.681e-05/0.1435, allocations: 17.72 kB / 405 MB, free: 9.617 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.00015/0.1436, allocations: 318.8 kB / 405.3 MB, free: 9.297 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001307/0.1438, allocations: 27.98 kB / 405.3 MB, free: 9.27 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001731/0.144, allocations: 73.98 kB / 405.4 MB, free: 9.176 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003736/0.1444, allocations: 101 kB / 405.5 MB, free: 9.059 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.1444, allocations: 0 / 405.5 MB, free: 9.059 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003909/0.1448, allocations: 121.5 kB / 405.6 MB, free: 8.934 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.864e-05/0.1448, allocations: 11.98 kB / 405.7 MB, free: 8.922 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.048e-05/0.1448, allocations: 0 / 405.7 MB, free: 8.922 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.27e-05/0.1449, allocations: 4 kB / 405.7 MB, free: 8.918 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000225/0.1451, allocations: 27.92 kB / 405.7 MB, free: 8.891 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.837e-06/0.1451, allocations: 0 / 405.7 MB, free: 8.891 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001347/0.1453, allocations: 19.78 kB / 405.7 MB, free: 8.871 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.991e-05/0.1453, allocations: 8.156 kB / 405.7 MB, free: 8.863 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.000143/0.1455, allocations: 129.8 kB / 405.8 MB, free: 8.727 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.467e-05/0.1455, allocations: 11.91 kB / 405.8 MB, free: 8.715 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.711e-05/0.1456, allocations: 12.31 kB / 405.9 MB, free: 8.703 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.087e-06/0.1456, allocations: 7.938 kB / 405.9 MB, free: 8.695 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.617e-06/0.1456, allocations: 0 / 405.9 MB, free: 8.695 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.889e-06/0.1457, allocations: 320 / 405.9 MB, free: 8.695 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003354/0.146, allocations: 209.5 kB / 406.1 MB, free: 8.441 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.01e-06/0.146, allocations: 4 kB / 406.1 MB, free: 8.438 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001703/0.1462, allocations: 23.98 kB / 406.1 MB, free: 8.414 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.897e-06/0.1462, allocations: 0 / 406.1 MB, free: 8.414 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.401e-05/0.1462, allocations: 0 / 406.1 MB, free: 8.414 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.553e-06/0.1462, allocations: 4 kB / 406.1 MB, free: 8.41 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.1463, allocations: 0 / 406.1 MB, free: 8.41 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001981/0.1482, allocations: 1.228 MB / 407.3 MB, free: 7.039 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.883e-05/0.1483, allocations: 88.98 kB / 407.4 MB, free: 6.934 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.984e-05/0.1484, allocations: 0 / 407.4 MB, free: 6.934 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001419/0.1485, allocations: 7.984 kB / 407.4 MB, free: 6.926 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.458e-05/0.1486, allocations: 15.92 kB / 407.4 MB, free: 6.91 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.805e-06/0.1486, allocations: 0 / 407.4 MB, free: 6.91 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001137/0.1487, allocations: 111.4 kB / 407.6 MB, free: 6.801 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.813e-06/0.1487, allocations: 4 kB / 407.6 MB, free: 6.797 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003954/0.1491, allocations: 35.78 kB / 407.6 MB, free: 6.762 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.0001287/0.1493, allocations: 99.17 kB / 407.7 MB, free: 6.656 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000277/0.1496, allocations: 67.91 kB / 407.8 MB, free: 6.59 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.32e-06/0.1496, allocations: 4.312 kB / 407.8 MB, free: 6.586 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000109/0.1497, allocations: 35.92 kB / 407.8 MB, free: 6.551 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004129/0.1501, allocations: 23.98 kB / 407.8 MB, free: 6.527 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007571/0.1509, allocations: 410.4 kB / 408.2 MB, free: 6.078 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003416/0.1512, allocations: 0.7004 MB / 408.9 MB, free: 5.352 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.819e-05/0.1513, allocations: 20.8 kB / 408.9 MB, free: 5.332 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.872e-05/0.1514, allocations: 11.44 kB / 408.9 MB, free: 5.32 MB / 302.1 MB Notification: Performance of SimCode: time 1.022e-06/0.1514, allocations: 0 / 408.9 MB, free: 5.32 MB / 302.1 MB Notification: Performance of Templates: time 0.003937/0.1553, allocations: 0.9163 MB / 409.9 MB, free: 4.414 MB / 302.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","../files/PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDerivativeLag.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches