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.0016/0.001606, 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.001861/0.00186, allocations: 198.2 kB / 16.14 MB, free: 6.719 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.42/1.42, 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.234/0.234, allocations: 16.77 MB / 306.7 MB, free: 14.98 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001338/0.001338, allocations: 71.83 kB / 373.1 MB, free: 2.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3256/0.3269, allocations: 53.54 MB / 426.7 MB, free: 40.84 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLeadLag): time 0.002817/0.3298, allocations: 1.857 MB / 428.5 MB, free: 40.15 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003017/0.3301, allocations: 158 kB / 428.7 MB, free: 40.06 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.504e-05/0.3302, allocations: 6.375 kB / 428.7 MB, free: 40.06 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001377/0.3304, allocations: 11.25 kB / 428.7 MB, free: 40.05 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001358/0.3305, allocations: 22.17 kB / 428.7 MB, free: 40.04 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 7.599e-05/0.3306, allocations: 30.27 kB / 428.8 MB, free: 40.02 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001388/0.3308, allocations: 128.7 kB / 428.9 MB, free: 39.96 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000135/0.3309, allocations: 48.28 kB / 428.9 MB, free: 39.93 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.956e-05/0.331, allocations: 42.73 kB / 429 MB, free: 39.91 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.903e-05/0.3311, allocations: 52.81 kB / 429 MB, free: 39.89 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.399e-05/0.3311, allocations: 5.031 kB / 429 MB, free: 39.89 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.957e-05/0.3311, allocations: 6.688 kB / 429 MB, free: 39.89 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.869e-05/0.3312, allocations: 20.97 kB / 429.1 MB, free: 39.88 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.309e-05/0.3312, allocations: 45.66 kB / 429.1 MB, free: 39.84 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001173/0.3313, allocations: 100.2 kB / 429.2 MB, free: 39.8 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.117e-06/0.3313, allocations: 0 / 429.2 MB, free: 39.8 MB / 350.1 MB Notification: Performance of FrontEnd: time 7.31e-07/0.3313, allocations: 0 / 429.2 MB, free: 39.8 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.489e-06/0.3314, allocations: 0 / 429.2 MB, free: 39.8 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.0005234/0.3319, allocations: 437.4 kB / 429.6 MB, free: 39.38 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.622e-05/0.3319, allocations: 10.47 kB / 429.6 MB, free: 39.38 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.442e-05/0.332, allocations: 14.03 kB / 429.7 MB, free: 39.38 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000193/0.3322, allocations: 213 kB / 429.9 MB, free: 39.16 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.255e-05/0.3322, allocations: 7.141 kB / 429.9 MB, free: 39.15 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.792e-05/0.3322, allocations: 13.25 kB / 429.9 MB, free: 39.15 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002201/0.3325, allocations: 125.4 kB / 430 MB, free: 39.06 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.205e-06/0.3325, allocations: 0 / 430 MB, free: 39.06 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.249e-05/0.3325, allocations: 2.031 kB / 430 MB, free: 39.06 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.841e-06/0.3325, allocations: 2.719 kB / 430 MB, free: 39.06 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001757/0.3327, allocations: 63.78 kB / 430.1 MB, free: 39.04 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005465/0.3332, allocations: 457.2 kB / 430.5 MB, free: 38.64 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003528/0.3336, allocations: 125.4 kB / 430.6 MB, free: 38.54 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.298e-05/0.3337, allocations: 45.66 kB / 430.7 MB, free: 38.51 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.983e-05/0.3337, allocations: 2.844 kB / 430.7 MB, free: 38.51 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.736e-05/0.3338, allocations: 42.5 kB / 430.7 MB, free: 38.46 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.192e-06/0.3338, allocations: 0 / 430.7 MB, free: 38.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003574/0.3341, allocations: 126 kB / 430.9 MB, free: 38.39 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.787e-05/0.3342, allocations: 105.6 kB / 431 MB, free: 38.27 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001108/0.3343, allocations: 155.6 kB / 431.1 MB, free: 38.15 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.122e-05/0.3343, allocations: 29.95 kB / 431.1 MB, free: 38.11 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.299e-05/0.3344, allocations: 116.2 kB / 431.2 MB, free: 38.01 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.94e-05/0.3344, allocations: 22.53 kB / 431.3 MB, free: 37.99 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.891e-05/0.3344, allocations: 25.45 kB / 431.3 MB, free: 37.97 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.165e-05/0.3345, allocations: 321 kB / 431.6 MB, free: 37.65 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.029e-05/0.3346, allocations: 22.53 kB / 431.6 MB, free: 37.64 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.123e-05/0.3347, allocations: 68.67 kB / 431.7 MB, free: 37.58 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001541/0.3348, allocations: 77.33 kB / 431.8 MB, free: 37.53 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.3348, allocations: 3.938 kB / 431.8 MB, free: 37.53 MB / 350.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003235/0.3352, allocations: 145.1 kB / 431.9 MB, free: 37.45 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.556e-05/0.3352, allocations: 5.406 kB / 431.9 MB, free: 37.45 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.983e-06/0.3352, allocations: 3 kB / 431.9 MB, free: 37.45 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002032/0.3354, allocations: 29.59 kB / 432 MB, free: 37.43 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.791e-05/0.3355, allocations: 22.09 kB / 432 MB, free: 37.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008643/0.3364, allocations: 1.353 MB / 433.3 MB, free: 36.08 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.683e-05/0.3365, allocations: 13.81 kB / 433.3 MB, free: 36.07 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.055e-05/0.3365, allocations: 3.25 kB / 433.3 MB, free: 36.07 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.017e-05/0.3366, allocations: 119.5 kB / 433.5 MB, free: 35.95 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.41e-05/0.3367, allocations: 12.77 kB / 433.5 MB, free: 35.95 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.352e-05/0.3367, allocations: 15.03 kB / 433.5 MB, free: 35.94 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.893e-06/0.3367, allocations: 0 / 433.5 MB, free: 35.94 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.386e-06/0.3367, allocations: 6.656 kB / 433.5 MB, free: 35.94 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.007e-06/0.3367, allocations: 3.938 kB / 433.5 MB, free: 35.93 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001723/0.3369, allocations: 213.6 kB / 433.7 MB, free: 35.72 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.3369, allocations: 4 kB / 433.7 MB, free: 35.71 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001134/0.337, allocations: 17.58 kB / 433.7 MB, free: 35.71 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.625e-06/0.337, allocations: 2.844 kB / 433.7 MB, free: 35.71 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.098e-05/0.337, allocations: 0 / 433.7 MB, free: 35.71 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.445e-06/0.337, allocations: 2.844 kB / 433.7 MB, free: 35.71 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.3371, allocations: 3.938 kB / 433.7 MB, free: 35.71 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002917/0.3373, allocations: 237.5 kB / 434 MB, free: 35.52 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.093e-05/0.3374, allocations: 87.45 kB / 434.1 MB, free: 35.43 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.618e-05/0.3374, allocations: 0 / 434.1 MB, free: 35.43 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001018/0.3375, allocations: 6.906 kB / 434.1 MB, free: 35.42 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.969e-05/0.3376, allocations: 14.06 kB / 434.1 MB, free: 35.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.591e-06/0.3376, allocations: 3 kB / 434.1 MB, free: 35.41 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.122e-05/0.3377, allocations: 118.3 kB / 434.2 MB, free: 35.32 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3377, allocations: 0 / 434.2 MB, free: 35.32 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002482/0.3379, allocations: 21.41 kB / 434.2 MB, free: 35.32 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.765e-05/0.338, allocations: 104.7 kB / 434.3 MB, free: 35.23 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003939/0.3384, allocations: 195.5 kB / 434.5 MB, free: 35.09 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.3384, allocations: 4.188 kB / 434.5 MB, free: 35.09 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.121e-05/0.3385, allocations: 29.56 kB / 434.5 MB, free: 35.09 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003973/0.3389, allocations: 33.58 kB / 434.6 MB, free: 35.07 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004798/0.3394, allocations: 294.8 kB / 434.9 MB, free: 34.84 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001221/0.3395, allocations: 0.7021 MB / 435.6 MB, free: 34.14 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.47e-05/0.3396, allocations: 10.25 kB / 435.6 MB, free: 34.14 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.583e-05/0.3396, allocations: 16.44 kB / 435.6 MB, free: 34.13 MB / 350.1 MB Notification: Performance of SimCode: time 3.2e-07/0.3397, allocations: 0 / 435.6 MB, free: 34.13 MB / 350.1 MB Notification: Performance of Templates: time 0.07098/0.4106, allocations: 1.161 MB / 436.8 MB, free: 34.01 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