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.01288/0.01288, allocations: 101.1 kB / 15.88 MB, free: 6.328 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.002136/0.002136, allocations: 193.1 kB / 16.79 MB, free: 6.254 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.842/1.842, allocations: 222.9 MB / 240.5 MB, free: 4.445 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.3496/0.3496, allocations: 16.79 MB / 307.4 MB, free: 14.96 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001533/0.001533, allocations: 63.91 kB / 373.8 MB, free: 1.996 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5239/0.5255, allocations: 53.55 MB / 427.3 MB, free: 40.67 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLeadLag): time 0.003852/0.5294, allocations: 1.853 MB / 429.2 MB, free: 39.99 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004133/0.5298, allocations: 160 kB / 429.3 MB, free: 39.92 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001279/0.53, allocations: 5.625 kB / 429.4 MB, free: 39.92 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002004/0.5302, allocations: 11.06 kB / 429.4 MB, free: 39.91 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001852/0.5304, allocations: 26.44 kB / 429.4 MB, free: 39.89 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 9.88e-05/0.5305, allocations: 34.62 kB / 429.4 MB, free: 39.88 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000205/0.5307, allocations: 124.5 kB / 429.5 MB, free: 39.82 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001915/0.5309, allocations: 44.95 kB / 429.6 MB, free: 39.79 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.744e-05/0.531, allocations: 40.52 kB / 429.6 MB, free: 39.77 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001297/0.5311, allocations: 55.56 kB / 429.7 MB, free: 39.75 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.871e-05/0.5312, allocations: 7.719 kB / 429.7 MB, free: 39.74 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.299e-05/0.5312, allocations: 3.906 kB / 429.7 MB, free: 39.74 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.472e-05/0.5312, allocations: 23 kB / 429.7 MB, free: 39.73 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.737e-05/0.5313, allocations: 46.48 kB / 429.8 MB, free: 39.7 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001387/0.5314, allocations: 77.78 kB / 429.8 MB, free: 39.67 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.294e-06/0.5314, allocations: 0 / 429.8 MB, free: 39.67 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.5315, allocations: 0 / 429.8 MB, free: 39.67 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.146e-05/0.5315, allocations: 0 / 429.8 MB, free: 39.67 MB / 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.0006894/0.5322, allocations: 429.3 kB / 430.3 MB, free: 39.25 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.902e-05/0.5322, allocations: 8.531 kB / 430.3 MB, free: 39.25 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.003e-05/0.5323, allocations: 16.72 kB / 430.3 MB, free: 39.25 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002673/0.5326, allocations: 215.6 kB / 430.5 MB, free: 39.03 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.635e-05/0.5326, allocations: 11.14 kB / 430.5 MB, free: 39.02 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.687e-05/0.5326, allocations: 7.125 kB / 430.5 MB, free: 39.02 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002665/0.5329, allocations: 122.8 kB / 430.6 MB, free: 38.93 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.287e-05/0.5329, allocations: 4 kB / 430.6 MB, free: 38.93 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.873e-05/0.5329, allocations: 11.34 kB / 430.6 MB, free: 38.92 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.234e-06/0.533, allocations: 0 / 430.6 MB, free: 38.92 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000191/0.5332, allocations: 59.45 kB / 430.7 MB, free: 38.91 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006321/0.5338, allocations: 459.9 kB / 431.2 MB, free: 38.5 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004081/0.5342, allocations: 125.4 kB / 431.3 MB, free: 38.41 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001063/0.5343, allocations: 42.84 kB / 431.3 MB, free: 38.38 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.922e-05/0.5344, allocations: 3.188 kB / 431.3 MB, free: 38.38 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.537e-05/0.5344, allocations: 37.31 kB / 431.4 MB, free: 38.34 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.192e-06/0.5344, allocations: 0 / 431.4 MB, free: 38.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004119/0.5348, allocations: 123.1 kB / 431.5 MB, free: 38.27 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.441e-05/0.5349, allocations: 105.7 kB / 431.6 MB, free: 38.14 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000134/0.535, allocations: 157.6 kB / 431.7 MB, free: 38.02 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.429e-05/0.535, allocations: 25.7 kB / 431.8 MB, free: 37.99 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.92e-05/0.5351, allocations: 116.3 kB / 431.9 MB, free: 37.88 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.215e-05/0.5351, allocations: 25.34 kB / 431.9 MB, free: 37.86 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.504e-05/0.5352, allocations: 26.94 kB / 431.9 MB, free: 37.84 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.589e-05/0.5353, allocations: 325.1 kB / 432.2 MB, free: 37.52 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.437e-05/0.5354, allocations: 18.28 kB / 432.3 MB, free: 37.52 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001/0.5355, allocations: 64.61 kB / 432.3 MB, free: 37.46 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001698/0.5356, allocations: 82.31 kB / 432.4 MB, free: 37.4 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.5357, allocations: 0 / 432.4 MB, free: 37.4 MB / 350.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003684/0.536, allocations: 145.1 kB / 432.5 MB, free: 37.32 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.051e-05/0.5361, allocations: 7.094 kB / 432.5 MB, free: 37.32 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.833e-06/0.5361, allocations: 64 / 432.5 MB, free: 37.32 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000251/0.5363, allocations: 40.36 kB / 432.6 MB, free: 37.3 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001034/0.5364, allocations: 21.5 kB / 432.6 MB, free: 37.3 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00101/0.5375, allocations: 1.346 MB / 434 MB, free: 35.96 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.676e-05/0.5376, allocations: 13.33 kB / 434 MB, free: 35.95 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.396e-05/0.5376, allocations: 6.875 kB / 434 MB, free: 35.95 MB / 350.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 8.832e-05/0.5377, allocations: 121.3 kB / 434.1 MB, free: 35.82 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.578e-05/0.5377, allocations: 13.78 kB / 434.1 MB, free: 35.82 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.587e-05/0.5378, allocations: 11.19 kB / 434.1 MB, free: 35.81 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.385e-06/0.5378, allocations: 2.906 kB / 434.1 MB, free: 35.81 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.773e-06/0.5378, allocations: 3.328 kB / 434.1 MB, free: 35.81 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.192e-06/0.5378, allocations: 3.938 kB / 434.1 MB, free: 35.81 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000186/0.538, allocations: 214 kB / 434.3 MB, free: 35.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.355e-06/0.538, allocations: 2.906 kB / 434.3 MB, free: 35.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000116/0.5381, allocations: 18.17 kB / 434.4 MB, free: 35.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.895e-06/0.5381, allocations: 4 kB / 434.4 MB, free: 35.59 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.799e-05/0.5381, allocations: 6.906 kB / 434.4 MB, free: 35.58 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.372e-06/0.5381, allocations: 0 / 434.4 MB, free: 35.58 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.5381, allocations: 6.844 kB / 434.4 MB, free: 35.58 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003131/0.5385, allocations: 229.9 kB / 434.6 MB, free: 35.39 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.674e-05/0.5385, allocations: 87.8 kB / 434.7 MB, free: 35.3 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.68e-05/0.5385, allocations: 3 kB / 434.7 MB, free: 35.3 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001039/0.5386, allocations: 6.844 kB / 434.7 MB, free: 35.29 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.994e-05/0.5387, allocations: 10.27 kB / 434.7 MB, free: 35.29 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.422e-06/0.5387, allocations: 3.062 kB / 434.7 MB, free: 35.29 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.157e-05/0.5388, allocations: 117.7 kB / 434.8 MB, free: 35.2 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.5388, allocations: 3.938 kB / 434.8 MB, free: 35.2 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002543/0.5391, allocations: 21.78 kB / 434.8 MB, free: 35.2 MB / 350.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.000114/0.5392, allocations: 105.1 kB / 435 MB, free: 35.1 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004654/0.5397, allocations: 200.3 kB / 435.1 MB, free: 34.96 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.5397, allocations: 2.812 kB / 435.1 MB, free: 34.96 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.209e-05/0.5398, allocations: 24.64 kB / 435.2 MB, free: 34.96 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004252/0.5402, allocations: 35.86 kB / 435.2 MB, free: 34.95 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005747/0.5408, allocations: 321.8 kB / 435.5 MB, free: 34.67 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001794/0.541, allocations: 0.7044 MB / 436.2 MB, free: 33.98 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.295e-05/0.541, allocations: 13.19 kB / 436.2 MB, free: 33.97 MB / 350.1 MB Notification: Performance of SimCode: time 3.21e-07/0.541, allocations: 0 / 436.2 MB, free: 33.97 MB / 350.1 MB Notification: Performance of Templates: time 0.003853/0.5449, allocations: 1.705 MB / 437.9 MB, free: 33.82 MB / 350.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