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.001244/0.00125, allocations: 109.2 kB / 16.42 MB, free: 6.5 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.001257/0.001257, allocations: 185.5 kB / 17.35 MB, free: 5.762 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.635/1.635, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06144/0.06144, allocations: 14.18 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.002864/0.002864, allocations: 74.2 kB / 399.3 MB, free: 42.72 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1333/0.1362, 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.003967/0.1402, allocations: 1.832 MB / 451.2 MB, free: 9.73 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006031/0.1408, allocations: 167.5 kB / 451.4 MB, free: 9.566 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001956/0.1411, allocations: 3.938 kB / 451.4 MB, free: 9.562 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001942/0.1413, allocations: 23.8 kB / 451.4 MB, free: 9.539 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002059/0.1415, allocations: 23.8 kB / 451.4 MB, free: 9.516 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001454/0.1417, allocations: 39.89 kB / 451.5 MB, free: 9.477 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000231/0.1419, allocations: 131.6 kB / 451.6 MB, free: 9.348 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002001/0.1421, allocations: 53.3 kB / 451.7 MB, free: 9.297 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.788e-05/0.1422, allocations: 43.86 kB / 451.7 MB, free: 9.254 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001141/0.1423, allocations: 55.64 kB / 451.8 MB, free: 9.199 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.247e-05/0.1424, allocations: 8 kB / 451.8 MB, free: 9.191 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.967e-05/0.1424, allocations: 8 kB / 451.8 MB, free: 9.184 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.276e-05/0.1424, allocations: 19.94 kB / 451.8 MB, free: 9.164 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.116e-05/0.1425, allocations: 55.66 kB / 451.8 MB, free: 9.109 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001778/0.1427, allocations: 103.6 kB / 452 MB, free: 9.008 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.1427, allocations: 0 / 452 MB, free: 9.008 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.1427, allocations: 0 / 452 MB, free: 9.008 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.071e-06/0.1427, allocations: 0 / 452 MB, free: 9.008 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.0006196/0.1434, allocations: 423.2 kB / 452.4 MB, free: 8.543 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.641e-05/0.1434, allocations: 8.031 kB / 452.4 MB, free: 8.535 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.747e-05/0.1435, allocations: 12.84 kB / 452.4 MB, free: 8.523 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000375/0.1438, allocations: 220 kB / 452.6 MB, free: 8.27 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.501e-05/0.1439, allocations: 8.562 kB / 452.6 MB, free: 8.262 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.821e-05/0.1439, allocations: 12.38 kB / 452.6 MB, free: 8.25 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002825/0.1442, allocations: 136.3 kB / 452.8 MB, free: 8.098 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.147e-05/0.1442, allocations: 3.938 kB / 452.8 MB, free: 8.094 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.757e-05/0.1443, allocations: 8 kB / 452.8 MB, free: 8.086 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.611e-06/0.1443, allocations: 0 / 452.8 MB, free: 8.086 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001963/0.1445, allocations: 67.89 kB / 452.8 MB, free: 8.02 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008101/0.1453, allocations: 0.5952 MB / 453.4 MB, free: 7.355 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002925/0.1456, allocations: 120 kB / 453.5 MB, free: 7.211 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000102/0.1457, allocations: 42.56 kB / 453.6 MB, free: 7.16 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.523e-05/0.1457, allocations: 7.984 kB / 453.6 MB, free: 7.152 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.968e-05/0.1458, allocations: 38.5 kB / 453.6 MB, free: 7.105 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 1.222e-06/0.1458, allocations: 0 / 453.6 MB, free: 7.105 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004104/0.1462, allocations: 109.7 kB / 453.7 MB, free: 6.992 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.004e-05/0.1463, allocations: 106.8 kB / 453.8 MB, free: 6.863 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001532/0.1464, allocations: 155 kB / 454 MB, free: 6.703 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.257e-05/0.1465, allocations: 37.95 kB / 454 MB, free: 6.66 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.275e-05/0.1466, allocations: 115.8 kB / 454.1 MB, free: 6.543 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.77e-05/0.1466, allocations: 31.62 kB / 454.2 MB, free: 6.512 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.648e-05/0.1466, allocations: 21.72 kB / 454.2 MB, free: 6.484 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001421/0.1468, allocations: 322.8 kB / 454.5 MB, free: 6.16 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.105e-05/0.1469, allocations: 27.92 kB / 454.5 MB, free: 6.133 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001182/0.147, allocations: 69.98 kB / 454.6 MB, free: 6.043 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000196/0.1472, allocations: 97.03 kB / 454.7 MB, free: 5.93 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.557e-06/0.1472, allocations: 4 kB / 454.7 MB, free: 5.926 MB / 334.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002743/0.1475, allocations: 117.4 kB / 454.8 MB, free: 5.805 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.573e-05/0.1475, allocations: 4 kB / 454.8 MB, free: 5.801 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.354e-06/0.1475, allocations: 4 kB / 454.8 MB, free: 5.797 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.461e-05/0.1476, allocations: 0 / 454.8 MB, free: 5.797 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001398/0.1477, allocations: 32.08 kB / 454.9 MB, free: 5.766 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.517e-06/0.1477, allocations: 4 kB / 454.9 MB, free: 5.762 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.097e-05/0.1478, allocations: 7.906 kB / 454.9 MB, free: 5.754 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.742e-05/0.1478, allocations: 11.98 kB / 454.9 MB, free: 5.742 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.694e-05/0.1479, allocations: 121.7 kB / 455 MB, free: 5.613 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.768e-05/0.148, allocations: 15.91 kB / 455 MB, free: 5.598 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.269e-05/0.148, allocations: 12.31 kB / 455 MB, free: 5.586 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.936e-06/0.148, allocations: 0 / 455 MB, free: 5.586 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.253e-06/0.1481, allocations: 4.312 kB / 455 MB, free: 5.582 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.482e-06/0.1481, allocations: 11.91 kB / 455 MB, free: 5.57 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002285/0.1483, allocations: 209.5 kB / 455.2 MB, free: 5.316 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.985e-06/0.1483, allocations: 4 kB / 455.3 MB, free: 5.312 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001213/0.1484, allocations: 23.92 kB / 455.3 MB, free: 5.289 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.995e-06/0.1485, allocations: 0 / 455.3 MB, free: 5.289 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.104e-05/0.1485, allocations: 0 / 455.3 MB, free: 5.289 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.757e-06/0.1485, allocations: 4 kB / 455.3 MB, free: 5.285 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.402e-06/0.1485, allocations: 0 / 455.3 MB, free: 5.285 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001505/0.15, allocations: 1.36 MB / 456.6 MB, free: 3.773 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.303e-05/0.1501, allocations: 88.91 kB / 456.7 MB, free: 3.668 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.783e-05/0.1501, allocations: 11.94 kB / 456.7 MB, free: 3.656 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.478e-05/0.1502, allocations: 4 kB / 456.7 MB, free: 3.652 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.494e-05/0.1503, allocations: 7.984 kB / 456.7 MB, free: 3.645 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.55e-06/0.1503, allocations: 4.094 kB / 456.8 MB, free: 3.641 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.771e-05/0.1504, allocations: 115.9 kB / 456.9 MB, free: 3.527 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.1504, allocations: 0 / 456.9 MB, free: 3.527 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003561/0.1508, allocations: 23.94 kB / 456.9 MB, free: 3.504 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.0001174/0.1509, allocations: 103.2 kB / 457 MB, free: 3.395 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002466/0.1511, allocations: 68.22 kB / 457.1 MB, free: 3.328 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.1512, allocations: 7.938 kB / 457.1 MB, free: 3.32 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.923e-05/0.1513, allocations: 31.92 kB / 457.1 MB, free: 3.289 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003349/0.1516, allocations: 24.91 kB / 457.1 MB, free: 3.266 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006709/0.1523, allocations: 360.2 kB / 457.5 MB, free: 2.867 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003243/0.1526, allocations: 0.7081 MB / 458.2 MB, free: 2.133 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.933e-05/0.1527, allocations: 12.8 kB / 458.2 MB, free: 2.121 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.56e-05/0.1527, allocations: 19.44 kB / 458.2 MB, free: 2.102 MB / 334.1 MB Notification: Performance of SimCode: time 2.01e-07/0.1527, allocations: 0 / 458.2 MB, free: 2.102 MB / 334.1 MB Notification: Performance of Templates: time 0.003697/0.1565, allocations: 1.036 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=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