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.001343/0.001343, allocations: 98.83 kB / 16.35 MB, free: 5.824 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.001286/0.001286, allocations: 196.6 kB / 17.29 MB, free: 5.48 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.365/1.365, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.08813/0.08813, allocations: 16.74 MB / 307.9 MB, free: 14.44 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00171/0.00171, allocations: 67.22 kB / 375.2 MB, free: 48.74 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1208/0.1225, allocations: 53.57 MB / 428.8 MB, free: 9.832 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDerivativeLag): time 0.003435/0.126, allocations: 1.813 MB / 430.6 MB, free: 8.004 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004734/0.1265, allocations: 171.4 kB / 430.8 MB, free: 7.836 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001241/0.1267, allocations: 7.938 kB / 430.8 MB, free: 7.828 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00016/0.1268, allocations: 23.72 kB / 430.8 MB, free: 7.805 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001754/0.1271, allocations: 19.86 kB / 430.8 MB, free: 7.785 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001278/0.1272, allocations: 47.89 kB / 430.9 MB, free: 7.738 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001974/0.1274, allocations: 123.7 kB / 431 MB, free: 7.617 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001862/0.1276, allocations: 53.27 kB / 431.1 MB, free: 7.562 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.519e-05/0.1277, allocations: 43.8 kB / 431.1 MB, free: 7.52 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001052/0.1278, allocations: 51.7 kB / 431.2 MB, free: 7.469 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.835e-05/0.1278, allocations: 8 kB / 431.2 MB, free: 7.461 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.964e-05/0.1279, allocations: 8 kB / 431.2 MB, free: 7.453 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.182e-05/0.1279, allocations: 19.92 kB / 431.2 MB, free: 7.434 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.514e-05/0.128, allocations: 55.67 kB / 431.2 MB, free: 7.379 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001617/0.1281, allocations: 111.5 kB / 431.4 MB, free: 7.27 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.1282, allocations: 0 / 431.4 MB, free: 7.27 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1282, allocations: 0 / 431.4 MB, free: 7.27 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.688e-06/0.1282, allocations: 0 / 431.4 MB, free: 7.27 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.0005288/0.1287, allocations: 415.2 kB / 431.8 MB, free: 6.812 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.783e-05/0.1288, allocations: 12.02 kB / 431.8 MB, free: 6.801 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.198e-05/0.1288, allocations: 20.75 kB / 431.8 MB, free: 6.781 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002659/0.1291, allocations: 220 kB / 432 MB, free: 6.527 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.812e-05/0.1291, allocations: 8.562 kB / 432 MB, free: 6.52 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.152e-05/0.1292, allocations: 8.375 kB / 432 MB, free: 6.512 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002983/0.1295, allocations: 142.1 kB / 432.2 MB, free: 6.352 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.043e-05/0.1295, allocations: 7.938 kB / 432.2 MB, free: 6.344 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.651e-05/0.1295, allocations: 4 kB / 432.2 MB, free: 6.34 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.931e-06/0.1296, allocations: 0 / 432.2 MB, free: 6.34 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002812/0.1298, allocations: 71.88 kB / 432.2 MB, free: 6.27 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007295/0.1306, allocations: 0.5991 MB / 432.8 MB, free: 5.602 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003295/0.1309, allocations: 107.9 kB / 432.9 MB, free: 5.469 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001635/0.1311, allocations: 54.61 kB / 433 MB, free: 5.406 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.587e-05/0.1312, allocations: 0 / 433 MB, free: 5.406 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.592e-05/0.1312, allocations: 30.56 kB / 433 MB, free: 5.367 MB / 302.1 MB Notification: Performance of pre-optimization done (n=7): time 1.423e-06/0.1312, allocations: 0 / 433 MB, free: 5.367 MB / 302.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004891/0.1317, allocations: 117.8 kB / 433.1 MB, free: 5.246 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.027e-05/0.1317, allocations: 110.8 kB / 433.3 MB, free: 5.113 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001279/0.1319, allocations: 150.4 kB / 433.4 MB, free: 4.957 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.278e-05/0.1319, allocations: 25.7 kB / 433.4 MB, free: 4.926 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.74e-05/0.132, allocations: 115.9 kB / 433.5 MB, free: 4.809 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.487e-05/0.132, allocations: 31.62 kB / 433.6 MB, free: 4.777 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.996e-05/0.1321, allocations: 29.62 kB / 433.6 MB, free: 4.742 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.651e-05/0.1321, allocations: 330.9 kB / 433.9 MB, free: 4.41 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001162/0.1323, allocations: 19.98 kB / 433.9 MB, free: 4.391 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001329/0.1324, allocations: 65.98 kB / 434 MB, free: 4.305 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002402/0.1327, allocations: 101 kB / 434.1 MB, free: 4.188 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/0.1327, allocations: 0 / 434.1 MB, free: 4.188 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000336/0.133, allocations: 121.5 kB / 434.2 MB, free: 4.062 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.685e-05/0.133, allocations: 4 kB / 434.2 MB, free: 4.059 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.733e-06/0.1331, allocations: 4 kB / 434.2 MB, free: 4.055 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.841e-05/0.1331, allocations: 0 / 434.2 MB, free: 4.055 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001866/0.1333, allocations: 32.23 kB / 434.3 MB, free: 4.023 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.377e-06/0.1333, allocations: 7.984 kB / 434.3 MB, free: 4.016 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00012/0.1334, allocations: 19.86 kB / 434.3 MB, free: 3.996 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.461e-05/0.1335, allocations: 4 kB / 434.3 MB, free: 3.992 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 9.111e-05/0.1336, allocations: 130.7 kB / 434.4 MB, free: 3.855 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.701e-05/0.1336, allocations: 15.81 kB / 434.4 MB, free: 3.84 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.763e-05/0.1337, allocations: 8.312 kB / 434.4 MB, free: 3.828 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.577e-06/0.1337, allocations: 4 kB / 434.4 MB, free: 3.824 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.102e-06/0.1337, allocations: 3.984 kB / 434.5 MB, free: 3.82 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.1337, allocations: 0 / 434.5 MB, free: 3.82 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002635/0.134, allocations: 205.6 kB / 434.7 MB, free: 3.57 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.134, allocations: 0 / 434.7 MB, free: 3.57 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001553/0.1342, allocations: 15.98 kB / 434.7 MB, free: 3.555 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.075e-06/0.1342, allocations: 8 kB / 434.7 MB, free: 3.547 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.408e-05/0.1342, allocations: 4 kB / 434.7 MB, free: 3.543 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.394e-06/0.1342, allocations: 3.938 kB / 434.7 MB, free: 3.539 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.1342, allocations: 4 kB / 434.7 MB, free: 3.535 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004283/0.1346, allocations: 229 kB / 434.9 MB, free: 3.289 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.828e-05/0.1347, allocations: 89.05 kB / 435 MB, free: 3.184 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.844e-05/0.1347, allocations: 4 kB / 435 MB, free: 3.18 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001546/0.1349, allocations: 7.984 kB / 435 MB, free: 3.172 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.899e-05/0.135, allocations: 4 kB / 435 MB, free: 3.168 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.464e-05/0.135, allocations: 4 kB / 435 MB, free: 3.164 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.893e-05/0.1351, allocations: 113.1 kB / 435.1 MB, free: 3.055 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1351, allocations: 0 / 435.1 MB, free: 3.055 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004865/0.1356, allocations: 23.84 kB / 435.1 MB, free: 3.031 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 9.726e-05/0.1357, allocations: 99.31 kB / 435.2 MB, free: 2.926 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003132/0.136, allocations: 71.77 kB / 435.3 MB, free: 2.855 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.1361, allocations: 0 / 435.3 MB, free: 2.855 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001214/0.1362, allocations: 31.98 kB / 435.3 MB, free: 2.824 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005184/0.1367, allocations: 32.27 kB / 435.4 MB, free: 2.797 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006062/0.1373, allocations: 237.8 kB / 435.6 MB, free: 2.531 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001417/0.1375, allocations: 0.7041 MB / 436.3 MB, free: 1.801 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.861e-05/0.1376, allocations: 16.56 kB / 436.3 MB, free: 1.781 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.411e-05/0.1376, allocations: 19.42 kB / 436.4 MB, free: 1.762 MB / 302.1 MB Notification: Performance of SimCode: time 3.51e-07/0.1377, allocations: 0 / 436.4 MB, free: 1.762 MB / 302.1 MB Notification: Performance of Templates: time 0.004631/0.1423, allocations: 0.9797 MB / 437.3 MB, free: 0.7891 MB / 302.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=480 -s gbode -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