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.0008883/0.0008884, allocations: 92.7 kB / 16.02 MB, free: 80 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.00105/0.00105, allocations: 177.1 kB / 16.92 MB, free: 6.652 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.199/1.199, allocations: 223.3 MB / 241 MB, free: 5.281 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.155/0.155, allocations: 16.77 MB / 308.9 MB, free: 15.48 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002561/0.0002561, allocations: 8 kB / 376.2 MB, free: 1.055 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2073/0.2076, allocations: 54.56 MB / 430.8 MB, free: 39.23 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLeadLag): time 0.001406/0.209, allocations: 1.506 MB / 432.3 MB, free: 39.17 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002844/0.2093, allocations: 149.7 kB / 432.5 MB, free: 39.14 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.639e-05/0.2094, allocations: 3.062 kB / 432.5 MB, free: 39.14 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.789e-05/0.2095, allocations: 12.59 kB / 432.5 MB, free: 39.14 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001207/0.2097, allocations: 22.84 kB / 432.5 MB, free: 39.13 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 7.919e-05/0.2097, allocations: 36.97 kB / 432.5 MB, free: 39.12 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001334/0.2099, allocations: 124 kB / 432.7 MB, free: 39.11 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001217/0.21, allocations: 46.91 kB / 432.7 MB, free: 39.1 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.47e-05/0.2101, allocations: 39.72 kB / 432.7 MB, free: 39.08 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.596e-05/0.2101, allocations: 40.08 kB / 432.8 MB, free: 39.07 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.672e-05/0.2102, allocations: 0 / 432.8 MB, free: 39.07 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.251e-05/0.2102, allocations: 3.938 kB / 432.8 MB, free: 39.07 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.977e-05/0.2102, allocations: 17.73 kB / 432.8 MB, free: 39.06 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.115e-05/0.2103, allocations: 69.83 kB / 432.9 MB, free: 39.01 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 7.991e-05/0.2103, allocations: 70.86 kB / 432.9 MB, free: 39.01 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.2103, allocations: 2.344 kB / 432.9 MB, free: 39.01 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.183e-06/0.2104, allocations: 0 / 432.9 MB, free: 39.01 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.088e-06/0.2104, allocations: 0 / 432.9 MB, free: 39.01 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.0003884/0.2108, allocations: 413.5 kB / 433.3 MB, free: 38.61 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.809e-05/0.2108, allocations: 11.44 kB / 433.4 MB, free: 38.61 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.668e-05/0.2108, allocations: 14.78 kB / 433.4 MB, free: 38.61 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001586/0.211, allocations: 216.6 kB / 433.6 MB, free: 38.39 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.309e-05/0.211, allocations: 11.92 kB / 433.6 MB, free: 38.39 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.032e-05/0.2111, allocations: 12.5 kB / 433.6 MB, free: 38.39 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000193/0.2113, allocations: 118.7 kB / 433.7 MB, free: 38.33 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.204e-06/0.2113, allocations: 4 kB / 433.7 MB, free: 38.33 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.18e-05/0.2113, allocations: 5.781 kB / 433.7 MB, free: 38.33 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.949e-06/0.2113, allocations: 2.562 kB / 433.7 MB, free: 38.33 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001681/0.2115, allocations: 65.44 kB / 433.8 MB, free: 38.32 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004533/0.2119, allocations: 460.1 kB / 434.2 MB, free: 37.99 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003092/0.2122, allocations: 129.1 kB / 434.4 MB, free: 37.91 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.922e-05/0.2123, allocations: 42.34 kB / 434.4 MB, free: 37.88 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.446e-05/0.2124, allocations: 3.938 kB / 434.4 MB, free: 37.88 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.318e-05/0.2124, allocations: 48.14 kB / 434.5 MB, free: 37.83 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.623e-06/0.2124, allocations: 0 / 434.5 MB, free: 37.83 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.000329/0.2127, allocations: 135.8 kB / 434.6 MB, free: 37.78 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.441e-05/0.2128, allocations: 103.1 kB / 434.7 MB, free: 37.66 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.562e-05/0.2129, allocations: 154 kB / 434.8 MB, free: 37.55 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.007e-05/0.2129, allocations: 25.7 kB / 434.9 MB, free: 37.52 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.032e-05/0.2129, allocations: 117.4 kB / 435 MB, free: 37.43 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.594e-05/0.2129, allocations: 21.94 kB / 435 MB, free: 37.41 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.191e-05/0.213, allocations: 19.33 kB / 435 MB, free: 37.39 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 3.427e-05/0.213, allocations: 320.1 kB / 435.3 MB, free: 37.08 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.065e-05/0.2131, allocations: 24.09 kB / 435.4 MB, free: 37.08 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.48e-05/0.2132, allocations: 72.19 kB / 435.4 MB, free: 37.03 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001546/0.2133, allocations: 82.84 kB / 435.5 MB, free: 36.99 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.2133, allocations: 2.812 kB / 435.5 MB, free: 36.99 MB / 350.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003049/0.2137, allocations: 143.2 kB / 435.7 MB, free: 36.93 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.102e-05/0.2137, allocations: 4.781 kB / 435.7 MB, free: 36.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.799e-06/0.2137, allocations: 7 kB / 435.7 MB, free: 36.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001682/0.2139, allocations: 40 kB / 435.7 MB, free: 36.92 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.041e-05/0.214, allocations: 15 kB / 435.7 MB, free: 36.92 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006809/0.2147, allocations: 1.35 MB / 437.1 MB, free: 35.65 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9e-05/0.2148, allocations: 13.16 kB / 437.1 MB, free: 35.65 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.177e-06/0.2148, allocations: 3 kB / 437.1 MB, free: 35.65 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 6.164e-05/0.2148, allocations: 128 kB / 437.2 MB, free: 35.53 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.186e-05/0.2149, allocations: 9.844 kB / 437.2 MB, free: 35.53 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.529e-05/0.2149, allocations: 12.94 kB / 437.2 MB, free: 35.53 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.813e-06/0.2149, allocations: 320 / 437.2 MB, free: 35.53 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.073e-06/0.2149, allocations: 2.906 kB / 437.2 MB, free: 35.53 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.587e-06/0.2149, allocations: 7.359 kB / 437.2 MB, free: 35.52 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000163/0.2151, allocations: 214.6 kB / 437.5 MB, free: 35.32 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.2151, allocations: 2.781 kB / 437.5 MB, free: 35.32 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001083/0.2152, allocations: 18.91 kB / 437.5 MB, free: 35.32 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.505e-06/0.2152, allocations: 10.84 kB / 437.5 MB, free: 35.32 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.917e-06/0.2152, allocations: 0.8125 kB / 437.5 MB, free: 35.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.864e-06/0.2152, allocations: 2.938 kB / 437.5 MB, free: 35.32 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.2153, allocations: 0 / 437.5 MB, free: 35.32 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002846/0.2155, allocations: 235.2 kB / 437.7 MB, free: 35.16 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.378e-05/0.2156, allocations: 95.09 kB / 437.8 MB, free: 35.06 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.515e-05/0.2156, allocations: 5.188 kB / 437.8 MB, free: 35.05 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001016/0.2157, allocations: 10.22 kB / 437.8 MB, free: 35.05 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.669e-05/0.2157, allocations: 15.48 kB / 437.8 MB, free: 35.04 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.871e-06/0.2158, allocations: 3.656 kB / 437.8 MB, free: 35.04 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.782e-05/0.2158, allocations: 113.5 kB / 438 MB, free: 34.97 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2158, allocations: 4.062 kB / 438 MB, free: 34.96 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002452/0.2161, allocations: 20.22 kB / 438 MB, free: 34.96 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 5.555e-05/0.2161, allocations: 99.7 kB / 438.1 MB, free: 34.88 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003659/0.2165, allocations: 198.5 kB / 438.3 MB, free: 34.76 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.2165, allocations: 6.906 kB / 438.3 MB, free: 34.76 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.528e-05/0.2166, allocations: 37.08 kB / 438.3 MB, free: 34.75 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003282/0.217, allocations: 22.89 kB / 438.3 MB, free: 34.75 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004034/0.2174, allocations: 324.1 kB / 438.7 MB, free: 34.51 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.256e-05/0.2175, allocations: 0.7088 MB / 439.4 MB, free: 33.81 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.593e-05/0.2175, allocations: 12.91 kB / 439.4 MB, free: 33.8 MB / 350.1 MB Notification: Performance of SimCode: time 2.1e-07/0.2175, allocations: 0 / 439.4 MB, free: 33.8 MB / 350.1 MB Notification: Performance of Templates: time 0.002591/0.2201, allocations: 1.699 MB / 441.1 MB, free: 33.67 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