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.001246/0.001245, allocations: 102.9 kB / 15.98 MB, free: 5.891 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.001177/0.001177, allocations: 193.4 kB / 16.91 MB, free: 5.746 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.639/1.639, allocations: 222.9 MB / 240.6 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.2796/0.2796, allocations: 16.77 MB / 307.5 MB, free: 14.87 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001793/0.001793, allocations: 63.91 kB / 374 MB, free: 1.906 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5321/0.5339, allocations: 53.54 MB / 427.5 MB, free: 40.6 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLeadLag): time 0.003506/0.5374, allocations: 1.856 MB / 429.4 MB, free: 39.9 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003772/0.5378, allocations: 160.6 kB / 429.5 MB, free: 39.79 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001135/0.538, allocations: 2.875 kB / 429.5 MB, free: 39.79 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001641/0.5381, allocations: 11.06 kB / 429.5 MB, free: 39.78 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001671/0.5383, allocations: 26 kB / 429.6 MB, free: 39.76 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 9.419e-05/0.5384, allocations: 30.62 kB / 429.6 MB, free: 39.75 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001906/0.5386, allocations: 134.7 kB / 429.7 MB, free: 39.68 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001698/0.5388, allocations: 55.23 kB / 429.8 MB, free: 39.65 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.409e-05/0.5389, allocations: 54.52 kB / 429.8 MB, free: 39.62 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001133/0.539, allocations: 42.52 kB / 429.9 MB, free: 39.6 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.961e-05/0.539, allocations: 11.69 kB / 429.9 MB, free: 39.6 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.274e-05/0.539, allocations: 9.438 kB / 429.9 MB, free: 39.6 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.308e-05/0.5391, allocations: 22.23 kB / 429.9 MB, free: 39.58 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.308e-05/0.5391, allocations: 54.73 kB / 430 MB, free: 39.54 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001227/0.5393, allocations: 75.89 kB / 430.1 MB, free: 39.52 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.164e-06/0.5393, allocations: 0 / 430.1 MB, free: 39.52 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.5393, allocations: 4 kB / 430.1 MB, free: 39.51 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.405e-06/0.5393, allocations: 0 / 430.1 MB, free: 39.51 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.0006114/0.5399, allocations: 430.2 kB / 430.5 MB, free: 39.1 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.542e-05/0.54, allocations: 8.531 kB / 430.5 MB, free: 39.1 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.17e-05/0.54, allocations: 17.5 kB / 430.5 MB, free: 39.09 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002336/0.5403, allocations: 212.9 kB / 430.7 MB, free: 38.87 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.761e-05/0.5403, allocations: 13.73 kB / 430.7 MB, free: 38.86 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.443e-05/0.5403, allocations: 14.25 kB / 430.7 MB, free: 38.86 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002409/0.5406, allocations: 120.5 kB / 430.9 MB, free: 38.77 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.154e-05/0.5406, allocations: 2.844 kB / 430.9 MB, free: 38.77 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.648e-05/0.5406, allocations: 4 kB / 430.9 MB, free: 38.77 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.133e-06/0.5406, allocations: 2.906 kB / 430.9 MB, free: 38.77 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001797/0.5408, allocations: 59.59 kB / 430.9 MB, free: 38.75 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006658/0.5415, allocations: 463.6 kB / 431.4 MB, free: 38.35 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003793/0.5419, allocations: 120.7 kB / 431.5 MB, free: 38.26 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001063/0.542, allocations: 44.22 kB / 431.5 MB, free: 38.23 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.554e-05/0.542, allocations: 6.406 kB / 431.5 MB, free: 38.22 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.065e-05/0.5421, allocations: 38.44 kB / 431.6 MB, free: 38.18 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.132e-06/0.5421, allocations: 7 kB / 431.6 MB, free: 38.17 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003696/0.5424, allocations: 119.7 kB / 431.7 MB, free: 38.11 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.742e-05/0.5425, allocations: 105.9 kB / 431.8 MB, free: 37.98 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001308/0.5426, allocations: 156.9 kB / 432 MB, free: 37.86 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.509e-05/0.5427, allocations: 25.7 kB / 432 MB, free: 37.83 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.78e-05/0.5427, allocations: 115.6 kB / 432.1 MB, free: 37.72 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.601e-05/0.5428, allocations: 24.16 kB / 432.1 MB, free: 37.7 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.744e-05/0.5428, allocations: 24.84 kB / 432.1 MB, free: 37.68 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.584e-05/0.5429, allocations: 320.7 kB / 432.5 MB, free: 37.37 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.363e-05/0.543, allocations: 22.75 kB / 432.5 MB, free: 37.36 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.208e-05/0.5431, allocations: 68.84 kB / 432.6 MB, free: 37.3 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001675/0.5433, allocations: 79.97 kB / 432.6 MB, free: 37.24 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.5433, allocations: 0 / 432.6 MB, free: 37.24 MB / 350.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003446/0.5436, allocations: 142.7 kB / 432.8 MB, free: 37.16 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.757e-05/0.5437, allocations: 5.812 kB / 432.8 MB, free: 37.16 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.222e-06/0.5437, allocations: 0 / 432.8 MB, free: 37.16 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002324/0.5439, allocations: 40.47 kB / 432.8 MB, free: 37.14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.875e-05/0.544, allocations: 18.34 kB / 432.8 MB, free: 37.14 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000994/0.545, allocations: 1.458 MB / 434.3 MB, free: 35.69 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.008e-05/0.5451, allocations: 2.75 kB / 434.3 MB, free: 35.69 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.518e-05/0.5452, allocations: 10.11 kB / 434.3 MB, free: 35.69 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.687e-05/0.5452, allocations: 122.4 kB / 434.4 MB, free: 35.57 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.297e-05/0.5453, allocations: 10.81 kB / 434.4 MB, free: 35.56 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.66e-05/0.5453, allocations: 19.03 kB / 434.5 MB, free: 35.55 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.449e-06/0.5453, allocations: 6.016 kB / 434.5 MB, free: 35.55 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.703e-06/0.5453, allocations: 0 / 434.5 MB, free: 35.55 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.282e-06/0.5454, allocations: 2.781 kB / 434.5 MB, free: 35.55 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002047/0.5456, allocations: 212.3 kB / 434.7 MB, free: 35.33 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.5456, allocations: 0 / 434.7 MB, free: 35.33 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001192/0.5457, allocations: 21.73 kB / 434.7 MB, free: 35.33 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.763e-06/0.5457, allocations: 0 / 434.7 MB, free: 35.33 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.46e-05/0.5457, allocations: 6.75 kB / 434.7 MB, free: 35.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.532e-06/0.5457, allocations: 4 kB / 434.7 MB, free: 35.32 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.5457, allocations: 0 / 434.7 MB, free: 35.32 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003226/0.5461, allocations: 231.5 kB / 434.9 MB, free: 35.14 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.771e-05/0.5461, allocations: 91.89 kB / 435 MB, free: 35.04 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.927e-05/0.5461, allocations: 7.031 kB / 435 MB, free: 35.03 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001053/0.5462, allocations: 10.22 kB / 435 MB, free: 35.03 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.808e-05/0.5463, allocations: 10.69 kB / 435 MB, free: 35.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.025e-06/0.5463, allocations: 6.344 kB / 435 MB, free: 35.02 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.437e-05/0.5464, allocations: 115.4 kB / 435.2 MB, free: 34.93 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5464, allocations: 0 / 435.2 MB, free: 34.93 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002501/0.5467, allocations: 21.12 kB / 435.2 MB, free: 34.93 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.0001061/0.5468, allocations: 97.69 kB / 435.3 MB, free: 34.84 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004778/0.5473, allocations: 201.2 kB / 435.5 MB, free: 34.7 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.5473, allocations: 0 / 435.5 MB, free: 34.7 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001014/0.5474, allocations: 38.11 kB / 435.5 MB, free: 34.69 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004025/0.5478, allocations: 27.56 kB / 435.5 MB, free: 34.68 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005945/0.5484, allocations: 320.9 kB / 435.9 MB, free: 34.42 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001885/0.5486, allocations: 0.7092 MB / 436.6 MB, free: 33.72 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.614e-05/0.5486, allocations: 16.97 kB / 436.6 MB, free: 33.71 MB / 350.1 MB Notification: Performance of SimCode: time 2.1e-07/0.5487, allocations: 0 / 436.6 MB, free: 33.71 MB / 350.1 MB Notification: Performance of Templates: time 0.003794/0.5524, allocations: 1.723 MB / 438.3 MB, free: 33.55 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