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.001307/0.001307, allocations: 100.9 kB / 15.99 MB, free: 6.355 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.00148/0.00148, allocations: 196.5 kB / 16.91 MB, free: 6.199 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.406/1.406, allocations: 205.1 MB / 222.8 MB, free: 4.699 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.05681/0.05681, allocations: 14.17 MB / 284.3 MB, free: 7.254 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.002347/0.002347, allocations: 67.91 kB / 347.3 MB, free: 17.67 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1034/0.1058, allocations: 50.14 MB / 397.4 MB, free: 15.5 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLeadLag): time 0.003184/0.109, allocations: 1.844 MB / 399.3 MB, free: 13.63 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003551/0.1094, allocations: 163.4 kB / 399.4 MB, free: 13.47 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.892e-05/0.1095, allocations: 4 kB / 399.4 MB, free: 13.47 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001427/0.1097, allocations: 11.86 kB / 399.5 MB, free: 13.46 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001472/0.1098, allocations: 19.86 kB / 399.5 MB, free: 13.44 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 8.888e-05/0.1099, allocations: 31.97 kB / 399.5 MB, free: 13.41 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001863/0.1101, allocations: 127.6 kB / 399.6 MB, free: 13.28 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001556/0.1103, allocations: 61.23 kB / 399.7 MB, free: 13.22 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.066e-05/0.1104, allocations: 55.73 kB / 399.7 MB, free: 13.17 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.683e-05/0.1105, allocations: 43.77 kB / 399.8 MB, free: 13.12 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.312e-05/0.1105, allocations: 12 kB / 399.8 MB, free: 13.11 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.915e-05/0.1105, allocations: 8 kB / 399.8 MB, free: 13.11 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.127e-05/0.1106, allocations: 27.86 kB / 399.8 MB, free: 13.08 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.127e-05/0.1106, allocations: 51.67 kB / 399.9 MB, free: 13.03 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001519/0.1108, allocations: 111.7 kB / 400 MB, free: 12.92 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.03e-06/0.1108, allocations: 4 kB / 400 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.1108, allocations: 0 / 400 MB, free: 12.91 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.851e-06/0.1108, allocations: 0 / 400 MB, free: 12.91 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.0006831/0.1115, allocations: 419 kB / 400.4 MB, free: 12.45 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.804e-05/0.1116, allocations: 12.02 kB / 400.4 MB, free: 12.44 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.182e-05/0.1116, allocations: 16.75 kB / 400.4 MB, free: 12.43 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002304/0.1118, allocations: 216.6 kB / 400.6 MB, free: 12.18 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.555e-05/0.1119, allocations: 12.31 kB / 400.7 MB, free: 12.16 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.071e-05/0.1119, allocations: 16.31 kB / 400.7 MB, free: 12.15 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002381/0.1122, allocations: 120.3 kB / 400.8 MB, free: 12.02 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.426e-06/0.1122, allocations: 0 / 400.8 MB, free: 12.02 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.137e-05/0.1122, allocations: 4 kB / 400.8 MB, free: 12.01 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.923e-06/0.1122, allocations: 4 kB / 400.8 MB, free: 12.01 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000179/0.1124, allocations: 59.89 kB / 400.9 MB, free: 11.95 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006274/0.113, allocations: 457.2 kB / 401.3 MB, free: 11.44 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003819/0.1134, allocations: 119.8 kB / 401.4 MB, free: 11.29 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001021/0.1135, allocations: 42.69 kB / 401.5 MB, free: 11.24 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.073e-05/0.1136, allocations: 8 kB / 401.5 MB, free: 11.23 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.234e-05/0.1136, allocations: 34.5 kB / 401.5 MB, free: 11.19 MB / 302.1 MB Notification: Performance of pre-optimization done (n=7): time 1.233e-06/0.1136, allocations: 0 / 401.5 MB, free: 11.19 MB / 302.1 MB Notification: Performance of matching and sorting (n=7): time 0.000381/0.114, allocations: 125.6 kB / 401.6 MB, free: 11.06 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.317e-05/0.1141, allocations: 103.1 kB / 401.7 MB, free: 10.94 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001608/0.1142, allocations: 154.4 kB / 401.9 MB, free: 10.77 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.978e-05/0.1142, allocations: 25.7 kB / 401.9 MB, free: 10.74 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.079e-05/0.1143, allocations: 119.9 kB / 402 MB, free: 10.62 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.032e-05/0.1144, allocations: 23.66 kB / 402 MB, free: 10.6 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.582e-05/0.1144, allocations: 21.7 kB / 402.1 MB, free: 10.57 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000107/0.1145, allocations: 318.8 kB / 402.4 MB, free: 10.25 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.18e-05/0.1146, allocations: 27.97 kB / 402.4 MB, free: 10.22 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001053/0.1147, allocations: 65.08 kB / 402.5 MB, free: 10.14 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001752/0.1149, allocations: 79.38 kB / 402.5 MB, free: 10.05 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.1149, allocations: 4 kB / 402.5 MB, free: 10.05 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003689/0.1153, allocations: 142.2 kB / 402.7 MB, free: 9.898 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.391e-05/0.1153, allocations: 4.188 kB / 402.7 MB, free: 9.895 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.2e-06/0.1154, allocations: 0 / 402.7 MB, free: 9.895 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002299/0.1156, allocations: 44.8 kB / 402.7 MB, free: 9.848 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000103/0.1157, allocations: 19.98 kB / 402.8 MB, free: 9.828 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001228/0.1169, allocations: 1.461 MB / 404.2 MB, free: 8.227 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.858e-05/0.117, allocations: 4.031 kB / 404.2 MB, free: 8.223 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.504e-05/0.1171, allocations: 8 kB / 404.2 MB, free: 8.215 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.0001068/0.1172, allocations: 117.9 kB / 404.3 MB, free: 8.09 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.92e-05/0.1172, allocations: 19.89 kB / 404.4 MB, free: 8.07 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.418e-05/0.1173, allocations: 16.25 kB / 404.4 MB, free: 8.051 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.257e-06/0.1173, allocations: 7.938 kB / 404.4 MB, free: 8.043 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.562e-06/0.1173, allocations: 0 / 404.4 MB, free: 8.043 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.045e-06/0.1173, allocations: 0 / 404.4 MB, free: 8.043 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002329/0.1175, allocations: 213.5 kB / 404.6 MB, free: 7.785 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.1175, allocations: 0 / 404.6 MB, free: 7.785 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001323/0.1177, allocations: 19.92 kB / 404.6 MB, free: 7.766 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.827e-06/0.1177, allocations: 4 kB / 404.6 MB, free: 7.762 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.478e-05/0.1177, allocations: 3.938 kB / 404.6 MB, free: 7.758 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.1177, allocations: 4 kB / 404.6 MB, free: 7.754 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.025e-06/0.1177, allocations: 4 kB / 404.6 MB, free: 7.75 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001485/0.1192, allocations: 1.4 MB / 406 MB, free: 6.207 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.17e-05/0.1193, allocations: 89.14 kB / 406.1 MB, free: 6.102 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.587e-05/0.1193, allocations: 4 kB / 406.1 MB, free: 6.098 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001282/0.1195, allocations: 7.984 kB / 406.1 MB, free: 6.09 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.241e-05/0.1195, allocations: 4 kB / 406.1 MB, free: 6.086 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.064e-05/0.1195, allocations: 11.98 kB / 406.1 MB, free: 6.074 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.887e-05/0.1196, allocations: 119.9 kB / 406.3 MB, free: 5.957 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1196, allocations: 0 / 406.3 MB, free: 5.957 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003501/0.12, allocations: 31.84 kB / 406.3 MB, free: 5.926 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.0001217/0.1201, allocations: 103.2 kB / 406.4 MB, free: 5.812 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006039/0.1207, allocations: 206.5 kB / 406.6 MB, free: 5.598 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.945e-06/0.1208, allocations: 0 / 406.6 MB, free: 5.598 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.86e-05/0.1209, allocations: 27.98 kB / 406.6 MB, free: 5.57 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004332/0.1213, allocations: 19.98 kB / 406.6 MB, free: 5.551 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007304/0.122, allocations: 424 kB / 407.1 MB, free: 5.094 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002596/0.1223, allocations: 0.7002 MB / 407.8 MB, free: 4.367 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.097e-05/0.1224, allocations: 20.48 kB / 407.8 MB, free: 4.348 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.751e-05/0.1224, allocations: 11.44 kB / 407.8 MB, free: 4.336 MB / 302.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1224, allocations: 0 / 407.8 MB, free: 4.336 MB / 302.1 MB Notification: Performance of Templates: time 0.003857/0.1263, allocations: 1.273 MB / 409.1 MB, free: 3.07 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=50 -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