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.004791/0.004791, allocations: 104 kB / 15.88 MB, free: 6.285 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.001235/0.001235, allocations: 200.3 kB / 16.8 MB, free: 6.223 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.218/1.218, allocations: 205.1 MB / 222.7 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.05759/0.05759, allocations: 14.16 MB / 284.1 MB, free: 7.301 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.001271/0.001271, allocations: 67.91 kB / 347.1 MB, free: 17.78 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07092/0.0722, allocations: 50.14 MB / 397.2 MB, free: 15.61 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLeadLag): time 0.002803/0.07504, allocations: 1.856 MB / 399.1 MB, free: 13.74 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003187/0.07538, allocations: 143.5 kB / 399.2 MB, free: 13.6 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.295e-05/0.07548, allocations: 7.938 kB / 399.2 MB, free: 13.59 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001142/0.0756, allocations: 11.86 kB / 399.2 MB, free: 13.58 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001291/0.07576, allocations: 27.86 kB / 399.3 MB, free: 13.55 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 8.897e-05/0.07585, allocations: 31.95 kB / 399.3 MB, free: 13.52 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001559/0.07602, allocations: 119.7 kB / 399.4 MB, free: 13.4 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001232/0.07615, allocations: 49.27 kB / 399.5 MB, free: 13.36 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.08e-05/0.07622, allocations: 55.66 kB / 399.5 MB, free: 13.3 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.273e-05/0.07632, allocations: 43.78 kB / 399.6 MB, free: 13.26 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.113e-05/0.07634, allocations: 8 kB / 399.6 MB, free: 13.25 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.741e-05/0.07637, allocations: 4 kB / 399.6 MB, free: 13.25 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.172e-05/0.0764, allocations: 23.89 kB / 399.6 MB, free: 13.22 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.131e-05/0.07646, allocations: 51.61 kB / 399.7 MB, free: 13.17 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001186/0.07658, allocations: 99.62 kB / 399.8 MB, free: 13.07 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.105e-06/0.07659, allocations: 0 / 399.8 MB, free: 13.07 MB / 302.1 MB Notification: Performance of FrontEnd: time 6.41e-07/0.0766, allocations: 0 / 399.8 MB, free: 13.07 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.248e-06/0.07661, allocations: 0 / 399.8 MB, free: 13.07 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.0005421/0.07716, allocations: 427 kB / 400.2 MB, free: 12.61 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.09e-05/0.07719, allocations: 8.031 kB / 400.2 MB, free: 12.6 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.599e-05/0.07725, allocations: 16.75 kB / 400.2 MB, free: 12.58 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002177/0.07747, allocations: 216.5 kB / 400.4 MB, free: 12.33 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.119e-05/0.07749, allocations: 4.375 kB / 400.4 MB, free: 12.33 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.944e-05/0.07753, allocations: 16.36 kB / 400.4 MB, free: 12.31 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002293/0.07777, allocations: 124.3 kB / 400.5 MB, free: 12.18 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.396e-06/0.07778, allocations: 3.938 kB / 400.5 MB, free: 12.17 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.171e-05/0.0778, allocations: 4 kB / 400.6 MB, free: 12.17 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.137e-06/0.07781, allocations: 0 / 400.6 MB, free: 12.17 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001769/0.07799, allocations: 59.97 kB / 400.6 MB, free: 12.11 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005955/0.0786, allocations: 453.2 kB / 401.1 MB, free: 11.6 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003594/0.07897, allocations: 127.8 kB / 401.2 MB, free: 11.45 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001037/0.07908, allocations: 46.56 kB / 401.2 MB, free: 11.39 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.626e-05/0.0791, allocations: 0 / 401.2 MB, free: 11.39 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.609e-05/0.07914, allocations: 34.56 kB / 401.3 MB, free: 11.35 MB / 302.1 MB Notification: Performance of pre-optimization done (n=7): time 2.305e-06/0.07914, allocations: 4 kB / 401.3 MB, free: 11.35 MB / 302.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003604/0.07951, allocations: 121.6 kB / 401.4 MB, free: 11.22 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.516e-05/0.0796, allocations: 110.8 kB / 401.5 MB, free: 11.09 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001252/0.07973, allocations: 150.4 kB / 401.6 MB, free: 10.93 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.552e-05/0.07976, allocations: 29.7 kB / 401.7 MB, free: 10.89 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.889e-05/0.07983, allocations: 111.9 kB / 401.8 MB, free: 10.78 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.308e-05/0.07986, allocations: 27.91 kB / 401.8 MB, free: 10.75 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.634e-05/0.07991, allocations: 25.7 kB / 401.8 MB, free: 10.72 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001349/0.08006, allocations: 318.8 kB / 402.1 MB, free: 10.4 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.129e-05/0.08015, allocations: 27.98 kB / 402.2 MB, free: 10.38 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000105/0.08026, allocations: 61.08 kB / 402.2 MB, free: 10.3 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000179/0.08045, allocations: 83.62 kB / 402.3 MB, free: 10.2 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-06/0.08046, allocations: 4 kB / 402.3 MB, free: 10.2 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000351/0.08082, allocations: 146.1 kB / 402.5 MB, free: 10.05 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.471e-05/0.08084, allocations: 4 kB / 402.5 MB, free: 10.04 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.661e-06/0.08085, allocations: 7.938 kB / 402.5 MB, free: 10.04 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001873/0.08105, allocations: 32.83 kB / 402.5 MB, free: 10 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001048/0.08116, allocations: 11.98 kB / 402.5 MB, free: 9.988 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009823/0.08215, allocations: 1.363 MB / 403.9 MB, free: 8.492 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.426e-05/0.08226, allocations: 7.938 kB / 403.9 MB, free: 8.484 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.063e-05/0.08228, allocations: 4 kB / 403.9 MB, free: 8.48 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 8.409e-05/0.08237, allocations: 125.9 kB / 404 MB, free: 8.348 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.428e-05/0.08241, allocations: 7.906 kB / 404 MB, free: 8.34 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.183e-05/0.08245, allocations: 24.23 kB / 404 MB, free: 8.312 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.873e-06/0.08245, allocations: 0 / 404 MB, free: 8.312 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.755e-06/0.08246, allocations: 4 kB / 404 MB, free: 8.309 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.917e-06/0.08247, allocations: 3.938 kB / 404 MB, free: 8.305 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000219/0.08269, allocations: 213.5 kB / 404.3 MB, free: 8.047 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.0827, allocations: 0 / 404.3 MB, free: 8.047 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001215/0.08283, allocations: 19.98 kB / 404.3 MB, free: 8.027 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.284e-06/0.08284, allocations: 0 / 404.3 MB, free: 8.027 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.242e-05/0.08285, allocations: 4 kB / 404.3 MB, free: 8.023 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.126e-06/0.08286, allocations: 4.062 kB / 404.3 MB, free: 8.02 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.08287, allocations: 0 / 404.3 MB, free: 8.02 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001302/0.08417, allocations: 1.244 MB / 405.5 MB, free: 6.637 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.739e-05/0.08422, allocations: 85.05 kB / 405.6 MB, free: 6.535 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.874e-05/0.08425, allocations: 12.03 kB / 405.6 MB, free: 6.523 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001052/0.08436, allocations: 7.984 kB / 405.6 MB, free: 6.516 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.285e-05/0.0844, allocations: 4 kB / 405.6 MB, free: 6.512 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.283e-06/0.08441, allocations: 4 kB / 405.6 MB, free: 6.508 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.924e-05/0.0845, allocations: 123.9 kB / 405.8 MB, free: 6.387 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.08451, allocations: 0 / 405.8 MB, free: 6.387 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003457/0.08486, allocations: 31.84 kB / 405.8 MB, free: 6.355 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 8.681e-05/0.08496, allocations: 107.2 kB / 405.9 MB, free: 6.238 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004334/0.08539, allocations: 194.6 kB / 406.1 MB, free: 6.035 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.08541, allocations: 0 / 406.1 MB, free: 6.035 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001029/0.08552, allocations: 31.92 kB / 406.1 MB, free: 6.004 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003481/0.08587, allocations: 31.92 kB / 406.1 MB, free: 5.973 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005744/0.08646, allocations: 410.4 kB / 406.5 MB, free: 5.527 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002653/0.08673, allocations: 0.7043 MB / 407.2 MB, free: 4.797 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.862e-05/0.08681, allocations: 12.73 kB / 407.3 MB, free: 4.785 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.443e-05/0.08686, allocations: 15.44 kB / 407.3 MB, free: 4.77 MB / 302.1 MB Notification: Performance of SimCode: time 2.41e-07/0.08687, allocations: 3.938 kB / 407.3 MB, free: 4.766 MB / 302.1 MB Notification: Performance of Templates: time 0.003399/0.09027, allocations: 1.221 MB / 408.5 MB, free: 3.555 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