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.001271/0.001271, allocations: 102.2 kB / 16.27 MB, free: 6 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.001412/0.001412, allocations: 193.3 kB / 17.2 MB, free: 5.609 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.489/1.489, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.07684/0.07684, allocations: 16.78 MB / 307.8 MB, free: 14.49 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0015/0.0015, allocations: 60.44 kB / 374.5 MB, free: 48.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1178/0.1193, allocations: 53.58 MB / 428.1 MB, free: 10.57 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLeadLag): time 0.002813/0.1221, allocations: 1.796 MB / 429.9 MB, free: 8.758 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.000341/0.1225, allocations: 151.5 kB / 430 MB, free: 8.609 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000107/0.1226, allocations: 7.938 kB / 430 MB, free: 8.602 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001323/0.1228, allocations: 19.73 kB / 430 MB, free: 8.582 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001411/0.1229, allocations: 27.8 kB / 430.1 MB, free: 8.555 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 8.221e-05/0.123, allocations: 39.95 kB / 430.1 MB, free: 8.516 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00015/0.1232, allocations: 135.6 kB / 430.2 MB, free: 8.383 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001532/0.1233, allocations: 53.28 kB / 430.3 MB, free: 8.328 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.179e-05/0.1234, allocations: 43.84 kB / 430.3 MB, free: 8.285 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001017/0.1235, allocations: 55.7 kB / 430.4 MB, free: 8.23 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.697e-05/0.1235, allocations: 12 kB / 430.4 MB, free: 8.219 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.058e-05/0.1236, allocations: 11.94 kB / 430.4 MB, free: 8.207 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.078e-05/0.1236, allocations: 27.91 kB / 430.4 MB, free: 8.18 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.792e-05/0.1237, allocations: 51.67 kB / 430.5 MB, free: 8.129 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001279/0.1238, allocations: 99.91 kB / 430.6 MB, free: 8.031 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.1238, allocations: 4 kB / 430.6 MB, free: 8.027 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.31e-07/0.1238, allocations: 0 / 430.6 MB, free: 8.027 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.21e-06/0.1238, allocations: 0 / 430.6 MB, free: 8.027 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: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0005508/0.1244, allocations: 425.4 kB / 431 MB, free: 7.562 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.505e-05/0.1244, allocations: 16.03 kB / 431 MB, free: 7.547 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.363e-05/0.1245, allocations: 16.69 kB / 431 MB, free: 7.531 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002008/0.1247, allocations: 208.7 kB / 431.2 MB, free: 7.289 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.354e-05/0.1247, allocations: 8.375 kB / 431.3 MB, free: 7.281 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.881e-05/0.1247, allocations: 12.38 kB / 431.3 MB, free: 7.27 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002132/0.1249, allocations: 124.3 kB / 431.4 MB, free: 7.133 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.09e-05/0.125, allocations: 0 / 431.4 MB, free: 7.133 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.239e-05/0.125, allocations: 0 / 431.4 MB, free: 7.133 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.771e-06/0.125, allocations: 8 kB / 431.4 MB, free: 7.125 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001726/0.1252, allocations: 59.91 kB / 431.5 MB, free: 7.066 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005357/0.1257, allocations: 453.2 kB / 431.9 MB, free: 6.562 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003634/0.1261, allocations: 119.8 kB / 432 MB, free: 6.418 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.7e-05/0.1262, allocations: 58.55 kB / 432.1 MB, free: 6.352 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.007e-05/0.1262, allocations: 0 / 432.1 MB, free: 6.352 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.479e-05/0.1262, allocations: 34.56 kB / 432.1 MB, free: 6.309 MB / 302.1 MB Notification: Performance of pre-optimization done (n=7): time 1.052e-06/0.1263, allocations: 0 / 432.1 MB, free: 6.309 MB / 302.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003535/0.1266, allocations: 137.6 kB / 432.2 MB, free: 6.168 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.424e-05/0.1267, allocations: 102.8 kB / 432.3 MB, free: 6.043 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.938e-05/0.1268, allocations: 152.1 kB / 432.5 MB, free: 5.883 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.202e-05/0.1268, allocations: 33.64 kB / 432.5 MB, free: 5.844 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.032e-05/0.1268, allocations: 115.9 kB / 432.6 MB, free: 5.727 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.702e-05/0.1269, allocations: 19.66 kB / 432.7 MB, free: 5.707 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.829e-05/0.1269, allocations: 25.7 kB / 432.7 MB, free: 5.676 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.125e-05/0.127, allocations: 327 kB / 433 MB, free: 5.348 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.082e-05/0.127, allocations: 23.98 kB / 433 MB, free: 5.324 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.715e-05/0.1271, allocations: 57.14 kB / 433.1 MB, free: 5.25 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001569/0.1273, allocations: 83.38 kB / 433.2 MB, free: 5.156 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.1273, allocations: 0 / 433.2 MB, free: 5.156 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003149/0.1276, allocations: 142.1 kB / 433.3 MB, free: 5.008 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.443e-05/0.1277, allocations: 8.094 kB / 433.3 MB, free: 5 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.53e-06/0.1277, allocations: 4 kB / 433.3 MB, free: 4.996 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000203/0.1279, allocations: 32.83 kB / 433.3 MB, free: 4.961 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.859e-05/0.128, allocations: 19.92 kB / 433.4 MB, free: 4.941 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008349/0.1288, allocations: 1.453 MB / 434.8 MB, free: 3.344 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.043e-05/0.1289, allocations: 7.938 kB / 434.8 MB, free: 3.336 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.048e-05/0.1289, allocations: 8.047 kB / 434.8 MB, free: 3.328 MB / 302.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 6.849e-05/0.129, allocations: 126.7 kB / 435 MB, free: 3.195 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.267e-05/0.1291, allocations: 7.906 kB / 435 MB, free: 3.188 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.348e-05/0.1291, allocations: 20.25 kB / 435 MB, free: 3.168 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.834e-06/0.1291, allocations: 464 / 435 MB, free: 3.168 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.485e-06/0.1291, allocations: 4 kB / 435 MB, free: 3.164 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.338e-06/0.1291, allocations: 3.984 kB / 435 MB, free: 3.16 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000162/0.1293, allocations: 217.5 kB / 435.2 MB, free: 2.898 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.1293, allocations: 0 / 435.2 MB, free: 2.898 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001098/0.1294, allocations: 19.98 kB / 435.2 MB, free: 2.879 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.003e-06/0.1294, allocations: 0 / 435.2 MB, free: 2.879 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.29e-05/0.1294, allocations: 11.92 kB / 435.2 MB, free: 2.867 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.1294, allocations: 0 / 435.2 MB, free: 2.867 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.41e-07/0.1294, allocations: 3.938 kB / 435.2 MB, free: 2.863 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000284/0.1297, allocations: 229.1 kB / 435.5 MB, free: 2.617 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.911e-05/0.1298, allocations: 89 kB / 435.5 MB, free: 2.512 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.667e-05/0.1298, allocations: 7.938 kB / 435.6 MB, free: 2.504 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001004/0.1299, allocations: 4 kB / 435.6 MB, free: 2.5 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.998e-05/0.1299, allocations: 7.984 kB / 435.6 MB, free: 2.492 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.791e-06/0.13, allocations: 4 kB / 435.6 MB, free: 2.488 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.067e-05/0.13, allocations: 117.3 kB / 435.7 MB, free: 2.375 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.13, allocations: 4.062 kB / 435.7 MB, free: 2.371 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002521/0.1303, allocations: 23.88 kB / 435.7 MB, free: 2.348 MB / 302.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 9.296e-05/0.1304, allocations: 103.2 kB / 435.8 MB, free: 2.238 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004061/0.1308, allocations: 194.5 kB / 436 MB, free: 2.035 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.1308, allocations: 0 / 436 MB, free: 2.035 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.034e-05/0.1309, allocations: 36.16 kB / 436 MB, free: 2 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000376/0.1313, allocations: 27.92 kB / 436.1 MB, free: 1.973 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004882/0.1318, allocations: 275.1 kB / 436.3 MB, free: 1.664 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001231/0.1319, allocations: 0.7078 MB / 437 MB, free: 0.9297 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.645e-05/0.132, allocations: 15.44 kB / 437.1 MB, free: 0.9141 MB / 302.1 MB Notification: Performance of SimCode: time 2.1e-07/0.132, allocations: 4 kB / 437.1 MB, free: 0.9102 MB / 302.1 MB Notification: Performance of Templates: time 0.003117/0.1351, allocations: 1.72 MB / 438.8 MB, free: 15.19 MB / 318.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