Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerGrids_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo", uses=false) Using package PowerGrids with version 1.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_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_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.001571/0.001571, allocations: 101.1 kB / 16.27 MB, free: 6.414 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.001779/0.001779, allocations: 190.3 kB / 17.2 MB, free: 5.953 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.391/1.391, allocations: 205.1 MB / 223.1 MB, free: 12.31 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06254/0.06254, allocations: 14.17 MB / 284.6 MB, free: 13.93 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001496/0.001496, allocations: 67.91 kB / 347.8 MB, free: 14.56 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1811/0.1826, allocations: 50.13 MB / 398 MB, free: 48.61 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLeadLag): time 0.00245/0.1851, allocations: 1.802 MB / 399.8 MB, free: 47.19 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002995/0.1854, allocations: 155.4 kB / 399.9 MB, free: 47.06 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.722e-05/0.1855, allocations: 3.375 kB / 399.9 MB, free: 47.06 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001164/0.1856, allocations: 28.73 kB / 400 MB, free: 47.04 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001219/0.1857, allocations: 23.14 kB / 400 MB, free: 47.02 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 7.412e-05/0.1858, allocations: 36.3 kB / 400 MB, free: 46.98 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001433/0.186, allocations: 134.6 kB / 400.1 MB, free: 46.9 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001216/0.1861, allocations: 47.3 kB / 400.2 MB, free: 46.88 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.923e-05/0.1861, allocations: 53.31 kB / 400.2 MB, free: 46.84 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.421e-05/0.1862, allocations: 50.23 kB / 400.3 MB, free: 46.8 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.538e-05/0.1863, allocations: 9.969 kB / 400.3 MB, free: 46.8 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.146e-05/0.1863, allocations: 10.09 kB / 400.3 MB, free: 46.8 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.655e-05/0.1863, allocations: 27.56 kB / 400.3 MB, free: 46.78 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.233e-05/0.1864, allocations: 53.42 kB / 400.4 MB, free: 46.74 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001051/0.1865, allocations: 95.78 kB / 400.5 MB, free: 46.67 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.427e-06/0.1865, allocations: 0 / 400.5 MB, free: 46.67 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1865, allocations: 1.156 kB / 400.5 MB, free: 46.67 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.209e-06/0.1865, allocations: 0 / 400.5 MB, free: 46.67 MB / 318.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.0004537/0.187, allocations: 436.7 kB / 400.9 MB, free: 46.23 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.95e-05/0.187, allocations: 9.219 kB / 400.9 MB, free: 46.23 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.117e-05/0.1871, allocations: 20.53 kB / 400.9 MB, free: 46.22 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001668/0.1872, allocations: 217.4 kB / 401.2 MB, free: 45.98 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.198e-05/0.1872, allocations: 4.156 kB / 401.2 MB, free: 45.98 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.951e-05/0.1873, allocations: 11.06 kB / 401.2 MB, free: 45.98 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002112/0.1875, allocations: 129 kB / 401.3 MB, free: 45.88 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.215e-06/0.1875, allocations: 1.312 kB / 401.3 MB, free: 45.88 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.226e-05/0.1875, allocations: 1.344 kB / 401.3 MB, free: 45.88 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.049e-06/0.1875, allocations: 1.5 kB / 401.3 MB, free: 45.88 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001831/0.1877, allocations: 58.16 kB / 401.4 MB, free: 45.85 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004967/0.1882, allocations: 458 kB / 401.8 MB, free: 45.4 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003469/0.1886, allocations: 127 kB / 401.9 MB, free: 45.29 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.317e-05/0.1887, allocations: 46.31 kB / 402 MB, free: 45.25 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.325e-05/0.1887, allocations: 1.219 kB / 402 MB, free: 45.25 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.248e-05/0.1887, allocations: 37 kB / 402 MB, free: 45.21 MB / 318.1 MB Notification: Performance of pre-optimization done (n=7): time 1.282e-06/0.1887, allocations: 0 / 402 MB, free: 45.21 MB / 318.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003541/0.1891, allocations: 123.6 kB / 402.1 MB, free: 45.13 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.352e-05/0.1891, allocations: 108.2 kB / 402.2 MB, free: 45 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001005/0.1892, allocations: 156.7 kB / 402.4 MB, free: 44.87 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.062e-05/0.1893, allocations: 25.7 kB / 402.4 MB, free: 44.84 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.146e-05/0.1893, allocations: 122.8 kB / 402.5 MB, free: 44.72 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.749e-05/0.1893, allocations: 23.41 kB / 402.6 MB, free: 44.7 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.795e-05/0.1894, allocations: 24.27 kB / 402.6 MB, free: 44.68 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 3.54e-05/0.1894, allocations: 321.5 kB / 402.9 MB, free: 44.36 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.533e-05/0.1895, allocations: 24.33 kB / 402.9 MB, free: 44.35 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.987e-05/0.1896, allocations: 61.61 kB / 403 MB, free: 44.29 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001648/0.1898, allocations: 78.28 kB / 403.1 MB, free: 44.23 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.1898, allocations: 0 / 403.1 MB, free: 44.23 MB / 318.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003335/0.1901, allocations: 148.8 kB / 403.2 MB, free: 44.12 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.145e-05/0.1901, allocations: 5.062 kB / 403.2 MB, free: 44.12 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.298e-06/0.1902, allocations: 1.25 kB / 403.2 MB, free: 44.12 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001837/0.1903, allocations: 33.42 kB / 403.2 MB, free: 44.11 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001002/0.1904, allocations: 23.3 kB / 403.3 MB, free: 44.09 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007639/0.1912, allocations: 1.456 MB / 404.7 MB, free: 42.61 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.446e-05/0.1913, allocations: 3.656 kB / 404.7 MB, free: 42.61 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.006e-05/0.1913, allocations: 3.781 kB / 404.7 MB, free: 42.61 MB / 318.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.274e-05/0.1914, allocations: 135.7 kB / 404.9 MB, free: 42.47 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.441e-05/0.1915, allocations: 13.06 kB / 404.9 MB, free: 42.46 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.429e-05/0.1915, allocations: 18.91 kB / 404.9 MB, free: 42.44 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-06/0.1915, allocations: 5.406 kB / 404.9 MB, free: 42.44 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.914e-06/0.1915, allocations: 1.344 kB / 404.9 MB, free: 42.44 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.046e-06/0.1915, allocations: 1.219 kB / 404.9 MB, free: 42.44 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001565/0.1917, allocations: 216.4 kB / 405.1 MB, free: 42.2 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.694e-06/0.1917, allocations: 1.344 kB / 405.1 MB, free: 42.2 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001189/0.1918, allocations: 16.05 kB / 405.1 MB, free: 42.2 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.685e-06/0.1918, allocations: 0.9688 kB / 405.1 MB, free: 42.2 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.124e-05/0.1918, allocations: 10.02 kB / 405.1 MB, free: 42.19 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.1918, allocations: 1.062 kB / 405.1 MB, free: 42.19 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.502e-06/0.1918, allocations: 1.125 kB / 405.1 MB, free: 42.19 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000298/0.1921, allocations: 229.8 kB / 405.4 MB, free: 41.99 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.724e-05/0.1922, allocations: 88.47 kB / 405.4 MB, free: 41.89 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.754e-05/0.1922, allocations: 5.25 kB / 405.5 MB, free: 41.89 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001091/0.1923, allocations: 7 kB / 405.5 MB, free: 41.88 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.101e-05/0.1924, allocations: 11.64 kB / 405.5 MB, free: 41.88 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.321e-06/0.1924, allocations: 2.688 kB / 405.5 MB, free: 41.88 MB / 318.1 MB Notification: Performance of sorting global known variables: time 6.198e-05/0.1924, allocations: 121 kB / 405.6 MB, free: 41.78 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1925, allocations: 0 / 405.6 MB, free: 41.78 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002596/0.1927, allocations: 19.56 kB / 405.6 MB, free: 41.77 MB / 318.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 6.222e-05/0.1928, allocations: 91.94 kB / 405.7 MB, free: 41.68 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003977/0.1932, allocations: 212.5 kB / 405.9 MB, free: 41.52 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.1932, allocations: 1.062 kB / 405.9 MB, free: 41.52 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 9.856e-05/0.1933, allocations: 30.88 kB / 405.9 MB, free: 41.5 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003441/0.1937, allocations: 26.45 kB / 406 MB, free: 41.49 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004603/0.1941, allocations: 279.4 kB / 406.2 MB, free: 41.25 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001067/0.1942, allocations: 0.7137 MB / 407 MB, free: 40.54 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.692e-05/0.1943, allocations: 13.16 kB / 407 MB, free: 40.53 MB / 318.1 MB Notification: Performance of SimCode: time 2.01e-07/0.1943, allocations: 0 / 407 MB, free: 40.53 MB / 318.1 MB Notification: Performance of Templates: time 0.002818/0.1971, allocations: 1.709 MB / 408.7 MB, free: 39.63 MB / 318.1 MB make -j1 -f PowerGrids_PowerGrids.Controls.Test.TestLeadLag.makefile (rm -f PowerGrids_PowerGrids.Controls.Test.TestLeadLag.pipe ; mkfifo PowerGrids_PowerGrids.Controls.Test.TestLeadLag.pipe ; head -c 1048576 < PowerGrids_PowerGrids.Controls.Test.TestLeadLag.pipe >> ../files/PowerGrids_PowerGrids.Controls.Test.TestLeadLag.sim & ./PowerGrids_PowerGrids.Controls.Test.TestLeadLag -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerGrids_PowerGrids.Controls.Test.TestLeadLag.pipe 2>&1) diffSimulationResults("PowerGrids_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_PowerGrids.Controls.Test.TestLeadLag.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches