Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerGrids_dev_PowerGrids.Controls.Test.TestLeadLag.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.TestLeadLag,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="leadLag.T1|leadLag.T2|leadLag.feedback.y|leadLag.firstOrder.T|leadLag.firstOrder.initType|leadLag.firstOrder.k|leadLag.firstOrder.u|leadLag.firstOrder.y|leadLag.firstOrder.y_start|leadLag.gain.k|leadLag.gain.u|leadLag.gain.y|leadLag.initType|leadLag.k|leadLag.noDynamics|leadLag.u|leadLag.y|leadLag.yStart|leadLagAnalyticSolution.y|leadLagNoDynamics.T1|leadLagNoDynamics.T2|leadLagNoDynamics.feedback.y|leadLagNoDynamics.gain.k|leadLagNoDynamics.gain.u|leadLagNoDynamics.gain.y|leadLagNoDynamics.initType|leadLagNoDynamics.k|leadLagNoDynamics.noDynamics|leadLagNoDynamics.u|leadLagNoDynamics.y|leadLagNoDynamics.yStart|leadLagNoDynamics.zero.y|leadLagNoDynamicsAnalyticSolution.y|step.height|step.offset|step.startTime|step.y|time",fileNamePrefix="PowerGrids_dev_PowerGrids.Controls.Test.TestLeadLag") translateModel(PowerGrids.Controls.Test.TestLeadLag,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="leadLag.T1|leadLag.T2|leadLag.feedback.y|leadLag.firstOrder.T|leadLag.firstOrder.initType|leadLag.firstOrder.k|leadLag.firstOrder.u|leadLag.firstOrder.y|leadLag.firstOrder.y_start|leadLag.gain.k|leadLag.gain.u|leadLag.gain.y|leadLag.initType|leadLag.k|leadLag.noDynamics|leadLag.u|leadLag.y|leadLag.yStart|leadLagAnalyticSolution.y|leadLagNoDynamics.T1|leadLagNoDynamics.T2|leadLagNoDynamics.feedback.y|leadLagNoDynamics.gain.k|leadLagNoDynamics.gain.u|leadLagNoDynamics.gain.y|leadLagNoDynamics.initType|leadLagNoDynamics.k|leadLagNoDynamics.noDynamics|leadLagNoDynamics.u|leadLagNoDynamics.y|leadLagNoDynamics.yStart|leadLagNoDynamics.zero.y|leadLagNoDynamicsAnalyticSolution.y|step.height|step.offset|step.startTime|step.y|time",fileNamePrefix="PowerGrids_dev_PowerGrids.Controls.Test.TestLeadLag") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001747/0.001747, allocations: 110.9 kB / 16.41 MB, free: 6.496 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.001292/0.001292, allocations: 185.5 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.392/1.392, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.07703/0.07704, allocations: 16.77 MB / 308 MB, free: 14.41 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001236/0.001236, allocations: 55.91 kB / 429.3 MB, free: 8.469 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.122/0.1232, allocations: 53.57 MB / 482.9 MB, free: 2.852 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLeadLag): time 0.003578/0.1268, allocations: 1.803 MB / 484.7 MB, free: 1.039 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005078/0.1274, allocations: 159.4 kB / 484.9 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001571/0.1276, allocations: 3.938 kB / 484.9 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001723/0.1278, allocations: 23.8 kB / 484.9 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001877/0.128, allocations: 19.8 kB / 484.9 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001215/0.1281, allocations: 47.89 kB / 485 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002235/0.1283, allocations: 127.7 kB / 485.1 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001828/0.1285, allocations: 49.27 kB / 485.1 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.055e-05/0.1286, allocations: 47.84 kB / 485.2 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001412/0.1288, allocations: 55.7 kB / 485.2 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.96e-05/0.1288, allocations: 8 kB / 485.2 MB, free: 0.5 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.708e-05/0.1288, allocations: 12 kB / 485.3 MB, free: 500 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.191e-05/0.1289, allocations: 15.92 kB / 485.3 MB, free: 484 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.426e-05/0.1289, allocations: 71.59 kB / 485.3 MB, free: 412 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001865/0.1291, allocations: 103.6 kB / 485.4 MB, free: 308 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.1291, allocations: 0 / 485.4 MB, free: 308 kB / 350.1 MB Notification: Performance of FrontEnd: time 2.575e-06/0.1292, allocations: 0 / 485.4 MB, free: 308 kB / 350.1 MB Notification: Performance of Transformations before backend: time 6.933e-06/0.1292, allocations: 0 / 485.4 MB, free: 308 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: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.000744/0.1299, allocations: 434.9 kB / 485.9 MB, free: 15.82 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.234e-05/0.13, allocations: 8.031 kB / 485.9 MB, free: 15.81 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.26e-05/0.13, allocations: 20.75 kB / 485.9 MB, free: 15.79 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003561/0.1304, allocations: 210.8 kB / 486.1 MB, free: 15.55 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.144e-05/0.1304, allocations: 4.375 kB / 486.1 MB, free: 15.55 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.534e-05/0.1305, allocations: 12.38 kB / 486.1 MB, free: 15.54 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002749/0.1307, allocations: 124.3 kB / 486.2 MB, free: 15.4 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.658e-06/0.1308, allocations: 0 / 486.2 MB, free: 15.4 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.479e-05/0.1308, allocations: 4 kB / 486.2 MB, free: 15.39 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.403e-05/0.1308, allocations: 4 kB / 486.2 MB, free: 15.39 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001967/0.131, allocations: 67.8 kB / 486.3 MB, free: 15.32 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000714/0.1317, allocations: 445.1 kB / 486.7 MB, free: 14.83 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003944/0.1321, allocations: 123.8 kB / 486.9 MB, free: 14.68 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001143/0.1323, allocations: 46.62 kB / 486.9 MB, free: 14.62 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.162e-05/0.1323, allocations: 4 kB / 486.9 MB, free: 14.62 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.597e-05/0.1323, allocations: 38.56 kB / 487 MB, free: 14.57 MB / 366.1 MB Notification: Performance of pre-optimization done (n=7): time 1.242e-06/0.1323, allocations: 0 / 487 MB, free: 14.57 MB / 366.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004146/0.1328, allocations: 125.5 kB / 487.1 MB, free: 14.45 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.948e-05/0.1328, allocations: 111.1 kB / 487.2 MB, free: 14.31 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001436/0.133, allocations: 146.4 kB / 487.3 MB, free: 14.16 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.449e-05/0.133, allocations: 33.7 kB / 487.4 MB, free: 14.12 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.234e-05/0.1331, allocations: 111.9 kB / 487.5 MB, free: 14 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.953e-05/0.1331, allocations: 19.72 kB / 487.5 MB, free: 13.98 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.873e-05/0.1332, allocations: 25.7 kB / 487.5 MB, free: 13.95 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000118/0.1333, allocations: 318.8 kB / 487.8 MB, free: 13.63 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.493e-05/0.1334, allocations: 31.92 kB / 487.9 MB, free: 13.6 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001109/0.1335, allocations: 69.02 kB / 487.9 MB, free: 13.52 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000187/0.1337, allocations: 79.69 kB / 488 MB, free: 13.43 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.827e-06/0.1338, allocations: 4 kB / 488 MB, free: 13.42 MB / 366.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003796/0.1341, allocations: 138.2 kB / 488.1 MB, free: 13.28 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.849e-05/0.1342, allocations: 4 kB / 488.1 MB, free: 13.27 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.985e-06/0.1342, allocations: 4 kB / 488.2 MB, free: 13.27 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002267/0.1344, allocations: 36.92 kB / 488.2 MB, free: 13.23 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001062/0.1345, allocations: 19.92 kB / 488.2 MB, free: 13.21 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001209/0.1357, allocations: 1.457 MB / 489.7 MB, free: 11.61 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001008/0.1359, allocations: 7.938 kB / 489.7 MB, free: 11.6 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.138e-05/0.1359, allocations: 4 kB / 489.7 MB, free: 11.6 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001115/0.136, allocations: 128.5 kB / 489.8 MB, free: 11.46 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.662e-05/0.136, allocations: 7.906 kB / 489.8 MB, free: 11.46 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.045e-05/0.1361, allocations: 24.31 kB / 489.8 MB, free: 11.44 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.1361, allocations: 0 / 489.8 MB, free: 11.44 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.724e-06/0.1361, allocations: 0 / 489.8 MB, free: 11.44 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.238e-06/0.1361, allocations: 4 kB / 489.8 MB, free: 11.43 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002317/0.1363, allocations: 205.6 kB / 490 MB, free: 11.18 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-06/0.1363, allocations: 4 kB / 490 MB, free: 11.18 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001241/0.1365, allocations: 15.98 kB / 490.1 MB, free: 11.16 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.206e-06/0.1365, allocations: 0 / 490.1 MB, free: 11.16 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.397e-05/0.1365, allocations: 3.938 kB / 490.1 MB, free: 11.16 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.744e-06/0.1365, allocations: 4 kB / 490.1 MB, free: 11.16 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.811e-06/0.1365, allocations: 12 kB / 490.1 MB, free: 11.14 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003496/0.1369, allocations: 225 kB / 490.3 MB, free: 10.9 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.314e-05/0.1369, allocations: 96.97 kB / 490.4 MB, free: 10.79 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.749e-05/0.137, allocations: 3.938 kB / 490.4 MB, free: 10.79 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.971e-05/0.1371, allocations: 8.062 kB / 490.4 MB, free: 10.78 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.102e-05/0.1371, allocations: 12.12 kB / 490.4 MB, free: 10.77 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.065e-06/0.1372, allocations: 7.984 kB / 490.4 MB, free: 10.76 MB / 366.1 MB Notification: Performance of sorting global known variables: time 9.174e-05/0.1372, allocations: 115.2 kB / 490.5 MB, free: 10.64 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1373, allocations: 0 / 490.5 MB, free: 10.64 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002663/0.1375, allocations: 16 kB / 490.6 MB, free: 10.63 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (leadLag.firstOrder.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.0001069/0.1376, allocations: 99.19 kB / 490.6 MB, free: 10.52 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004832/0.1381, allocations: 198.6 kB / 490.8 MB, free: 10.32 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/0.1381, allocations: 3.938 kB / 490.8 MB, free: 10.31 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000102/0.1383, allocations: 28.17 kB / 490.9 MB, free: 10.29 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003559/0.1386, allocations: 35.84 kB / 490.9 MB, free: 10.25 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006535/0.1393, allocations: 287 kB / 491.2 MB, free: 9.934 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003114/0.1396, allocations: 0.7041 MB / 491.9 MB, free: 9.203 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.99e-05/0.1397, allocations: 15.42 kB / 491.9 MB, free: 9.188 MB / 366.1 MB Notification: Performance of SimCode: time 5.81e-07/0.1397, allocations: 0 / 491.9 MB, free: 9.188 MB / 366.1 MB Notification: Performance of Templates: time 0.004025/0.1437, allocations: 1.726 MB / 493.6 MB, free: 7.461 MB / 366.1 MB make -j1 -f PowerGrids_dev_PowerGrids.Controls.Test.TestLeadLag.makefile (rm -f PowerGrids_dev_PowerGrids.Controls.Test.TestLeadLag.pipe ; mkfifo PowerGrids_dev_PowerGrids.Controls.Test.TestLeadLag.pipe ; head -c 1048576 < PowerGrids_dev_PowerGrids.Controls.Test.TestLeadLag.pipe >> ../files/PowerGrids_dev_PowerGrids.Controls.Test.TestLeadLag.sim & ./PowerGrids_dev_PowerGrids.Controls.Test.TestLeadLag -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerGrids_dev_PowerGrids.Controls.Test.TestLeadLag.pipe 2>&1) diffSimulationResults("PowerGrids_dev_PowerGrids.Controls.Test.TestLeadLag_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Controls.Test.TestLeadLag_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerGrids_dev_PowerGrids.Controls.Test.TestLeadLag.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches