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.001703/0.001703, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.002722/0.002722, allocations: 188.8 kB / 16.25 MB, free: 6.629 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.43/1.43, allocations: 222.9 MB / 239.9 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.2054/0.2054, allocations: 16.78 MB / 306.9 MB, free: 14.92 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001441/0.001441, allocations: 59.91 kB / 373.3 MB, free: 1.887 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3139/0.3154, allocations: 53.55 MB / 426.9 MB, free: 40.6 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLeadLag): time 0.002836/0.3183, allocations: 1.857 MB / 428.7 MB, free: 39.91 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003241/0.3186, allocations: 155.5 kB / 428.9 MB, free: 39.81 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.101e-05/0.3187, allocations: 3.219 kB / 428.9 MB, free: 39.81 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001386/0.3188, allocations: 14.91 kB / 428.9 MB, free: 39.8 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000152/0.319, allocations: 21.75 kB / 428.9 MB, free: 39.79 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001001/0.3191, allocations: 29.91 kB / 429 MB, free: 39.77 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001672/0.3193, allocations: 134.9 kB / 429.1 MB, free: 39.7 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001612/0.3195, allocations: 57.5 kB / 429.1 MB, free: 39.68 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.946e-05/0.3195, allocations: 56.84 kB / 429.2 MB, free: 39.64 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001018/0.3196, allocations: 45.27 kB / 429.2 MB, free: 39.62 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.424e-05/0.3197, allocations: 7.781 kB / 429.3 MB, free: 39.62 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.086e-05/0.3197, allocations: 11.09 kB / 429.3 MB, free: 39.62 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.785e-05/0.3197, allocations: 26.2 kB / 429.3 MB, free: 39.6 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.946e-05/0.3198, allocations: 50.92 kB / 429.3 MB, free: 39.57 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001422/0.3199, allocations: 107.6 kB / 429.4 MB, free: 39.52 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.3199, allocations: 0 / 429.4 MB, free: 39.52 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.3199, allocations: 0 / 429.4 MB, free: 39.52 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.621e-06/0.32, allocations: 0 / 429.4 MB, free: 39.52 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.0005469/0.3205, allocations: 431 kB / 429.9 MB, free: 39.1 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.279e-05/0.3206, allocations: 8.594 kB / 429.9 MB, free: 39.1 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.71e-05/0.3206, allocations: 18.59 kB / 429.9 MB, free: 39.09 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002092/0.3208, allocations: 215.3 kB / 430.1 MB, free: 38.87 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.64e-05/0.3209, allocations: 11.36 kB / 430.1 MB, free: 38.86 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.213e-05/0.3209, allocations: 10.19 kB / 430.1 MB, free: 38.86 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002284/0.3211, allocations: 122.2 kB / 430.2 MB, free: 38.78 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.909e-06/0.3211, allocations: 0 / 430.2 MB, free: 38.78 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.459e-05/0.3212, allocations: 6.906 kB / 430.2 MB, free: 38.77 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.254e-06/0.3212, allocations: 6.922 kB / 430.3 MB, free: 38.77 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001754/0.3214, allocations: 62.8 kB / 430.3 MB, free: 38.75 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005508/0.3219, allocations: 454 kB / 430.8 MB, free: 38.36 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003551/0.3223, allocations: 122.4 kB / 430.9 MB, free: 38.26 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.65e-05/0.3224, allocations: 46.94 kB / 430.9 MB, free: 38.23 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.155e-05/0.3224, allocations: 2.531 kB / 430.9 MB, free: 38.23 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.022e-05/0.3224, allocations: 42.5 kB / 431 MB, free: 38.18 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.694e-06/0.3224, allocations: 0 / 431 MB, free: 38.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003542/0.3228, allocations: 126.3 kB / 431.1 MB, free: 38.11 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.266e-05/0.3229, allocations: 102.8 kB / 431.2 MB, free: 37.98 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000116/0.323, allocations: 153.4 kB / 431.3 MB, free: 37.87 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.204e-05/0.323, allocations: 25.7 kB / 431.4 MB, free: 37.84 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.528e-05/0.3231, allocations: 121.4 kB / 431.5 MB, free: 37.72 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.24e-05/0.3231, allocations: 24.84 kB / 431.5 MB, free: 37.71 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.296e-05/0.3232, allocations: 23.44 kB / 431.5 MB, free: 37.68 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.861e-05/0.3232, allocations: 325.1 kB / 431.9 MB, free: 37.36 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.381e-05/0.3233, allocations: 18.91 kB / 431.9 MB, free: 37.36 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.22e-05/0.3234, allocations: 64.91 kB / 431.9 MB, free: 37.3 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001563/0.3236, allocations: 80.84 kB / 432 MB, free: 37.25 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.3236, allocations: 0 / 432 MB, free: 37.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000322/0.3239, allocations: 144 kB / 432.2 MB, free: 37.16 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.598e-05/0.3239, allocations: 5.844 kB / 432.2 MB, free: 37.16 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.19e-06/0.324, allocations: 0 / 432.2 MB, free: 37.16 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002122/0.3242, allocations: 39.58 kB / 432.2 MB, free: 37.15 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.658e-05/0.3243, allocations: 18.56 kB / 432.2 MB, free: 37.14 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008803/0.3252, allocations: 1.456 MB / 433.7 MB, free: 35.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.132e-05/0.3253, allocations: 6.031 kB / 433.7 MB, free: 35.7 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.232e-05/0.3253, allocations: 6.969 kB / 433.7 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 7.885e-05/0.3254, allocations: 126.5 kB / 433.8 MB, free: 35.57 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.115e-05/0.3254, allocations: 6.812 kB / 433.8 MB, free: 35.56 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.508e-05/0.3254, allocations: 18.16 kB / 433.8 MB, free: 35.55 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.544e-06/0.3254, allocations: 6.812 kB / 433.8 MB, free: 35.55 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.353e-06/0.3255, allocations: 0 / 433.8 MB, free: 35.55 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.338e-06/0.3255, allocations: 3.156 kB / 433.8 MB, free: 35.55 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001859/0.3257, allocations: 214.8 kB / 434.1 MB, free: 35.33 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.3257, allocations: 0 / 434.1 MB, free: 35.33 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001164/0.3258, allocations: 25.11 kB / 434.1 MB, free: 35.32 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.923e-06/0.3258, allocations: 0 / 434.1 MB, free: 35.32 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.338e-05/0.3258, allocations: 10.19 kB / 434.1 MB, free: 35.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.3258, allocations: 0 / 434.1 MB, free: 35.32 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.3258, allocations: 0 / 434.1 MB, free: 35.32 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002889/0.3261, allocations: 224.1 kB / 434.3 MB, free: 35.14 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.42e-05/0.3262, allocations: 91.22 kB / 434.4 MB, free: 35.04 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.752e-05/0.3262, allocations: 10.72 kB / 434.4 MB, free: 35.04 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001024/0.3263, allocations: 3.031 kB / 434.4 MB, free: 35.04 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.28e-05/0.3263, allocations: 10.12 kB / 434.4 MB, free: 35.03 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.251e-06/0.3264, allocations: 6.781 kB / 434.4 MB, free: 35.03 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.469e-05/0.3264, allocations: 119.6 kB / 434.5 MB, free: 34.94 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3264, allocations: 0 / 434.5 MB, free: 34.94 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002468/0.3267, allocations: 17.19 kB / 434.6 MB, free: 34.94 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 9.157e-05/0.3268, allocations: 100.4 kB / 434.7 MB, free: 34.85 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004499/0.3272, allocations: 202.6 kB / 434.9 MB, free: 34.71 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.3272, allocations: 0 / 434.9 MB, free: 34.71 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.333e-05/0.3273, allocations: 35.36 kB / 434.9 MB, free: 34.7 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004012/0.3278, allocations: 37.34 kB / 434.9 MB, free: 34.68 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004838/0.3282, allocations: 297 kB / 435.2 MB, free: 34.45 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001555/0.3284, allocations: 0.7098 MB / 435.9 MB, free: 33.74 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.88e-05/0.3285, allocations: 17.88 kB / 435.9 MB, free: 33.73 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.375e-05/0.3285, allocations: 13.12 kB / 436 MB, free: 33.73 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3285, allocations: 0 / 436 MB, free: 33.73 MB / 350.1 MB Notification: Performance of Templates: time 0.003479/0.332, allocations: 1.213 MB / 437.2 MB, free: 33.61 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=50 -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