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.006319/0.006319, allocations: 99.83 kB / 15.73 MB, free: 6.02 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.001379/0.001379, allocations: 189.5 kB / 16.67 MB, free: 5.938 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.37/1.37, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.07414/0.07414, allocations: 16.78 MB / 307.3 MB, free: 14.39 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001402/0.001402, allocations: 63.91 kB / 428.7 MB, free: 8.441 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1133/0.1147, allocations: 53.56 MB / 482.2 MB, free: 2.836 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLeadLag): time 0.003369/0.1182, allocations: 1.798 MB / 484 MB, free: 1.031 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004645/0.1187, allocations: 159.4 kB / 484.2 MB, free: 0.875 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001331/0.1188, allocations: 4 kB / 484.2 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001567/0.119, allocations: 15.75 kB / 484.2 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00019/0.1192, allocations: 31.78 kB / 484.2 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001133/0.1193, allocations: 35.95 kB / 484.3 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002201/0.1195, allocations: 135.6 kB / 484.4 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001795/0.1197, allocations: 49.33 kB / 484.5 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.456e-05/0.1198, allocations: 55.72 kB / 484.5 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001153/0.1199, allocations: 47.77 kB / 484.6 MB, free: 0.5 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.051e-05/0.12, allocations: 12 kB / 484.6 MB, free: 500 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.814e-05/0.12, allocations: 8 kB / 484.6 MB, free: 492 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.51e-05/0.1201, allocations: 27.84 kB / 484.6 MB, free: 464 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.428e-05/0.1201, allocations: 55.67 kB / 484.7 MB, free: 408 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001802/0.1203, allocations: 107.5 kB / 484.8 MB, free: 300 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.1203, allocations: 0 / 484.8 MB, free: 300 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1203, allocations: 4 kB / 484.8 MB, free: 296 kB / 350.1 MB Notification: Performance of Transformations before backend: time 7.193e-06/0.1203, allocations: 0 / 484.8 MB, free: 296 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.0006681/0.121, allocations: 434.8 kB / 485.2 MB, free: 15.81 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.066e-05/0.1211, allocations: 8.031 kB / 485.2 MB, free: 15.8 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.592e-05/0.1211, allocations: 16.84 kB / 485.2 MB, free: 15.79 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000303/0.1214, allocations: 208.8 kB / 485.4 MB, free: 15.55 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.965e-05/0.1215, allocations: 16.31 kB / 485.4 MB, free: 15.53 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.452e-05/0.1215, allocations: 12.38 kB / 485.4 MB, free: 15.52 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002458/0.1218, allocations: 120.3 kB / 485.6 MB, free: 15.39 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.687e-06/0.1218, allocations: 0 / 485.6 MB, free: 15.39 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.446e-05/0.1218, allocations: 0 / 485.6 MB, free: 15.39 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.764e-06/0.1218, allocations: 4 kB / 485.6 MB, free: 15.38 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001881/0.122, allocations: 67.89 kB / 485.6 MB, free: 15.32 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006469/0.1227, allocations: 445.3 kB / 486.1 MB, free: 14.82 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003783/0.1231, allocations: 123.9 kB / 486.2 MB, free: 14.67 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001095/0.1232, allocations: 50.56 kB / 486.2 MB, free: 14.61 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.753e-05/0.1232, allocations: 0 / 486.2 MB, free: 14.61 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.68e-05/0.1232, allocations: 42.5 kB / 486.3 MB, free: 14.56 MB / 366.1 MB Notification: Performance of pre-optimization done (n=7): time 1.734e-06/0.1232, allocations: 0 / 486.3 MB, free: 14.56 MB / 366.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004076/0.1237, allocations: 129.4 kB / 486.4 MB, free: 14.43 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.693e-05/0.1237, allocations: 102.8 kB / 486.5 MB, free: 14.3 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001444/0.1239, allocations: 150 kB / 486.7 MB, free: 14.14 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.125e-05/0.1239, allocations: 33.7 kB / 486.7 MB, free: 14.11 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.788e-05/0.124, allocations: 120.2 kB / 486.8 MB, free: 13.98 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.702e-05/0.124, allocations: 27.73 kB / 486.8 MB, free: 13.96 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.276e-05/0.1241, allocations: 25.7 kB / 486.9 MB, free: 13.93 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001146/0.1242, allocations: 314.8 kB / 487.2 MB, free: 13.61 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.781e-05/0.1243, allocations: 23.97 kB / 487.2 MB, free: 13.59 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001099/0.1244, allocations: 77.02 kB / 487.3 MB, free: 13.49 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001814/0.1246, allocations: 75.34 kB / 487.3 MB, free: 13.41 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.1246, allocations: 0 / 487.3 MB, free: 13.41 MB / 366.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003522/0.125, allocations: 146.3 kB / 487.5 MB, free: 13.25 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.862e-05/0.125, allocations: 6.656 kB / 487.5 MB, free: 13.25 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.49e-06/0.125, allocations: 0 / 487.5 MB, free: 13.25 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002172/0.1252, allocations: 36.77 kB / 487.5 MB, free: 13.21 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.492e-05/0.1254, allocations: 15.98 kB / 487.5 MB, free: 13.2 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001201/0.1266, allocations: 1.458 MB / 489 MB, free: 11.59 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.203e-05/0.1267, allocations: 8.094 kB / 489 MB, free: 11.59 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.838e-05/0.1267, allocations: 8 kB / 489 MB, free: 11.58 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 0.0001028/0.1268, allocations: 125.8 kB / 489.1 MB, free: 11.45 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.884e-05/0.1269, allocations: 11.91 kB / 489.1 MB, free: 11.43 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.049e-05/0.1269, allocations: 24.23 kB / 489.2 MB, free: 11.41 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/0.1269, allocations: 0 / 489.2 MB, free: 11.41 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.673e-06/0.1269, allocations: 0 / 489.2 MB, free: 11.41 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.495e-06/0.1269, allocations: 0 / 489.2 MB, free: 11.41 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00022/0.1271, allocations: 213.6 kB / 489.4 MB, free: 11.16 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.784e-06/0.1271, allocations: 0 / 489.4 MB, free: 11.16 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001156/0.1273, allocations: 23.92 kB / 489.4 MB, free: 11.13 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.1273, allocations: 0 / 489.4 MB, free: 11.13 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.217e-05/0.1273, allocations: 3.938 kB / 489.4 MB, free: 11.13 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.427e-06/0.1273, allocations: 4 kB / 489.4 MB, free: 11.12 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.1273, allocations: 0 / 489.4 MB, free: 11.12 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003458/0.1277, allocations: 225.2 kB / 489.6 MB, free: 10.88 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.536e-05/0.1277, allocations: 93.05 kB / 489.7 MB, free: 10.77 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.787e-05/0.1278, allocations: 7.922 kB / 489.7 MB, free: 10.77 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.938e-05/0.1279, allocations: 4 kB / 489.7 MB, free: 10.76 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.714e-05/0.1279, allocations: 15.92 kB / 489.7 MB, free: 10.75 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.893e-06/0.1279, allocations: 4.062 kB / 489.8 MB, free: 10.74 MB / 366.1 MB Notification: Performance of sorting global known variables: time 8.256e-05/0.128, allocations: 115.3 kB / 489.9 MB, free: 10.63 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.573e-06/0.128, allocations: 0 / 489.9 MB, free: 10.63 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000258/0.1283, allocations: 27.86 kB / 489.9 MB, free: 10.6 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 0.0001102/0.1284, allocations: 95.34 kB / 490 MB, free: 10.5 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004739/0.1289, allocations: 198.8 kB / 490.2 MB, free: 10.29 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.564e-06/0.1289, allocations: 4 kB / 490.2 MB, free: 10.29 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001014/0.129, allocations: 31.92 kB / 490.2 MB, free: 10.26 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003412/0.1294, allocations: 36.03 kB / 490.2 MB, free: 10.22 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005752/0.13, allocations: 259.3 kB / 490.5 MB, free: 9.941 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002962/0.1303, allocations: 0.7081 MB / 491.2 MB, free: 9.207 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 7.817e-05/0.1303, allocations: 16.8 kB / 491.2 MB, free: 9.188 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.865e-05/0.1304, allocations: 11.44 kB / 491.2 MB, free: 9.176 MB / 366.1 MB Notification: Performance of SimCode: time 2e-07/0.1304, allocations: 0 / 491.2 MB, free: 9.176 MB / 366.1 MB Notification: Performance of Templates: time 0.004449/0.1349, allocations: 1.271 MB / 492.5 MB, free: 7.91 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=480 -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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Controls.Test.TestLeadLag_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerGrids_dev_PowerGrids.Controls.Test.TestLeadLag.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches