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.001524/0.001531, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00191/0.001911, allocations: 194.4 kB / 16.53 MB, free: 6.664 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.367/1.367, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.1897/0.1897, allocations: 16.79 MB / 307.2 MB, free: 14.8 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00139/0.00139, allocations: 63.91 kB / 373.9 MB, free: 1.504 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2983/0.2997, allocations: 53.55 MB / 427.4 MB, free: 41.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLeadLag): time 0.002648/0.3023, allocations: 1.806 MB / 429.2 MB, free: 40.54 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003028/0.3027, allocations: 150.2 kB / 429.4 MB, free: 40.44 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.428e-05/0.3028, allocations: 3.969 kB / 429.4 MB, free: 40.44 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001057/0.3029, allocations: 22.41 kB / 429.4 MB, free: 40.42 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001275/0.303, allocations: 33.42 kB / 429.4 MB, free: 40.4 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 7.455e-05/0.3031, allocations: 35.14 kB / 429.4 MB, free: 40.38 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001315/0.3032, allocations: 133.7 kB / 429.6 MB, free: 40.31 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001353/0.3034, allocations: 49.81 kB / 429.6 MB, free: 40.29 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.738e-05/0.3034, allocations: 44.48 kB / 429.7 MB, free: 40.27 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.88e-05/0.3035, allocations: 53.03 kB / 429.7 MB, free: 40.24 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.295e-05/0.3036, allocations: 12.56 kB / 429.7 MB, free: 40.23 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.943e-05/0.3036, allocations: 10.16 kB / 429.7 MB, free: 40.23 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.727e-05/0.3036, allocations: 26.53 kB / 429.8 MB, free: 40.21 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.856e-05/0.3037, allocations: 55.05 kB / 429.8 MB, free: 40.18 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000112/0.3038, allocations: 97.8 kB / 429.9 MB, free: 40.13 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.3038, allocations: 0 / 429.9 MB, free: 40.13 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.3038, allocations: 0 / 429.9 MB, free: 40.13 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.2e-06/0.3038, allocations: 0 / 429.9 MB, free: 40.13 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.0004928/0.3043, allocations: 432.7 kB / 430.3 MB, free: 39.72 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.302e-05/0.3044, allocations: 8.562 kB / 430.3 MB, free: 39.72 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.883e-05/0.3044, allocations: 20.81 kB / 430.4 MB, free: 39.71 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002031/0.3046, allocations: 211.2 kB / 430.6 MB, free: 39.49 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.413e-05/0.3046, allocations: 11.33 kB / 430.6 MB, free: 39.48 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.702e-05/0.3047, allocations: 12.94 kB / 430.6 MB, free: 39.48 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002021/0.3049, allocations: 124.9 kB / 430.7 MB, free: 39.39 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.195e-06/0.3049, allocations: 4 kB / 430.7 MB, free: 39.39 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.251e-05/0.3049, allocations: 0 / 430.7 MB, free: 39.39 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.022e-06/0.3049, allocations: 2.938 kB / 430.7 MB, free: 39.39 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001647/0.3051, allocations: 64.5 kB / 430.8 MB, free: 39.37 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005195/0.3056, allocations: 459.5 kB / 431.2 MB, free: 38.97 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003269/0.306, allocations: 120.4 kB / 431.4 MB, free: 38.88 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.303e-05/0.3061, allocations: 49.53 kB / 431.4 MB, free: 38.84 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.737e-05/0.3061, allocations: 0 / 431.4 MB, free: 38.84 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.745e-05/0.3061, allocations: 37.31 kB / 431.4 MB, free: 38.8 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 8.42e-07/0.3061, allocations: 0 / 431.4 MB, free: 38.8 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003489/0.3065, allocations: 130.3 kB / 431.6 MB, free: 38.73 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.559e-05/0.3065, allocations: 102.8 kB / 431.7 MB, free: 38.6 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.62e-05/0.3066, allocations: 149.4 kB / 431.8 MB, free: 38.48 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.265e-05/0.3066, allocations: 32.52 kB / 431.8 MB, free: 38.45 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.886e-05/0.3067, allocations: 116.2 kB / 432 MB, free: 38.34 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.921e-05/0.3067, allocations: 25.81 kB / 432 MB, free: 38.32 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.663e-05/0.3068, allocations: 23.47 kB / 432 MB, free: 38.3 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.228e-05/0.3068, allocations: 321.1 kB / 432.3 MB, free: 37.98 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.965e-05/0.3069, allocations: 21.17 kB / 432.3 MB, free: 37.98 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.99e-05/0.307, allocations: 65.66 kB / 432.4 MB, free: 37.92 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001556/0.3072, allocations: 78.88 kB / 432.5 MB, free: 37.87 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.804e-06/0.3072, allocations: 2.938 kB / 432.5 MB, free: 37.87 MB / 350.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003117/0.3075, allocations: 152.7 kB / 432.6 MB, free: 37.78 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.382e-05/0.3075, allocations: 5.781 kB / 432.6 MB, free: 37.78 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.889e-06/0.3075, allocations: 0 / 432.6 MB, free: 37.78 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001989/0.3077, allocations: 33.06 kB / 432.7 MB, free: 37.77 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.359e-05/0.3078, allocations: 13.95 kB / 432.7 MB, free: 37.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008195/0.3086, allocations: 1.453 MB / 434.1 MB, free: 36.32 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.713e-05/0.3087, allocations: 6.938 kB / 434.1 MB, free: 36.32 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.229e-05/0.3088, allocations: 8.828 kB / 434.2 MB, free: 36.32 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.026e-05/0.3088, allocations: 130.7 kB / 434.3 MB, free: 36.19 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.245e-05/0.3089, allocations: 6.812 kB / 434.3 MB, free: 36.18 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.364e-05/0.3089, allocations: 22.44 kB / 434.3 MB, free: 36.17 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.3089, allocations: 2.906 kB / 434.3 MB, free: 36.17 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.643e-06/0.3089, allocations: 4 kB / 434.3 MB, free: 36.17 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.955e-06/0.3089, allocations: 2.875 kB / 434.3 MB, free: 36.17 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001654/0.3091, allocations: 220.8 kB / 434.5 MB, free: 35.95 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.3091, allocations: 0 / 434.5 MB, free: 35.95 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001105/0.3092, allocations: 15.22 kB / 434.6 MB, free: 35.95 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.126e-06/0.3092, allocations: 3.297 kB / 434.6 MB, free: 35.95 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.153e-05/0.3093, allocations: 3.938 kB / 434.6 MB, free: 35.94 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.3093, allocations: 6.875 kB / 434.6 MB, free: 35.94 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.3093, allocations: 0 / 434.6 MB, free: 35.94 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002765/0.3095, allocations: 234.2 kB / 434.8 MB, free: 35.75 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.272e-05/0.3096, allocations: 87.77 kB / 434.9 MB, free: 35.65 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.699e-05/0.3096, allocations: 6.906 kB / 434.9 MB, free: 35.65 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001012/0.3097, allocations: 6.094 kB / 434.9 MB, free: 35.65 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.85e-05/0.3098, allocations: 10.22 kB / 434.9 MB, free: 35.64 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.52e-06/0.3098, allocations: 3.062 kB / 434.9 MB, free: 35.64 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.68e-05/0.3098, allocations: 117.2 kB / 435 MB, free: 35.55 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3098, allocations: 3.062 kB / 435 MB, free: 35.55 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002436/0.3101, allocations: 14.56 kB / 435 MB, free: 35.55 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.904e-05/0.3102, allocations: 101.7 kB / 435.1 MB, free: 35.46 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003981/0.3106, allocations: 203.3 kB / 435.3 MB, free: 35.32 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.513e-06/0.3106, allocations: 4 kB / 435.3 MB, free: 35.32 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.648e-05/0.3107, allocations: 24.45 kB / 435.4 MB, free: 35.32 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003552/0.311, allocations: 34.03 kB / 435.4 MB, free: 35.3 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004345/0.3115, allocations: 253.2 kB / 435.6 MB, free: 35.11 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001232/0.3116, allocations: 0.7109 MB / 436.4 MB, free: 34.41 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.863e-05/0.3117, allocations: 9.172 kB / 436.4 MB, free: 34.41 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.185e-05/0.3117, allocations: 12.88 kB / 436.4 MB, free: 34.4 MB / 350.1 MB Notification: Performance of SimCode: time 2.11e-07/0.3117, allocations: 0 / 436.4 MB, free: 34.4 MB / 350.1 MB Notification: Performance of Templates: time 0.003437/0.3152, allocations: 1.258 MB / 437.6 MB, free: 34.27 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