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.001507/0.001507, allocations: 104.1 kB / 15.88 MB, free: 4 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.002114/0.002114, allocations: 200.8 kB / 16.8 MB, free: 6.824 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.566/1.566, allocations: 205.1 MB / 222.7 MB, free: 4.793 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06812/0.06812, allocations: 14.17 MB / 284.2 MB, free: 7.332 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.00143/0.00143, allocations: 59.91 kB / 347.1 MB, free: 17.8 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08861/0.09006, allocations: 50.13 MB / 397.2 MB, free: 15.63 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLeadLag): time 0.003116/0.09322, allocations: 1.86 MB / 399.1 MB, free: 13.75 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003447/0.0936, allocations: 151.5 kB / 399.2 MB, free: 13.6 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.074e-05/0.0937, allocations: 0 / 399.2 MB, free: 13.6 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001229/0.09383, allocations: 11.88 kB / 399.2 MB, free: 13.59 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001399/0.09401, allocations: 23.84 kB / 399.3 MB, free: 13.57 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 8.989e-05/0.0941, allocations: 31.98 kB / 399.3 MB, free: 13.54 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001638/0.09428, allocations: 127.6 kB / 399.4 MB, free: 13.41 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001514/0.09443, allocations: 49.27 kB / 399.5 MB, free: 13.36 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.535e-05/0.09451, allocations: 47.72 kB / 399.5 MB, free: 13.32 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.462e-05/0.09461, allocations: 47.77 kB / 399.6 MB, free: 13.27 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.245e-05/0.09464, allocations: 11.94 kB / 399.6 MB, free: 13.26 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.016e-05/0.09467, allocations: 8 kB / 399.6 MB, free: 13.25 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.678e-05/0.0947, allocations: 15.91 kB / 399.6 MB, free: 13.23 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.587e-05/0.09476, allocations: 47.67 kB / 399.6 MB, free: 13.19 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00014/0.09491, allocations: 103.6 kB / 399.7 MB, free: 13.09 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.09492, allocations: 0 / 399.7 MB, free: 13.09 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.09492, allocations: 0 / 399.7 MB, free: 13.09 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.059e-06/0.09493, allocations: 0 / 399.7 MB, free: 13.09 MB / 302.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.0006321/0.09557, allocations: 423 kB / 400.2 MB, free: 12.62 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.039e-05/0.09562, allocations: 12.03 kB / 400.2 MB, free: 12.61 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.976e-05/0.09568, allocations: 12.75 kB / 400.2 MB, free: 12.6 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002851/0.09597, allocations: 224.5 kB / 400.4 MB, free: 12.34 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.224e-05/0.09599, allocations: 8.312 kB / 400.4 MB, free: 12.33 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.008e-05/0.09603, allocations: 8.375 kB / 400.4 MB, free: 12.32 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002651/0.0963, allocations: 128.3 kB / 400.5 MB, free: 12.18 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.115e-06/0.09632, allocations: 4 kB / 400.5 MB, free: 12.18 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.374e-05/0.09634, allocations: 0 / 400.5 MB, free: 12.18 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.065e-06/0.09635, allocations: 4 kB / 400.6 MB, free: 12.18 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002015/0.09656, allocations: 59.91 kB / 400.6 MB, free: 12.12 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007015/0.09727, allocations: 449.2 kB / 401.1 MB, free: 11.61 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004293/0.09771, allocations: 127.8 kB / 401.2 MB, free: 11.46 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001146/0.09784, allocations: 42.69 kB / 401.2 MB, free: 11.41 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.866e-05/0.09787, allocations: 4 kB / 401.2 MB, free: 11.41 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.805e-05/0.0979, allocations: 38.48 kB / 401.3 MB, free: 11.36 MB / 302.1 MB Notification: Performance of pre-optimization done (n=7): time 1.583e-06/0.09791, allocations: 0 / 401.3 MB, free: 11.36 MB / 302.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004189/0.09833, allocations: 125.6 kB / 401.4 MB, free: 11.23 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.145e-05/0.0984, allocations: 102.8 kB / 401.5 MB, free: 11.11 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001541/0.09856, allocations: 154.4 kB / 401.6 MB, free: 10.94 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.782e-05/0.09858, allocations: 25.7 kB / 401.7 MB, free: 10.91 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.573e-05/0.09866, allocations: 115.9 kB / 401.8 MB, free: 10.79 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.333e-05/0.0987, allocations: 27.64 kB / 401.8 MB, free: 10.77 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.401e-05/0.09875, allocations: 21.97 kB / 401.8 MB, free: 10.74 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001073/0.09886, allocations: 326.8 kB / 402.1 MB, free: 10.41 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.973e-05/0.09896, allocations: 23.98 kB / 402.2 MB, free: 10.39 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001108/0.09907, allocations: 57.14 kB / 402.2 MB, free: 10.31 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001846/0.09927, allocations: 83.38 kB / 402.3 MB, free: 10.22 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.09928, allocations: 448 / 402.3 MB, free: 10.22 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003765/0.09966, allocations: 150.2 kB / 402.4 MB, free: 10.06 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.694e-05/0.09969, allocations: 11.94 kB / 402.5 MB, free: 10.05 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.742e-06/0.0997, allocations: 0 / 402.5 MB, free: 10.05 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000243/0.09995, allocations: 32.83 kB / 402.5 MB, free: 10.02 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001058/0.1001, allocations: 15.98 kB / 402.5 MB, free: 10 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001149/0.1012, allocations: 1.359 MB / 403.9 MB, free: 8.508 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000106/0.1013, allocations: 7.969 kB / 403.9 MB, free: 8.5 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.169e-05/0.1014, allocations: 4 kB / 403.9 MB, free: 8.496 MB / 302.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 0.0001322/0.1015, allocations: 133.9 kB / 404 MB, free: 8.355 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.615e-05/0.1015, allocations: 7.906 kB / 404 MB, free: 8.348 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.907e-05/0.1016, allocations: 20.25 kB / 404 MB, free: 8.324 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.1016, allocations: 0 / 404 MB, free: 8.324 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.723e-06/0.1016, allocations: 0 / 404 MB, free: 8.324 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.978e-06/0.1016, allocations: 3.938 kB / 404 MB, free: 8.32 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002315/0.1018, allocations: 213.5 kB / 404.2 MB, free: 8.062 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.1019, allocations: 0 / 404.2 MB, free: 8.062 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001274/0.102, allocations: 23.92 kB / 404.3 MB, free: 8.039 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.102, allocations: 0 / 404.3 MB, free: 8.039 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.206e-05/0.102, allocations: 4 kB / 404.3 MB, free: 8.035 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.266e-06/0.102, allocations: 4 kB / 404.3 MB, free: 8.031 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.102, allocations: 0 / 404.3 MB, free: 8.031 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001463/0.1035, allocations: 1.252 MB / 405.5 MB, free: 6.641 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.898e-05/0.1036, allocations: 85.05 kB / 405.6 MB, free: 6.539 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.712e-05/0.1036, allocations: 3.938 kB / 405.6 MB, free: 6.535 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001168/0.1037, allocations: 12.08 kB / 405.6 MB, free: 6.523 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.595e-05/0.1038, allocations: 8 kB / 405.6 MB, free: 6.516 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.874e-06/0.1038, allocations: 3.984 kB / 405.6 MB, free: 6.512 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001017/0.1039, allocations: 116 kB / 405.8 MB, free: 6.398 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.1039, allocations: 0 / 405.8 MB, free: 6.398 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003623/0.1043, allocations: 31.84 kB / 405.8 MB, free: 6.367 MB / 302.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 0.0001025/0.1044, allocations: 103.1 kB / 405.9 MB, free: 6.254 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004868/0.1049, allocations: 194.7 kB / 406.1 MB, free: 6.051 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.1049, allocations: 3.938 kB / 406.1 MB, free: 6.047 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001042/0.105, allocations: 27.98 kB / 406.1 MB, free: 6.02 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004355/0.1054, allocations: 28.48 kB / 406.1 MB, free: 5.992 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007437/0.1062, allocations: 414.4 kB / 406.5 MB, free: 5.543 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002922/0.1065, allocations: 0.7083 MB / 407.2 MB, free: 4.809 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.903e-05/0.1066, allocations: 12.55 kB / 407.3 MB, free: 4.797 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.199e-05/0.1066, allocations: 15.44 kB / 407.3 MB, free: 4.781 MB / 302.1 MB Notification: Performance of SimCode: time 6.62e-07/0.1066, allocations: 0 / 407.3 MB, free: 4.781 MB / 302.1 MB Notification: Performance of Templates: time 0.004211/0.1109, allocations: 1.216 MB / 408.5 MB, free: 3.574 MB / 302.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/jenkins/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