Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_symb_jac_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_symb_jac_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_symb_jac_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.001044/0.001045, allocations: 88.86 kB / 16.67 MB, free: 6.602 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.001337/0.001337, allocations: 180.5 kB / 17.58 MB, free: 6.188 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.207/1.207, allocations: 205.4 MB / 223.8 MB, free: 13.08 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06206/0.06206, allocations: 14.16 MB / 286.2 MB, free: 13.89 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.0004688/0.000469, allocations: 12 kB / 350.1 MB, free: 13.85 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.189/0.1895, allocations: 51.1 MB / 401.2 MB, free: 48.5 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLeadLag): time 0.001458/0.191, allocations: 1.51 MB / 402.7 MB, free: 47.31 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003055/0.1913, allocations: 159.2 kB / 402.9 MB, free: 47.18 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.615e-05/0.1914, allocations: 11.19 kB / 402.9 MB, free: 47.17 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001008/0.1915, allocations: 14.52 kB / 402.9 MB, free: 47.16 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000126/0.1917, allocations: 27.06 kB / 402.9 MB, free: 47.13 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 7.451e-05/0.1917, allocations: 27.84 kB / 403 MB, free: 47.11 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001343/0.1919, allocations: 120.4 kB / 403.1 MB, free: 47.04 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001257/0.192, allocations: 55.59 kB / 403.1 MB, free: 47 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.019e-05/0.1921, allocations: 31.55 kB / 403.2 MB, free: 46.99 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.087e-05/0.1922, allocations: 38.91 kB / 403.2 MB, free: 46.96 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.064e-05/0.1922, allocations: 2.656 kB / 403.2 MB, free: 46.96 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.342e-05/0.1922, allocations: 2.5 kB / 403.2 MB, free: 46.96 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.185e-05/0.1922, allocations: 19.48 kB / 403.2 MB, free: 46.95 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.151e-05/0.1923, allocations: 70.38 kB / 403.3 MB, free: 46.88 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 8.549e-05/0.1924, allocations: 70.16 kB / 403.4 MB, free: 46.83 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.354e-06/0.1924, allocations: 1.375 kB / 403.4 MB, free: 46.83 MB / 318.1 MB Notification: Performance of FrontEnd: time 8.82e-07/0.1924, allocations: 0 / 403.4 MB, free: 46.83 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.576e-06/0.1924, allocations: 4 kB / 403.4 MB, free: 46.82 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.0004239/0.1928, allocations: 404.7 kB / 403.8 MB, free: 46.41 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.227e-05/0.1929, allocations: 8.531 kB / 403.8 MB, free: 46.41 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.428e-05/0.1929, allocations: 20.56 kB / 403.8 MB, free: 46.4 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000175/0.1931, allocations: 220.7 kB / 404 MB, free: 46.16 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.238e-05/0.1931, allocations: 7.719 kB / 404 MB, free: 46.16 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.965e-05/0.1932, allocations: 15.16 kB / 404 MB, free: 46.15 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002199/0.1934, allocations: 120.4 kB / 404.2 MB, free: 46.05 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.524e-06/0.1934, allocations: 1.125 kB / 404.2 MB, free: 46.05 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.356e-05/0.1934, allocations: 5.281 kB / 404.2 MB, free: 46.05 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.18e-06/0.1934, allocations: 1.375 kB / 404.2 MB, free: 46.05 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00019/0.1936, allocations: 69.45 kB / 404.2 MB, free: 46.02 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000515/0.1942, allocations: 451.3 kB / 404.7 MB, free: 45.58 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000343/0.1945, allocations: 120.4 kB / 404.8 MB, free: 45.48 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001052/0.1946, allocations: 53.2 kB / 404.8 MB, free: 45.43 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.41e-05/0.1947, allocations: 5.141 kB / 404.9 MB, free: 45.43 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.257e-05/0.1947, allocations: 36.72 kB / 404.9 MB, free: 45.39 MB / 318.1 MB Notification: Performance of pre-optimization done (n=7): time 1.694e-06/0.1947, allocations: 3.984 kB / 404.9 MB, free: 45.38 MB / 318.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003703/0.1951, allocations: 130.3 kB / 405 MB, free: 45.3 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.414e-05/0.1951, allocations: 111.8 kB / 405.1 MB, free: 45.17 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001013/0.1952, allocations: 147.7 kB / 405.3 MB, free: 45.05 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.104e-05/0.1952, allocations: 27.02 kB / 405.3 MB, free: 45.02 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.233e-05/0.1953, allocations: 117.4 kB / 405.4 MB, free: 44.9 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.965e-05/0.1953, allocations: 27.58 kB / 405.4 MB, free: 44.88 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.42e-05/0.1953, allocations: 20.06 kB / 405.5 MB, free: 44.86 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 3.527e-05/0.1954, allocations: 325.1 kB / 405.8 MB, free: 44.53 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.572e-05/0.1955, allocations: 28.33 kB / 405.8 MB, free: 44.52 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.079e-05/0.1956, allocations: 58.8 kB / 405.9 MB, free: 44.46 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001707/0.1957, allocations: 89.72 kB / 405.9 MB, free: 44.39 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.1957, allocations: 0 / 405.9 MB, free: 44.39 MB / 318.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003516/0.1961, allocations: 150.9 kB / 406.1 MB, free: 44.29 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.336e-05/0.1961, allocations: 5.906 kB / 406.1 MB, free: 44.29 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.939e-06/0.1961, allocations: 1.031 kB / 406.1 MB, free: 44.29 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001815/0.1963, allocations: 33.02 kB / 406.1 MB, free: 44.27 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001013/0.1964, allocations: 20.67 kB / 406.2 MB, free: 44.27 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007618/0.1972, allocations: 1.361 MB / 407.5 MB, free: 42.88 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.718e-05/0.1973, allocations: 9.562 kB / 407.5 MB, free: 42.87 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.044e-05/0.1973, allocations: 3.25 kB / 407.5 MB, free: 42.87 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.615e-05/0.1974, allocations: 136.2 kB / 407.7 MB, free: 42.73 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.506e-05/0.1975, allocations: 9 kB / 407.7 MB, free: 42.73 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.624e-05/0.1975, allocations: 14.72 kB / 407.7 MB, free: 42.71 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.246e-06/0.1975, allocations: 2.281 kB / 407.7 MB, free: 42.71 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.813e-06/0.1975, allocations: 1.156 kB / 407.7 MB, free: 42.71 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.386e-06/0.1975, allocations: 8 kB / 407.7 MB, free: 42.71 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001658/0.1977, allocations: 213.5 kB / 407.9 MB, free: 42.47 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.834e-06/0.1977, allocations: 1.062 kB / 407.9 MB, free: 42.47 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001184/0.1978, allocations: 17.05 kB / 407.9 MB, free: 42.47 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.1978, allocations: 1.031 kB / 407.9 MB, free: 42.47 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.919e-06/0.1978, allocations: 1.312 kB / 407.9 MB, free: 42.47 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.1978, allocations: 1.406 kB / 407.9 MB, free: 42.47 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.1979, allocations: 0.9844 kB / 407.9 MB, free: 42.47 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001042/0.1989, allocations: 1.257 MB / 409.2 MB, free: 41.25 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.194e-05/0.1989, allocations: 89.11 kB / 409.3 MB, free: 41.15 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.577e-05/0.199, allocations: 4.75 kB / 409.3 MB, free: 41.14 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001089/0.1991, allocations: 13.3 kB / 409.3 MB, free: 41.14 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.894e-05/0.1991, allocations: 15.05 kB / 409.3 MB, free: 41.12 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.562e-06/0.1991, allocations: 2.781 kB / 409.3 MB, free: 41.12 MB / 318.1 MB Notification: Performance of sorting global known variables: time 6.586e-05/0.1992, allocations: 115.2 kB / 409.4 MB, free: 41.03 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1992, allocations: 1.062 kB / 409.4 MB, free: 41.03 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003601/0.1996, allocations: 29.19 kB / 409.4 MB, free: 41.02 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.799e-05/0.1996, allocations: 99.55 kB / 409.5 MB, free: 40.93 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004051/0.2001, allocations: 205.1 kB / 409.7 MB, free: 40.77 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.2001, allocations: 192 / 409.7 MB, free: 40.77 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001079/0.2002, allocations: 37.3 kB / 409.8 MB, free: 40.75 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003501/0.2005, allocations: 31.02 kB / 409.8 MB, free: 40.73 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004941/0.2011, allocations: 445 kB / 410.2 MB, free: 40.32 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001052/0.2012, allocations: 0.7029 MB / 411 MB, free: 39.62 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.123e-05/0.2012, allocations: 17.14 kB / 411 MB, free: 39.61 MB / 318.1 MB Notification: Performance of SimCode: time 3e-07/0.2012, allocations: 0 / 411 MB, free: 39.61 MB / 318.1 MB Notification: Performance of Templates: time 0.002862/0.2041, allocations: 1.709 MB / 412.7 MB, free: 38.55 MB / 318.1 MB make -j1 -f PowerGrids_symb_jac_PowerGrids.Controls.Test.TestLeadLag.makefile (rm -f PowerGrids_symb_jac_PowerGrids.Controls.Test.TestLeadLag.pipe ; mkfifo PowerGrids_symb_jac_PowerGrids.Controls.Test.TestLeadLag.pipe ; head -c 1048576 < PowerGrids_symb_jac_PowerGrids.Controls.Test.TestLeadLag.pipe >> ../files/PowerGrids_symb_jac_PowerGrids.Controls.Test.TestLeadLag.sim & ./PowerGrids_symb_jac_PowerGrids.Controls.Test.TestLeadLag -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerGrids_symb_jac_PowerGrids.Controls.Test.TestLeadLag.pipe 2>&1) diffSimulationResults("PowerGrids_symb_jac_PowerGrids.Controls.Test.TestLeadLag_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Controls.Test.TestLeadLag_res.mat","../files/PowerGrids_symb_jac_PowerGrids.Controls.Test.TestLeadLag.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches