Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerGrids_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_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_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.001111/0.001111, allocations: 103 kB / 16.41 MB, free: 6.473 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.001097/0.001097, allocations: 189.6 kB / 17.34 MB, free: 5.754 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.282/1.282, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06233/0.06233, allocations: 14.17 MB / 284.7 MB, free: 13.87 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.002056/0.002056, allocations: 69.28 kB / 399.3 MB, free: 42.71 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07044/0.07251, allocations: 50.14 MB / 449.4 MB, free: 11.57 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLeadLag): time 0.003012/0.07556, allocations: 1.804 MB / 451.2 MB, free: 9.75 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.000476/0.07606, allocations: 155.5 kB / 451.3 MB, free: 9.598 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001756/0.07625, allocations: 7.938 kB / 451.4 MB, free: 9.59 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001645/0.07643, allocations: 15.8 kB / 451.4 MB, free: 9.574 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001981/0.07666, allocations: 31.78 kB / 451.4 MB, free: 9.543 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000114/0.07678, allocations: 35.89 kB / 451.4 MB, free: 9.508 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002008/0.07699, allocations: 131.7 kB / 451.6 MB, free: 9.379 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001761/0.07718, allocations: 61.23 kB / 451.6 MB, free: 9.32 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.935e-05/0.07727, allocations: 43.8 kB / 451.7 MB, free: 9.277 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001257/0.0774, allocations: 55.75 kB / 451.7 MB, free: 9.223 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.173e-05/0.07744, allocations: 15.94 kB / 451.7 MB, free: 9.207 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.276e-05/0.07747, allocations: 8 kB / 451.7 MB, free: 9.199 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.307e-05/0.07751, allocations: 19.92 kB / 451.8 MB, free: 9.18 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.556e-05/0.07757, allocations: 47.73 kB / 451.8 MB, free: 9.133 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001624/0.07774, allocations: 111.5 kB / 451.9 MB, free: 9.023 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.07775, allocations: 0 / 451.9 MB, free: 9.023 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.07776, allocations: 4 kB / 451.9 MB, free: 9.02 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.221e-06/0.07777, allocations: 0 / 451.9 MB, free: 9.02 MB / 334.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.000615/0.07839, allocations: 427 kB / 452.3 MB, free: 8.551 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.413e-05/0.07843, allocations: 8.031 kB / 452.3 MB, free: 8.543 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.027e-05/0.07849, allocations: 16.83 kB / 452.4 MB, free: 8.527 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003211/0.07881, allocations: 214.7 kB / 452.6 MB, free: 8.281 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.589e-05/0.07884, allocations: 16.31 kB / 452.6 MB, free: 8.266 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.346e-05/0.07888, allocations: 12.38 kB / 452.6 MB, free: 8.254 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000246/0.07913, allocations: 120.3 kB / 452.7 MB, free: 8.121 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.005e-06/0.07915, allocations: 0 / 452.7 MB, free: 8.121 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.446e-05/0.07917, allocations: 4 kB / 452.7 MB, free: 8.117 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.981e-06/0.07918, allocations: 3.984 kB / 452.7 MB, free: 8.113 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001875/0.07937, allocations: 63.97 kB / 452.8 MB, free: 8.051 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006696/0.08005, allocations: 445.1 kB / 453.2 MB, free: 7.555 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003806/0.08044, allocations: 119.8 kB / 453.3 MB, free: 7.41 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001059/0.08056, allocations: 50.62 kB / 453.4 MB, free: 7.352 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.536e-05/0.08058, allocations: 4 kB / 453.4 MB, free: 7.348 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2e-05/0.08061, allocations: 34.56 kB / 453.4 MB, free: 7.305 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 1.343e-06/0.08061, allocations: 0 / 453.4 MB, free: 7.305 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003765/0.08099, allocations: 125.6 kB / 453.5 MB, free: 7.176 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.92e-05/0.08105, allocations: 114.7 kB / 453.7 MB, free: 7.039 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001376/0.0812, allocations: 150.4 kB / 453.8 MB, free: 6.879 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.778e-05/0.08122, allocations: 29.7 kB / 453.8 MB, free: 6.844 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.511e-05/0.08131, allocations: 120.1 kB / 454 MB, free: 6.723 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.384e-05/0.08134, allocations: 23.7 kB / 454 MB, free: 6.699 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.512e-05/0.08139, allocations: 21.7 kB / 454 MB, free: 6.672 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.407e-05/0.08149, allocations: 322.8 kB / 454.3 MB, free: 6.348 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.803e-05/0.08158, allocations: 19.98 kB / 454.3 MB, free: 6.328 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001078/0.0817, allocations: 65.14 kB / 454.4 MB, free: 6.246 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001745/0.08188, allocations: 79.34 kB / 454.5 MB, free: 6.156 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.08189, allocations: 256 / 454.5 MB, free: 6.156 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003684/0.08226, allocations: 150.2 kB / 454.6 MB, free: 6 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.426e-05/0.08229, allocations: 4 kB / 454.6 MB, free: 5.996 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.611e-06/0.0823, allocations: 0 / 454.6 MB, free: 5.996 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002077/0.08251, allocations: 32.83 kB / 454.7 MB, free: 5.961 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001063/0.08263, allocations: 15.98 kB / 454.7 MB, free: 5.945 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001096/0.08373, allocations: 1.465 MB / 456.1 MB, free: 4.34 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001028/0.08385, allocations: 12 kB / 456.2 MB, free: 4.328 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.192e-05/0.08387, allocations: 4 kB / 456.2 MB, free: 4.324 MB / 334.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 9.209e-05/0.08397, allocations: 130.5 kB / 456.3 MB, free: 4.188 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.062e-05/0.08402, allocations: 11.91 kB / 456.3 MB, free: 4.176 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.731e-05/0.08405, allocations: 20.19 kB / 456.3 MB, free: 4.156 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.356e-06/0.08406, allocations: 4 kB / 456.3 MB, free: 4.152 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.352e-06/0.08406, allocations: 0 / 456.3 MB, free: 4.152 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.585e-06/0.08407, allocations: 0 / 456.3 MB, free: 4.152 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002033/0.08428, allocations: 213.5 kB / 456.5 MB, free: 3.895 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.08429, allocations: 0 / 456.5 MB, free: 3.895 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001251/0.08442, allocations: 15.98 kB / 456.5 MB, free: 3.879 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.559e-06/0.08443, allocations: 4 kB / 456.5 MB, free: 3.875 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.107e-05/0.08445, allocations: 3.938 kB / 456.5 MB, free: 3.871 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.08445, allocations: 0 / 456.5 MB, free: 3.871 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.587e-06/0.08446, allocations: 7.984 kB / 456.6 MB, free: 3.863 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003329/0.0848, allocations: 229.1 kB / 456.8 MB, free: 3.617 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.748e-05/0.08486, allocations: 96.94 kB / 456.9 MB, free: 3.504 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.878e-05/0.08488, allocations: 3.938 kB / 456.9 MB, free: 3.5 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001158/0.085, allocations: 8.062 kB / 456.9 MB, free: 3.492 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.555e-05/0.08506, allocations: 12.17 kB / 456.9 MB, free: 3.48 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.36e-06/0.08507, allocations: 4.062 kB / 456.9 MB, free: 3.477 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.948e-05/0.08517, allocations: 123.1 kB / 457 MB, free: 3.355 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.08517, allocations: 0 / 457 MB, free: 3.355 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000265/0.08544, allocations: 20 kB / 457 MB, free: 3.336 MB / 334.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 9.025e-05/0.08554, allocations: 95.25 kB / 457.1 MB, free: 3.234 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004417/0.08599, allocations: 190.8 kB / 457.3 MB, free: 3.035 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.086, allocations: 4 kB / 457.3 MB, free: 3.031 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001069/0.08612, allocations: 31.92 kB / 457.4 MB, free: 3 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003317/0.08646, allocations: 36.92 kB / 457.4 MB, free: 2.965 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005359/0.087, allocations: 282.7 kB / 457.7 MB, free: 2.648 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002471/0.08727, allocations: 0.7081 MB / 458.4 MB, free: 1.914 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.144e-05/0.08732, allocations: 15.44 kB / 458.4 MB, free: 1.898 MB / 334.1 MB Notification: Performance of SimCode: time 3.3e-07/0.08732, allocations: 0 / 458.4 MB, free: 1.898 MB / 334.1 MB Notification: Performance of Templates: time 0.00346/0.09079, allocations: 1.726 MB / 460.1 MB, free: 172 kB / 334.1 MB make -j1 -f PowerGrids_PowerGrids.Controls.Test.TestLeadLag.makefile (rm -f PowerGrids_PowerGrids.Controls.Test.TestLeadLag.pipe ; mkfifo PowerGrids_PowerGrids.Controls.Test.TestLeadLag.pipe ; head -c 1048576 < PowerGrids_PowerGrids.Controls.Test.TestLeadLag.pipe >> ../files/PowerGrids_PowerGrids.Controls.Test.TestLeadLag.sim & ./PowerGrids_PowerGrids.Controls.Test.TestLeadLag -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerGrids_PowerGrids.Controls.Test.TestLeadLag.pipe 2>&1) diffSimulationResults("PowerGrids_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_PowerGrids.Controls.Test.TestLeadLag.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches