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.001534/0.001534, allocations: 110.5 kB / 16.41 MB, free: 6.488 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.00149/0.00149, allocations: 187 kB / 17.34 MB, free: 5.762 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.499/1.499, 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.07745/0.07745, allocations: 16.77 MB / 308 MB, free: 14.41 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001259/0.001259, allocations: 64.09 kB / 429.3 MB, free: 8.469 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1198/0.1211, allocations: 53.57 MB / 482.9 MB, free: 2.848 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDerivativeLag): time 0.004345/0.1255, allocations: 1.815 MB / 484.7 MB, free: 1.02 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006229/0.1262, allocations: 167.4 kB / 484.9 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002543/0.1265, allocations: 7.938 kB / 484.9 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002049/0.1267, allocations: 19.8 kB / 484.9 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002202/0.1269, allocations: 23.73 kB / 484.9 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001643/0.1271, allocations: 47.89 kB / 485 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002772/0.1274, allocations: 127.7 kB / 485.1 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002202/0.1276, allocations: 53.31 kB / 485.2 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.918e-05/0.1277, allocations: 47.73 kB / 485.2 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001446/0.1279, allocations: 43.77 kB / 485.3 MB, free: 496 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.051e-05/0.1279, allocations: 8 kB / 485.3 MB, free: 488 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.202e-05/0.128, allocations: 12 kB / 485.3 MB, free: 476 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.148e-05/0.128, allocations: 11.94 kB / 485.3 MB, free: 464 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.371e-05/0.1281, allocations: 63.66 kB / 485.4 MB, free: 400 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002165/0.1283, allocations: 103.6 kB / 485.5 MB, free: 296 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.992e-06/0.1283, allocations: 8 kB / 485.5 MB, free: 288 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.492e-06/0.1283, allocations: 0 / 485.5 MB, free: 288 kB / 350.1 MB Notification: Performance of Transformations before backend: time 8.225e-06/0.1284, allocations: 0 / 485.5 MB, free: 288 kB / 350.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.0008192/0.1292, allocations: 415.2 kB / 485.9 MB, free: 15.82 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.416e-05/0.1292, allocations: 15.97 kB / 485.9 MB, free: 15.81 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.479e-05/0.1293, allocations: 8.844 kB / 485.9 MB, free: 15.8 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004329/0.1298, allocations: 227.9 kB / 486.1 MB, free: 15.54 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.801e-05/0.1298, allocations: 12.56 kB / 486.1 MB, free: 15.53 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.904e-05/0.1298, allocations: 8.375 kB / 486.1 MB, free: 15.52 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003509/0.1302, allocations: 144.2 kB / 486.3 MB, free: 15.36 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.348e-05/0.1302, allocations: 0 / 486.3 MB, free: 15.36 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.753e-05/0.1303, allocations: 0 / 486.3 MB, free: 15.36 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.938e-06/0.1303, allocations: 8 kB / 486.3 MB, free: 15.35 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002444/0.1305, allocations: 71.8 kB / 486.4 MB, free: 15.28 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009602/0.1315, allocations: 0.5914 MB / 486.9 MB, free: 14.62 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003351/0.1318, allocations: 107.8 kB / 487.1 MB, free: 14.48 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001185/0.132, allocations: 46.75 kB / 487.1 MB, free: 14.43 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.708e-05/0.132, allocations: 7.938 kB / 487.1 MB, free: 14.42 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.804e-05/0.1321, allocations: 42.55 kB / 487.1 MB, free: 14.37 MB / 366.1 MB Notification: Performance of pre-optimization done (n=7): time 1.533e-06/0.1321, allocations: 0 / 487.1 MB, free: 14.37 MB / 366.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004512/0.1325, allocations: 109.7 kB / 487.3 MB, free: 14.26 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.308e-05/0.1326, allocations: 107.1 kB / 487.4 MB, free: 14.13 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001801/0.1328, allocations: 157.3 kB / 487.5 MB, free: 13.97 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.138e-05/0.1328, allocations: 25.7 kB / 487.5 MB, free: 13.94 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001124/0.1329, allocations: 127.7 kB / 487.7 MB, free: 13.81 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.075e-05/0.133, allocations: 23.69 kB / 487.7 MB, free: 13.79 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.434e-05/0.1331, allocations: 25.72 kB / 487.7 MB, free: 13.75 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001602/0.1332, allocations: 322.8 kB / 488 MB, free: 13.43 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.538e-05/0.1333, allocations: 23.98 kB / 488 MB, free: 13.41 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001349/0.1335, allocations: 69.98 kB / 488.1 MB, free: 13.32 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002064/0.1337, allocations: 101 kB / 488.2 MB, free: 13.2 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.609e-06/0.1337, allocations: 3.938 kB / 488.2 MB, free: 13.2 MB / 366.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002877/0.134, allocations: 121.3 kB / 488.3 MB, free: 13.07 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.24e-05/0.134, allocations: 16.14 kB / 488.4 MB, free: 13.05 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.462e-06/0.134, allocations: 0 / 488.4 MB, free: 13.05 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.272e-05/0.1341, allocations: 4 kB / 488.4 MB, free: 13.05 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001437/0.1342, allocations: 27.92 kB / 488.4 MB, free: 13.02 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.103e-06/0.1342, allocations: 0 / 488.4 MB, free: 13.02 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.691e-05/0.1343, allocations: 7.938 kB / 488.4 MB, free: 13.02 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.698e-05/0.1343, allocations: 7.984 kB / 488.4 MB, free: 13.01 MB / 366.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.0001535/0.1345, allocations: 125.8 kB / 488.5 MB, free: 12.88 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.209e-05/0.1346, allocations: 11.91 kB / 488.5 MB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.831e-05/0.1346, allocations: 20.25 kB / 488.6 MB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.717e-06/0.1346, allocations: 0 / 488.6 MB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.009e-05/0.1346, allocations: 4 kB / 488.6 MB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.909e-06/0.1346, allocations: 0 / 488.6 MB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000269/0.1349, allocations: 209.8 kB / 488.8 MB, free: 12.58 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.033e-06/0.1349, allocations: 0 / 488.8 MB, free: 12.58 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001227/0.1351, allocations: 23.98 kB / 488.8 MB, free: 12.56 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.288e-06/0.1351, allocations: 0 / 488.8 MB, free: 12.56 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.342e-05/0.1351, allocations: 4 kB / 488.8 MB, free: 12.55 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.835e-06/0.1351, allocations: 4 kB / 488.8 MB, free: 12.55 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.1351, allocations: 0 / 488.8 MB, free: 12.55 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000413/0.1355, allocations: 233 kB / 489 MB, free: 12.3 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.199e-05/0.1356, allocations: 88.98 kB / 489.1 MB, free: 12.2 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.148e-05/0.1356, allocations: 4.062 kB / 489.1 MB, free: 12.19 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.069e-05/0.1357, allocations: 4 kB / 489.1 MB, free: 12.19 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.253e-05/0.1358, allocations: 15.97 kB / 489.1 MB, free: 12.17 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.41e-06/0.1358, allocations: 0 / 489.1 MB, free: 12.17 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001012/0.1359, allocations: 111.2 kB / 489.2 MB, free: 12.06 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1359, allocations: 0 / 489.2 MB, free: 12.06 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002705/0.1362, allocations: 23.91 kB / 489.3 MB, free: 12.04 MB / 366.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.0001336/0.1363, allocations: 91.25 kB / 489.4 MB, free: 11.94 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002807/0.1366, allocations: 79.77 kB / 489.4 MB, free: 11.86 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.221e-06/0.1366, allocations: 4 kB / 489.4 MB, free: 11.86 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 9.897e-05/0.1368, allocations: 27.98 kB / 489.5 MB, free: 11.83 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003563/0.1371, allocations: 26.42 kB / 489.5 MB, free: 11.81 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007229/0.1379, allocations: 271.6 kB / 489.8 MB, free: 11.51 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004377/0.1383, allocations: 0.7118 MB / 490.5 MB, free: 10.77 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.967e-05/0.1384, allocations: 11.44 kB / 490.5 MB, free: 10.76 MB / 366.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1384, allocations: 0 / 490.5 MB, free: 10.76 MB / 366.1 MB Notification: Performance of Templates: time 0.004885/0.1433, allocations: 1.432 MB / 491.9 MB, free: 9.324 MB / 366.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 -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