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.001276/0.001277, allocations: 108 kB / 16.27 MB, free: 6.309 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.001413/0.001413, allocations: 190.8 kB / 17.2 MB, free: 5.926 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.661/1.661, allocations: 205.1 MB / 223.1 MB, free: 12.27 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06267/0.06267, allocations: 14.16 MB / 284.6 MB, free: 13.94 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.002657/0.002657, allocations: 75.83 kB / 347.8 MB, free: 14.57 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2871/0.2897, allocations: 50.12 MB / 398 MB, free: 48.55 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLeadLag): time 0.003366/0.2932, allocations: 1.802 MB / 399.8 MB, free: 47.14 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005021/0.2937, allocations: 150.7 kB / 399.9 MB, free: 47.01 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001694/0.2939, allocations: 6.312 kB / 399.9 MB, free: 47.01 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001619/0.2941, allocations: 16.95 kB / 399.9 MB, free: 46.99 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001882/0.2943, allocations: 39.14 kB / 400 MB, free: 46.96 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001216/0.2944, allocations: 33.56 kB / 400 MB, free: 46.93 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002217/0.2947, allocations: 126.8 kB / 400.1 MB, free: 46.86 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001684/0.2949, allocations: 53.88 kB / 400.2 MB, free: 46.82 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.624e-05/0.2949, allocations: 53.05 kB / 400.2 MB, free: 46.79 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.873e-05/0.295, allocations: 51.95 kB / 400.3 MB, free: 46.75 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.452e-05/0.2951, allocations: 12.97 kB / 400.3 MB, free: 46.75 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.592e-05/0.2951, allocations: 10.06 kB / 400.3 MB, free: 46.75 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.898e-05/0.2952, allocations: 23.52 kB / 400.3 MB, free: 46.73 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.35e-05/0.2952, allocations: 54.14 kB / 400.4 MB, free: 46.68 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001312/0.2953, allocations: 98.62 kB / 400.5 MB, free: 46.61 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.2954, allocations: 5.391 kB / 400.5 MB, free: 46.61 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.2954, allocations: 0 / 400.5 MB, free: 46.61 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.262e-06/0.2954, allocations: 3.938 kB / 400.5 MB, free: 46.6 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.0005679/0.296, allocations: 429.4 kB / 400.9 MB, free: 46.17 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.808e-05/0.296, allocations: 8.812 kB / 400.9 MB, free: 46.17 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.891e-05/0.2961, allocations: 16.25 kB / 400.9 MB, free: 46.16 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002108/0.2963, allocations: 217.7 kB / 401.2 MB, free: 45.93 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.679e-05/0.2963, allocations: 8.312 kB / 401.2 MB, free: 45.93 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.888e-05/0.2963, allocations: 10.5 kB / 401.2 MB, free: 45.92 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000231/0.2966, allocations: 118 kB / 401.3 MB, free: 45.83 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.456e-06/0.2966, allocations: 4 kB / 401.3 MB, free: 45.82 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.438e-05/0.2966, allocations: 5.125 kB / 401.3 MB, free: 45.82 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.989e-06/0.2966, allocations: 2.469 kB / 401.3 MB, free: 45.82 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000191/0.2968, allocations: 69.39 kB / 401.4 MB, free: 45.79 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006051/0.2974, allocations: 454.1 kB / 401.8 MB, free: 45.34 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003649/0.2978, allocations: 118.9 kB / 401.9 MB, free: 45.24 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.896e-05/0.2979, allocations: 47.05 kB / 402 MB, free: 45.2 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.599e-05/0.2979, allocations: 1.188 kB / 402 MB, free: 45.2 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.088e-05/0.298, allocations: 41.5 kB / 402 MB, free: 45.15 MB / 318.1 MB Notification: Performance of pre-optimization done (n=7): time 1.383e-06/0.298, allocations: 0 / 402 MB, free: 45.15 MB / 318.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003992/0.2984, allocations: 123.6 kB / 402.1 MB, free: 45.07 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.473e-05/0.2984, allocations: 104.2 kB / 402.2 MB, free: 44.95 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001171/0.2986, allocations: 151.8 kB / 402.4 MB, free: 44.82 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.21e-05/0.2986, allocations: 30.8 kB / 402.4 MB, free: 44.79 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.702e-05/0.2986, allocations: 123.1 kB / 402.5 MB, free: 44.67 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.858e-05/0.2987, allocations: 22.58 kB / 402.6 MB, free: 44.65 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.967e-05/0.2987, allocations: 28.47 kB / 402.6 MB, free: 44.62 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.564e-05/0.2988, allocations: 320.8 kB / 402.9 MB, free: 44.3 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.706e-05/0.2988, allocations: 24.02 kB / 402.9 MB, free: 44.29 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.575e-05/0.2989, allocations: 63.03 kB / 403 MB, free: 44.23 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001721/0.2991, allocations: 81.08 kB / 403.1 MB, free: 44.16 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.2991, allocations: 1.375 kB / 403.1 MB, free: 44.16 MB / 318.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003413/0.2995, allocations: 138.8 kB / 403.2 MB, free: 44.07 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.602e-05/0.2995, allocations: 6.5 kB / 403.2 MB, free: 44.07 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.65e-06/0.2995, allocations: 192 / 403.2 MB, free: 44.07 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002142/0.2997, allocations: 41.27 kB / 403.2 MB, free: 44.04 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001012/0.2999, allocations: 18.89 kB / 403.3 MB, free: 44.04 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009127/0.3008, allocations: 1.462 MB / 404.7 MB, free: 42.54 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.693e-05/0.3009, allocations: 11.8 kB / 404.7 MB, free: 42.54 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.041e-05/0.3009, allocations: 2.562 kB / 404.7 MB, free: 42.54 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.246e-05/0.301, allocations: 124 kB / 404.9 MB, free: 42.41 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.777e-05/0.301, allocations: 9.75 kB / 404.9 MB, free: 42.41 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.56e-05/0.3011, allocations: 18.92 kB / 404.9 MB, free: 42.39 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.445e-06/0.3011, allocations: 1.281 kB / 404.9 MB, free: 42.39 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.316e-06/0.3011, allocations: 1.312 kB / 404.9 MB, free: 42.39 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.3011, allocations: 5.094 kB / 404.9 MB, free: 42.38 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001792/0.3013, allocations: 213 kB / 405.1 MB, free: 42.15 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.445e-06/0.3013, allocations: 1.375 kB / 405.1 MB, free: 42.15 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001187/0.3014, allocations: 23.7 kB / 405.1 MB, free: 42.14 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.476e-06/0.3014, allocations: 5.188 kB / 405.1 MB, free: 42.13 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.149e-05/0.3015, allocations: 5.344 kB / 405.1 MB, free: 42.13 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/0.3015, allocations: 1.344 kB / 405.1 MB, free: 42.13 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.3015, allocations: 1.219 kB / 405.1 MB, free: 42.13 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001169/0.3026, allocations: 1.4 MB / 406.5 MB, free: 40.75 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.853e-05/0.3027, allocations: 88.31 kB / 406.6 MB, free: 40.65 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.769e-05/0.3027, allocations: 2.375 kB / 406.6 MB, free: 40.65 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001063/0.3028, allocations: 2.844 kB / 406.6 MB, free: 40.65 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.175e-05/0.3029, allocations: 11.67 kB / 406.6 MB, free: 40.64 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.942e-06/0.3029, allocations: 5.375 kB / 406.6 MB, free: 40.64 MB / 318.1 MB Notification: Performance of sorting global known variables: time 7.984e-05/0.303, allocations: 125.1 kB / 406.8 MB, free: 40.54 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.303, allocations: 0 / 406.8 MB, free: 40.54 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004243/0.3034, allocations: 32.94 kB / 406.8 MB, free: 40.52 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.0001411/0.3036, allocations: 96.34 kB / 406.9 MB, free: 40.43 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0006469/0.3042, allocations: 197.7 kB / 407.1 MB, free: 40.28 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.019e-06/0.3043, allocations: 0 / 407.1 MB, free: 40.28 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001355/0.3044, allocations: 38.75 kB / 407.1 MB, free: 40.26 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006121/0.305, allocations: 23.02 kB / 407.2 MB, free: 40.25 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009912/0.306, allocations: 378.2 kB / 407.5 MB, free: 39.91 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002226/0.3063, allocations: 0.7107 MB / 408.2 MB, free: 39.2 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 9.216e-05/0.3064, allocations: 8.891 kB / 408.2 MB, free: 39.2 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.515e-05/0.3064, allocations: 16.97 kB / 408.3 MB, free: 39.18 MB / 318.1 MB Notification: Performance of SimCode: time 2.7e-07/0.3064, allocations: 4 kB / 408.3 MB, free: 39.18 MB / 318.1 MB Notification: Performance of Templates: time 0.004837/0.3113, allocations: 1.31 MB / 409.6 MB, free: 38.53 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