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.001442/0.001442, allocations: 100.1 kB / 15.88 MB, free: 12 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001832/0.001832, allocations: 199.8 kB / 16.79 MB, free: 6.828 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.367/1.367, allocations: 205.1 MB / 222.6 MB, free: 4.84 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06073/0.06073, allocations: 14.16 MB / 284.1 MB, free: 7.363 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.001415/0.001415, allocations: 63.91 kB / 347.1 MB, free: 17.81 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08015/0.08158, allocations: 50.13 MB / 397.2 MB, free: 15.64 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLeadLag): time 0.00303/0.08464, allocations: 1.864 MB / 399.1 MB, free: 13.76 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003566/0.08503, allocations: 143.5 kB / 399.2 MB, free: 13.62 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001054/0.08515, allocations: 3.938 kB / 399.2 MB, free: 13.62 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001476/0.0853, allocations: 19.88 kB / 399.3 MB, free: 13.6 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001598/0.08549, allocations: 23.83 kB / 399.3 MB, free: 13.57 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 8.744e-05/0.08558, allocations: 31.98 kB / 399.3 MB, free: 13.54 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001676/0.08576, allocations: 115.7 kB / 399.4 MB, free: 13.43 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001527/0.08592, allocations: 61.19 kB / 399.5 MB, free: 13.37 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.634e-05/0.08598, allocations: 43.78 kB / 399.5 MB, free: 13.33 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001228/0.08611, allocations: 47.77 kB / 399.6 MB, free: 13.28 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.322e-05/0.08614, allocations: 4 kB / 399.6 MB, free: 13.28 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.151e-05/0.08617, allocations: 8 kB / 399.6 MB, free: 13.27 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.002e-05/0.0862, allocations: 19.86 kB / 399.6 MB, free: 13.25 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.083e-05/0.08627, allocations: 47.67 kB / 399.6 MB, free: 13.2 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001188/0.08639, allocations: 79.88 kB / 399.7 MB, free: 13.12 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.389e-06/0.0864, allocations: 0 / 399.7 MB, free: 13.12 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.08641, allocations: 0 / 399.7 MB, free: 13.12 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.899e-06/0.08642, allocations: 0 / 399.7 MB, free: 13.12 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.0006191/0.08705, allocations: 423 kB / 400.1 MB, free: 12.66 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.634e-05/0.08709, allocations: 8.031 kB / 400.1 MB, free: 12.65 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.978e-05/0.08715, allocations: 16.75 kB / 400.2 MB, free: 12.64 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002247/0.08738, allocations: 220.5 kB / 400.4 MB, free: 12.38 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.503e-05/0.0874, allocations: 8.375 kB / 400.4 MB, free: 12.38 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.697e-05/0.08743, allocations: 4.375 kB / 400.4 MB, free: 12.37 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002532/0.08769, allocations: 136.3 kB / 400.5 MB, free: 12.22 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.448e-06/0.08771, allocations: 0 / 400.5 MB, free: 12.22 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.543e-05/0.08773, allocations: 4 kB / 400.5 MB, free: 12.22 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.364e-06/0.08774, allocations: 4 kB / 400.5 MB, free: 12.21 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001925/0.08794, allocations: 59.95 kB / 400.6 MB, free: 12.16 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006452/0.08859, allocations: 449.2 kB / 401 MB, free: 11.65 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004007/0.08901, allocations: 127.7 kB / 401.2 MB, free: 11.5 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001088/0.08913, allocations: 42.69 kB / 401.2 MB, free: 11.45 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.951e-05/0.08916, allocations: 4 kB / 401.2 MB, free: 11.45 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.799e-05/0.08919, allocations: 42.55 kB / 401.2 MB, free: 11.39 MB / 302.1 MB Notification: Performance of pre-optimization done (n=7): time 1.443e-06/0.0892, allocations: 0 / 401.2 MB, free: 11.39 MB / 302.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003867/0.08959, allocations: 121.6 kB / 401.4 MB, free: 11.27 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.765e-05/0.08966, allocations: 110.8 kB / 401.5 MB, free: 11.14 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000134/0.0898, allocations: 154.4 kB / 401.6 MB, free: 10.97 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.578e-05/0.08982, allocations: 25.7 kB / 401.6 MB, free: 10.94 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.45e-05/0.0899, allocations: 120.1 kB / 401.8 MB, free: 10.82 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.422e-05/0.08993, allocations: 23.66 kB / 401.8 MB, free: 10.8 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.606e-05/0.08999, allocations: 29.64 kB / 401.8 MB, free: 10.76 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001131/0.09011, allocations: 322.8 kB / 402.1 MB, free: 10.44 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.066e-05/0.0902, allocations: 19.98 kB / 402.1 MB, free: 10.42 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001118/0.09032, allocations: 61.14 kB / 402.2 MB, free: 10.34 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001759/0.09051, allocations: 79.34 kB / 402.3 MB, free: 10.25 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.09052, allocations: 0 / 402.3 MB, free: 10.25 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.00038/0.0909, allocations: 150.2 kB / 402.4 MB, free: 10.09 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.513e-05/0.09093, allocations: 4 kB / 402.4 MB, free: 10.09 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.511e-06/0.09094, allocations: 0 / 402.4 MB, free: 10.09 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002097/0.09116, allocations: 36.83 kB / 402.5 MB, free: 10.05 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001086/0.09128, allocations: 15.98 kB / 402.5 MB, free: 10.04 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00107/0.09236, allocations: 1.351 MB / 403.8 MB, free: 8.551 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001011/0.09247, allocations: 15.95 kB / 403.9 MB, free: 8.535 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.237e-05/0.09249, allocations: 8.062 kB / 403.9 MB, free: 8.527 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 9.826e-05/0.0926, allocations: 133.8 kB / 404 MB, free: 8.387 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.497e-05/0.09264, allocations: 7.906 kB / 404 MB, free: 8.379 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.813e-05/0.09267, allocations: 16.3 kB / 404 MB, free: 8.359 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-06/0.09268, allocations: 0 / 404 MB, free: 8.359 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.162e-06/0.09269, allocations: 0 / 404 MB, free: 8.359 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.031e-06/0.0927, allocations: 7.938 kB / 404 MB, free: 8.352 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002102/0.09291, allocations: 205.5 kB / 404.2 MB, free: 8.102 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.567e-06/0.09292, allocations: 4 kB / 404.2 MB, free: 8.098 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001221/0.09305, allocations: 19.98 kB / 404.2 MB, free: 8.078 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.09306, allocations: 0 / 404.2 MB, free: 8.078 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.265e-05/0.09308, allocations: 4 kB / 404.2 MB, free: 8.074 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.517e-06/0.09309, allocations: 4 kB / 404.3 MB, free: 8.07 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.0931, allocations: 0 / 404.3 MB, free: 8.07 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003477/0.09345, allocations: 241 kB / 404.5 MB, free: 7.812 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.473e-05/0.0935, allocations: 88.98 kB / 404.6 MB, free: 7.707 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.785e-05/0.09353, allocations: 4 kB / 404.6 MB, free: 7.703 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001122/0.09364, allocations: 7.984 kB / 404.6 MB, free: 7.695 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.572e-05/0.0937, allocations: 11.92 kB / 404.6 MB, free: 7.684 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.124e-06/0.09371, allocations: 7.938 kB / 404.6 MB, free: 7.676 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.436e-05/0.0938, allocations: 112 kB / 404.7 MB, free: 7.566 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.09381, allocations: 4.062 kB / 404.7 MB, free: 7.562 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002694/0.09408, allocations: 20 kB / 404.7 MB, free: 7.543 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 9.839e-05/0.09419, allocations: 99.36 kB / 404.8 MB, free: 7.434 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004559/0.09465, allocations: 194.5 kB / 405 MB, free: 7.23 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.09467, allocations: 7.938 kB / 405 MB, free: 7.223 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001027/0.09478, allocations: 36.11 kB / 405.1 MB, free: 7.188 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003928/0.09518, allocations: 24.55 kB / 405.1 MB, free: 7.164 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005701/0.09576, allocations: 313.3 kB / 405.4 MB, free: 6.82 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002409/0.09602, allocations: 0.7043 MB / 406.1 MB, free: 6.09 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.057e-05/0.09606, allocations: 11.44 kB / 406.1 MB, free: 6.078 MB / 302.1 MB Notification: Performance of SimCode: time 4.41e-07/0.09607, allocations: 4 kB / 406.1 MB, free: 6.074 MB / 302.1 MB Notification: Performance of Templates: time 0.003366/0.09944, allocations: 1.708 MB / 407.8 MB, free: 4.363 MB / 302.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","../files/PowerGrids_PowerGrids.Controls.Test.TestLeadLag.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches