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.001163/0.001163, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001219/0.001219, allocations: 197.1 kB / 16.14 MB, free: 6.711 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.312/1.312, allocations: 222.9 MB / 239.8 MB, free: 4.613 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.2224/0.2224, allocations: 16.76 MB / 306.7 MB, free: 14.94 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00142/0.00142, allocations: 59.91 kB / 373.1 MB, free: 2.055 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3189/0.3203, allocations: 53.55 MB / 426.7 MB, free: 40.8 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLeadLag): time 0.002446/0.3228, allocations: 1.854 MB / 428.5 MB, free: 40.12 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002897/0.3231, allocations: 147.2 kB / 428.7 MB, free: 40.05 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.651e-05/0.3232, allocations: 7.5 kB / 428.7 MB, free: 40.04 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001349/0.3234, allocations: 17.23 kB / 428.7 MB, free: 40.04 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001264/0.3235, allocations: 25.92 kB / 428.7 MB, free: 40.02 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 7.43e-05/0.3236, allocations: 34.52 kB / 428.7 MB, free: 40 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001256/0.3237, allocations: 117.7 kB / 428.9 MB, free: 39.94 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001287/0.3239, allocations: 53.83 kB / 428.9 MB, free: 39.91 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.881e-05/0.3239, allocations: 45.31 kB / 429 MB, free: 39.89 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.777e-05/0.324, allocations: 49.31 kB / 429 MB, free: 39.87 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.762e-05/0.3241, allocations: 2.938 kB / 429 MB, free: 39.87 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.133e-05/0.3241, allocations: 6.312 kB / 429 MB, free: 39.87 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.159e-05/0.3241, allocations: 21.78 kB / 429 MB, free: 39.86 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.43e-05/0.3242, allocations: 47.36 kB / 429.1 MB, free: 39.82 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001077/0.3243, allocations: 102.2 kB / 429.2 MB, free: 39.77 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.466e-06/0.3243, allocations: 0 / 429.2 MB, free: 39.77 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.72e-07/0.3243, allocations: 3.938 kB / 429.2 MB, free: 39.77 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.879e-06/0.3243, allocations: 0 / 429.2 MB, free: 39.77 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.0005189/0.3248, allocations: 432.3 kB / 429.6 MB, free: 39.36 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.08e-05/0.3249, allocations: 8.812 kB / 429.6 MB, free: 39.36 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.558e-05/0.3249, allocations: 14.59 kB / 429.6 MB, free: 39.35 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001927/0.3251, allocations: 217.5 kB / 429.8 MB, free: 39.13 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.291e-05/0.3251, allocations: 15.2 kB / 429.9 MB, free: 39.12 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.621e-05/0.3252, allocations: 9.156 kB / 429.9 MB, free: 39.12 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002191/0.3254, allocations: 122 kB / 430 MB, free: 39.03 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.736e-06/0.3254, allocations: 0 / 430 MB, free: 39.03 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.437e-05/0.3254, allocations: 10.92 kB / 430 MB, free: 39.02 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.92e-06/0.3254, allocations: 0 / 430 MB, free: 39.02 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001785/0.3256, allocations: 64.56 kB / 430.1 MB, free: 39 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005354/0.3262, allocations: 456.6 kB / 430.5 MB, free: 38.61 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003436/0.3265, allocations: 117.6 kB / 430.6 MB, free: 38.52 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.594e-05/0.3266, allocations: 47.45 kB / 430.7 MB, free: 38.48 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.5e-05/0.3267, allocations: 4 kB / 430.7 MB, free: 38.48 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.415e-05/0.3267, allocations: 37.44 kB / 430.7 MB, free: 38.44 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.212e-06/0.3267, allocations: 0 / 430.7 MB, free: 38.44 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003505/0.327, allocations: 122 kB / 430.8 MB, free: 38.38 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.718e-05/0.3271, allocations: 107.1 kB / 430.9 MB, free: 38.25 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001029/0.3272, allocations: 155.6 kB / 431.1 MB, free: 38.12 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.181e-05/0.3272, allocations: 28.52 kB / 431.1 MB, free: 38.09 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.582e-05/0.3273, allocations: 116.1 kB / 431.2 MB, free: 37.99 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.778e-05/0.3273, allocations: 22.28 kB / 431.2 MB, free: 37.97 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.869e-05/0.3273, allocations: 22.59 kB / 431.3 MB, free: 37.95 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.025e-05/0.3274, allocations: 325.1 kB / 431.6 MB, free: 37.63 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.794e-05/0.3275, allocations: 25.38 kB / 431.6 MB, free: 37.62 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.373e-05/0.3276, allocations: 68.94 kB / 431.7 MB, free: 37.56 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001676/0.3277, allocations: 77.34 kB / 431.8 MB, free: 37.51 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.3278, allocations: 0 / 431.8 MB, free: 37.51 MB / 350.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003369/0.3281, allocations: 142.4 kB / 431.9 MB, free: 37.43 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.307e-05/0.3281, allocations: 7.156 kB / 431.9 MB, free: 37.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.68e-06/0.3281, allocations: 7.234 kB / 431.9 MB, free: 37.42 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002023/0.3283, allocations: 41.09 kB / 431.9 MB, free: 37.4 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001051/0.3285, allocations: 18.75 kB / 432 MB, free: 37.4 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008168/0.3293, allocations: 1.343 MB / 433.3 MB, free: 36.06 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001005/0.3294, allocations: 17.17 kB / 433.3 MB, free: 36.05 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.022e-05/0.3294, allocations: 10.66 kB / 433.3 MB, free: 36.04 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 7.056e-05/0.3295, allocations: 115.6 kB / 433.4 MB, free: 35.93 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.658e-05/0.3295, allocations: 13.47 kB / 433.5 MB, free: 35.92 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.488e-05/0.3296, allocations: 14.56 kB / 433.5 MB, free: 35.91 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-06/0.3296, allocations: 4.062 kB / 433.5 MB, free: 35.91 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.154e-06/0.3296, allocations: 2.875 kB / 433.5 MB, free: 35.91 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.287e-06/0.3296, allocations: 3.938 kB / 433.5 MB, free: 35.91 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001641/0.3298, allocations: 208.5 kB / 433.7 MB, free: 35.7 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.472e-06/0.3298, allocations: 3 kB / 433.7 MB, free: 35.7 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001223/0.3299, allocations: 14.8 kB / 433.7 MB, free: 35.7 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.445e-05/0.3299, allocations: 0 / 433.7 MB, free: 35.7 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.275e-05/0.3299, allocations: 6.938 kB / 433.7 MB, free: 35.69 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.3299, allocations: 0 / 433.7 MB, free: 35.69 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.3299, allocations: 2.844 kB / 433.7 MB, free: 35.69 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000298/0.3303, allocations: 240.1 kB / 433.9 MB, free: 35.5 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.679e-05/0.3303, allocations: 87.06 kB / 434 MB, free: 35.4 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.646e-05/0.3303, allocations: 2.969 kB / 434 MB, free: 35.4 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001106/0.3304, allocations: 6.969 kB / 434 MB, free: 35.4 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.215e-05/0.3305, allocations: 14.28 kB / 434.1 MB, free: 35.39 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.793e-06/0.3305, allocations: 7 kB / 434.1 MB, free: 35.39 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.244e-05/0.3306, allocations: 113.3 kB / 434.2 MB, free: 35.3 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.3306, allocations: 0 / 434.2 MB, free: 35.3 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002591/0.3308, allocations: 21.62 kB / 434.2 MB, free: 35.3 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 7.593e-05/0.3309, allocations: 105.3 kB / 434.3 MB, free: 35.2 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004641/0.3314, allocations: 198.8 kB / 434.5 MB, free: 35.07 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.3314, allocations: 3.938 kB / 434.5 MB, free: 35.06 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000101/0.3315, allocations: 27.31 kB / 434.5 MB, free: 35.06 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004101/0.3319, allocations: 29.69 kB / 434.6 MB, free: 35.05 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004608/0.3324, allocations: 286.1 kB / 434.8 MB, free: 34.82 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001267/0.3325, allocations: 0.7089 MB / 435.5 MB, free: 34.12 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.825e-05/0.3326, allocations: 13.47 kB / 435.6 MB, free: 34.11 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.468e-05/0.3326, allocations: 13.09 kB / 435.6 MB, free: 34.11 MB / 350.1 MB Notification: Performance of SimCode: time 3.41e-07/0.3326, allocations: 0 / 435.6 MB, free: 34.11 MB / 350.1 MB Notification: Performance of Templates: time 0.003374/0.336, allocations: 1.161 MB / 436.7 MB, free: 33.99 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Controls.Test.TestLeadLag_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerGrids_dev_PowerGrids.Controls.Test.TestLeadLag.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches