Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerGrids_dev_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo", uses=false) Using package PowerGrids with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_dev_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_dev_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.006173/0.006173, allocations: 103.2 kB / 15.73 MB, free: 6.004 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.001539/0.001539, allocations: 189.1 kB / 16.67 MB, free: 5.93 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.265/1.265, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.07356/0.07356, allocations: 16.79 MB / 307.3 MB, free: 14.41 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001114/0.001114, allocations: 67.89 kB / 428.7 MB, free: 8.473 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08682/0.08795, allocations: 53.58 MB / 482.3 MB, free: 2.852 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLeadLag): time 0.002669/0.09065, allocations: 1.788 MB / 484 MB, free: 1.055 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003424/0.09101, allocations: 163.4 kB / 484.2 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.187e-05/0.0911, allocations: 0 / 484.2 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000127/0.09124, allocations: 23.8 kB / 484.2 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001323/0.09138, allocations: 19.8 kB / 484.2 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 8.31e-05/0.09147, allocations: 43.89 kB / 484.3 MB, free: 0.8086 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001702/0.09165, allocations: 123.7 kB / 484.4 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001421/0.0918, allocations: 57.3 kB / 484.5 MB, free: 0.625 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.587e-05/0.09186, allocations: 51.8 kB / 484.5 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001012/0.09197, allocations: 51.7 kB / 484.6 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.211e-05/0.092, allocations: 8 kB / 484.6 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.031e-05/0.09202, allocations: 12 kB / 484.6 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.801e-05/0.09205, allocations: 19.92 kB / 484.6 MB, free: 496 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.236e-05/0.09211, allocations: 59.66 kB / 484.7 MB, free: 436 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000137/0.09225, allocations: 107.6 kB / 484.8 MB, free: 328 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.09226, allocations: 0 / 484.8 MB, free: 328 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.09227, allocations: 0 / 484.8 MB, free: 328 kB / 350.1 MB Notification: Performance of Transformations before backend: time 7.173e-06/0.09228, allocations: 0 / 484.8 MB, free: 328 kB / 350.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.0006095/0.09289, allocations: 438.9 kB / 485.2 MB, free: 15.84 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.72e-05/0.09294, allocations: 8.031 kB / 485.2 MB, free: 15.83 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.322e-05/0.093, allocations: 16.75 kB / 485.2 MB, free: 15.82 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003135/0.09332, allocations: 216.6 kB / 485.4 MB, free: 15.57 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.154e-05/0.09335, allocations: 8.375 kB / 485.4 MB, free: 15.56 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.518e-05/0.09339, allocations: 8.375 kB / 485.4 MB, free: 15.55 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002739/0.09367, allocations: 128.3 kB / 485.6 MB, free: 15.41 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.308e-06/0.09369, allocations: 3.984 kB / 485.6 MB, free: 15.41 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.292e-05/0.09371, allocations: 4 kB / 485.6 MB, free: 15.4 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.883e-06/0.09372, allocations: 4 kB / 485.6 MB, free: 15.4 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001858/0.09391, allocations: 59.88 kB / 485.6 MB, free: 15.34 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005817/0.0945, allocations: 453.1 kB / 486.1 MB, free: 14.83 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003479/0.09486, allocations: 123.8 kB / 486.2 MB, free: 14.68 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.588e-05/0.09497, allocations: 42.62 kB / 486.2 MB, free: 14.63 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.56e-05/0.09499, allocations: 0 / 486.2 MB, free: 14.63 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.418e-05/0.09502, allocations: 46.55 kB / 486.3 MB, free: 14.58 MB / 366.1 MB Notification: Performance of pre-optimization done (n=7): time 9.12e-07/0.09502, allocations: 0 / 486.3 MB, free: 14.58 MB / 366.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003544/0.09538, allocations: 121.5 kB / 486.4 MB, free: 14.45 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.589e-05/0.09544, allocations: 110.8 kB / 486.5 MB, free: 14.32 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001358/0.09558, allocations: 153.4 kB / 486.7 MB, free: 14.16 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.515e-05/0.0956, allocations: 25.7 kB / 486.7 MB, free: 14.13 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.272e-05/0.09567, allocations: 111.9 kB / 486.8 MB, free: 14.02 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.983e-05/0.09569, allocations: 19.72 kB / 486.8 MB, free: 14 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.495e-05/0.09575, allocations: 33.95 kB / 486.9 MB, free: 13.96 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.977e-05/0.09586, allocations: 322.8 kB / 487.2 MB, free: 13.63 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.356e-05/0.09595, allocations: 23.98 kB / 487.2 MB, free: 13.61 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.413e-05/0.09605, allocations: 57.14 kB / 487.3 MB, free: 13.54 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001703/0.09623, allocations: 79.62 kB / 487.3 MB, free: 13.45 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.09624, allocations: 4 kB / 487.3 MB, free: 13.44 MB / 366.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003329/0.09658, allocations: 146.3 kB / 487.5 MB, free: 13.29 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.178e-05/0.0966, allocations: 4 kB / 487.5 MB, free: 13.29 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.265e-05/0.09661, allocations: 4 kB / 487.5 MB, free: 13.28 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001878/0.09681, allocations: 36.83 kB / 487.5 MB, free: 13.24 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.461e-05/0.09691, allocations: 15.98 kB / 487.5 MB, free: 13.23 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00103/0.09795, allocations: 1.453 MB / 489 MB, free: 11.63 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.043e-05/0.09805, allocations: 11.94 kB / 489 MB, free: 11.62 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.087e-05/0.09808, allocations: 7.984 kB / 489 MB, free: 11.61 MB / 366.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.168e-05/0.09817, allocations: 129.8 kB / 489.1 MB, free: 11.47 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.132e-05/0.0982, allocations: 7.906 kB / 489.1 MB, free: 11.46 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.414e-05/0.09823, allocations: 16.44 kB / 489.2 MB, free: 11.45 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-06/0.09824, allocations: 0 / 489.2 MB, free: 11.45 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.042e-06/0.09824, allocations: 3.938 kB / 489.2 MB, free: 11.45 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.609e-06/0.09825, allocations: 7.984 kB / 489.2 MB, free: 11.44 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001957/0.09845, allocations: 201.6 kB / 489.4 MB, free: 11.2 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.09846, allocations: 4 kB / 489.4 MB, free: 11.19 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00011/0.09858, allocations: 19.98 kB / 489.4 MB, free: 11.17 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.904e-06/0.09859, allocations: 0 / 489.4 MB, free: 11.17 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.644e-05/0.09861, allocations: 15.92 kB / 489.4 MB, free: 11.16 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.402e-06/0.09862, allocations: 0 / 489.4 MB, free: 11.16 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.09862, allocations: 0 / 489.4 MB, free: 11.16 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003204/0.09895, allocations: 233 kB / 489.6 MB, free: 10.91 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.137e-05/0.099, allocations: 92.97 kB / 489.7 MB, free: 10.8 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.865e-05/0.09902, allocations: 16 kB / 489.7 MB, free: 10.78 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.768e-05/0.09913, allocations: 0 / 489.7 MB, free: 10.78 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.712e-05/0.09917, allocations: 7.984 kB / 489.7 MB, free: 10.77 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.843e-06/0.09918, allocations: 4 kB / 489.8 MB, free: 10.77 MB / 366.1 MB Notification: Performance of sorting global known variables: time 8.202e-05/0.09927, allocations: 115.2 kB / 489.9 MB, free: 10.66 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.09927, allocations: 0 / 489.9 MB, free: 10.66 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002437/0.09952, allocations: 24.06 kB / 489.9 MB, free: 10.63 MB / 366.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.94e-05/0.09962, allocations: 95.19 kB / 490 MB, free: 10.53 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004067/0.1, allocations: 198.5 kB / 490.2 MB, free: 10.32 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.1, allocations: 0 / 490.2 MB, free: 10.32 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 9.906e-05/0.1001, allocations: 40.22 kB / 490.2 MB, free: 10.29 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003033/0.1005, allocations: 23.92 kB / 490.2 MB, free: 10.26 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004688/0.1009, allocations: 259.3 kB / 490.5 MB, free: 9.98 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002393/0.1012, allocations: 0.7119 MB / 491.2 MB, free: 9.242 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.358e-05/0.1013, allocations: 4.562 kB / 491.2 MB, free: 9.234 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.45e-05/0.1013, allocations: 15.44 kB / 491.2 MB, free: 9.219 MB / 366.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1013, allocations: 8 kB / 491.2 MB, free: 9.211 MB / 366.1 MB Notification: Performance of Templates: time 0.00345/0.1048, allocations: 1.272 MB / 492.5 MB, free: 7.945 MB / 366.1 MB make -j1 -f PowerGrids_dev_PowerGrids.Controls.Test.TestLeadLag.makefile (rm -f PowerGrids_dev_PowerGrids.Controls.Test.TestLeadLag.pipe ; mkfifo PowerGrids_dev_PowerGrids.Controls.Test.TestLeadLag.pipe ; head -c 1048576 < PowerGrids_dev_PowerGrids.Controls.Test.TestLeadLag.pipe >> ../files/PowerGrids_dev_PowerGrids.Controls.Test.TestLeadLag.sim & ./PowerGrids_dev_PowerGrids.Controls.Test.TestLeadLag -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=50 -emit_protected -lv LOG_STATS > PowerGrids_dev_PowerGrids.Controls.Test.TestLeadLag.pipe 2>&1) diffSimulationResults("PowerGrids_dev_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_dev_PowerGrids.Controls.Test.TestLeadLag.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches