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.001201/0.001201, allocations: 107.4 kB / 16.28 MB, free: 5.988 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.001825/0.001825, allocations: 190.4 kB / 17.2 MB, free: 5.613 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.467/1.467, allocations: 205.1 MB / 223.1 MB, free: 12.29 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06028/0.06028, 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.001506/0.001506, allocations: 67.91 kB / 347.8 MB, free: 14.57 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3067/0.3082, allocations: 50.13 MB / 398 MB, free: 48.58 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLeadLag): time 0.003837/0.3121, allocations: 1.803 MB / 399.8 MB, free: 47.16 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003957/0.3125, allocations: 150.9 kB / 399.9 MB, free: 47.04 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001136/0.3127, allocations: 7.594 kB / 399.9 MB, free: 47.04 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001561/0.3128, allocations: 21.05 kB / 400 MB, free: 47.02 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001632/0.313, allocations: 30.41 kB / 400 MB, free: 46.99 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 8.811e-05/0.3131, allocations: 37.55 kB / 400 MB, free: 46.96 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002062/0.3133, allocations: 130.1 kB / 400.1 MB, free: 46.88 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000166/0.3135, allocations: 46.05 kB / 400.2 MB, free: 46.86 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.179e-05/0.3136, allocations: 61.17 kB / 400.3 MB, free: 46.81 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000108/0.3137, allocations: 47.36 kB / 400.3 MB, free: 46.78 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.119e-05/0.3137, allocations: 10.41 kB / 400.3 MB, free: 46.78 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.549e-05/0.3138, allocations: 9.156 kB / 400.3 MB, free: 46.78 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.075e-05/0.3138, allocations: 22.86 kB / 400.3 MB, free: 46.76 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.266e-05/0.3139, allocations: 54.48 kB / 400.4 MB, free: 46.71 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001369/0.314, allocations: 100.4 kB / 400.5 MB, free: 46.64 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.439e-06/0.314, allocations: 0 / 400.5 MB, free: 46.64 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.314, allocations: 0 / 400.5 MB, free: 46.64 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.921e-06/0.314, allocations: 0 / 400.5 MB, free: 46.64 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.0005457/0.3146, allocations: 437 kB / 400.9 MB, free: 46.2 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.81e-05/0.3146, allocations: 10.47 kB / 400.9 MB, free: 46.2 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.049e-05/0.3147, allocations: 14.97 kB / 400.9 MB, free: 46.2 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002237/0.3149, allocations: 213 kB / 401.2 MB, free: 45.96 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.892e-05/0.315, allocations: 9.312 kB / 401.2 MB, free: 45.96 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.155e-05/0.315, allocations: 18.44 kB / 401.2 MB, free: 45.95 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002442/0.3153, allocations: 122.8 kB / 401.3 MB, free: 45.85 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.847e-06/0.3153, allocations: 0 / 401.3 MB, free: 45.85 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.52e-05/0.3153, allocations: 5.344 kB / 401.3 MB, free: 45.84 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.925e-06/0.3153, allocations: 2.625 kB / 401.3 MB, free: 45.84 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000204/0.3155, allocations: 61.41 kB / 401.4 MB, free: 45.82 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006532/0.3162, allocations: 450 kB / 401.8 MB, free: 45.38 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004152/0.3166, allocations: 122.5 kB / 401.9 MB, free: 45.27 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001185/0.3167, allocations: 43.75 kB / 402 MB, free: 45.23 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.301e-05/0.3168, allocations: 5.312 kB / 402 MB, free: 45.23 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.853e-05/0.3168, allocations: 39.69 kB / 402 MB, free: 45.18 MB / 318.1 MB Notification: Performance of pre-optimization done (n=7): time 1.653e-06/0.3168, allocations: 0 / 402 MB, free: 45.18 MB / 318.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004284/0.3172, allocations: 124.7 kB / 402.1 MB, free: 45.11 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.135e-05/0.3173, allocations: 103.9 kB / 402.2 MB, free: 44.98 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000139/0.3175, allocations: 151.8 kB / 402.4 MB, free: 44.85 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.532e-05/0.3175, allocations: 31.05 kB / 402.4 MB, free: 44.82 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.619e-05/0.3176, allocations: 126.8 kB / 402.5 MB, free: 44.7 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.987e-05/0.3176, allocations: 18.34 kB / 402.6 MB, free: 44.68 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.426e-05/0.3176, allocations: 28.73 kB / 402.6 MB, free: 44.65 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.898e-05/0.3177, allocations: 320.4 kB / 402.9 MB, free: 44.33 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.543e-05/0.3178, allocations: 24.58 kB / 402.9 MB, free: 44.32 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001003/0.3179, allocations: 63.58 kB / 403 MB, free: 44.26 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001639/0.3181, allocations: 81.34 kB / 403.1 MB, free: 44.2 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.3181, allocations: 256 / 403.1 MB, free: 44.2 MB / 318.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003429/0.3184, allocations: 144.1 kB / 403.2 MB, free: 44.1 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.489e-05/0.3185, allocations: 5.25 kB / 403.2 MB, free: 44.1 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.722e-06/0.3185, allocations: 1.375 kB / 403.2 MB, free: 44.1 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002248/0.3187, allocations: 40.33 kB / 403.2 MB, free: 44.07 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001019/0.3188, allocations: 19.7 kB / 403.3 MB, free: 44.06 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009034/0.3197, allocations: 1.461 MB / 404.7 MB, free: 42.57 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.044e-05/0.3198, allocations: 3.719 kB / 404.7 MB, free: 42.57 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.023e-05/0.3198, allocations: 3.781 kB / 404.7 MB, free: 42.57 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 7.668e-05/0.3199, allocations: 128 kB / 404.9 MB, free: 42.44 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.555e-05/0.32, allocations: 8.406 kB / 404.9 MB, free: 42.44 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.601e-05/0.32, allocations: 14.97 kB / 404.9 MB, free: 42.42 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-06/0.32, allocations: 5.438 kB / 404.9 MB, free: 42.42 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.164e-06/0.32, allocations: 5.156 kB / 404.9 MB, free: 42.41 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.947e-06/0.32, allocations: 1.062 kB / 404.9 MB, free: 42.41 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001909/0.3202, allocations: 217.5 kB / 405.1 MB, free: 42.18 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.3202, allocations: 0 / 405.1 MB, free: 42.18 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001172/0.3204, allocations: 20.42 kB / 405.1 MB, free: 42.17 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.364e-06/0.3204, allocations: 1.344 kB / 405.1 MB, free: 42.17 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.372e-05/0.3204, allocations: 5.812 kB / 405.1 MB, free: 42.16 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.667e-06/0.3204, allocations: 5.234 kB / 405.1 MB, free: 42.16 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.3204, allocations: 1.344 kB / 405.1 MB, free: 42.16 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001205/0.3216, allocations: 1.404 MB / 406.5 MB, free: 40.78 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.851e-05/0.3217, allocations: 84.52 kB / 406.6 MB, free: 40.68 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.775e-05/0.3217, allocations: 6.609 kB / 406.6 MB, free: 40.68 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001037/0.3218, allocations: 6.625 kB / 406.6 MB, free: 40.67 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.362e-05/0.3219, allocations: 10.89 kB / 406.7 MB, free: 40.66 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.765e-06/0.3219, allocations: 2.688 kB / 406.7 MB, free: 40.66 MB / 318.1 MB Notification: Performance of sorting global known variables: time 9.108e-05/0.322, allocations: 120.5 kB / 406.8 MB, free: 40.57 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.322, allocations: 0 / 406.8 MB, free: 40.57 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003558/0.3223, allocations: 33.94 kB / 406.8 MB, free: 40.55 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 0.0001107/0.3225, allocations: 99.55 kB / 406.9 MB, free: 40.46 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004849/0.3229, allocations: 197.2 kB / 407.1 MB, free: 40.3 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.323, allocations: 0 / 407.1 MB, free: 40.3 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001054/0.3231, allocations: 31.08 kB / 407.1 MB, free: 40.29 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004221/0.3235, allocations: 19.33 kB / 407.1 MB, free: 40.29 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005973/0.3241, allocations: 381.2 kB / 407.5 MB, free: 39.95 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001857/0.3243, allocations: 0.7146 MB / 408.2 MB, free: 39.23 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 7.094e-05/0.3244, allocations: 9.75 kB / 408.2 MB, free: 39.23 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.62e-05/0.3244, allocations: 12.72 kB / 408.3 MB, free: 39.22 MB / 318.1 MB Notification: Performance of SimCode: time 4.31e-07/0.3244, allocations: 3.938 kB / 408.3 MB, free: 39.21 MB / 318.1 MB Notification: Performance of Templates: time 0.004166/0.3286, allocations: 1.315 MB / 409.6 MB, free: 38.56 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=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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerGrids_symb_jac_PowerGrids.Controls.Test.TestLeadLag.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches