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.001494/0.001494, allocations: 108.3 kB / 16.41 MB, free: 6.52 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.001309/0.001309, allocations: 187 kB / 17.34 MB, free: 5.738 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.389/1.389, allocations: 222.9 MB / 241 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.0746/0.0746, allocations: 16.77 MB / 308 MB, free: 14.4 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001568/0.001568, allocations: 55.91 kB / 429.4 MB, free: 8.449 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1195/0.1211, allocations: 53.57 MB / 482.9 MB, free: 2.824 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLeadLag): time 0.003707/0.1248, allocations: 1.783 MB / 484.7 MB, free: 1.035 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005414/0.1254, allocations: 159.4 kB / 484.9 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001835/0.1256, allocations: 4 kB / 484.9 MB, free: 0.875 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000171/0.1258, allocations: 23.73 kB / 484.9 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002379/0.126, allocations: 23.8 kB / 484.9 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001457/0.1262, allocations: 39.95 kB / 485 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000272/0.1265, allocations: 127.6 kB / 485.1 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001959/0.1267, allocations: 61.28 kB / 485.1 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.014e-05/0.1268, allocations: 47.84 kB / 485.2 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001313/0.1269, allocations: 47.72 kB / 485.2 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.085e-05/0.127, allocations: 8 kB / 485.2 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.584e-05/0.127, allocations: 12 kB / 485.2 MB, free: 496 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.407e-05/0.127, allocations: 31.91 kB / 485.3 MB, free: 464 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.39e-05/0.1271, allocations: 51.61 kB / 485.3 MB, free: 412 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002061/0.1273, allocations: 115.5 kB / 485.4 MB, free: 296 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.1273, allocations: 0 / 485.4 MB, free: 296 kB / 350.1 MB Notification: Performance of FrontEnd: time 2.375e-06/0.1274, allocations: 0 / 485.4 MB, free: 296 kB / 350.1 MB Notification: Performance of Transformations before backend: time 8.757e-06/0.1274, allocations: 0 / 485.4 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.0007819/0.1282, allocations: 430.8 kB / 485.9 MB, free: 15.82 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.531e-05/0.1282, allocations: 12.03 kB / 485.9 MB, free: 15.8 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.072e-05/0.1283, allocations: 20.84 kB / 485.9 MB, free: 15.79 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003891/0.1287, allocations: 216.7 kB / 486.1 MB, free: 15.54 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.768e-05/0.1287, allocations: 8.375 kB / 486.1 MB, free: 15.53 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.621e-05/0.1288, allocations: 8.375 kB / 486.1 MB, free: 15.52 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002785/0.129, allocations: 120.3 kB / 486.2 MB, free: 15.39 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.428e-06/0.1291, allocations: 0 / 486.2 MB, free: 15.39 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.82e-05/0.1291, allocations: 12 kB / 486.3 MB, free: 15.38 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.821e-06/0.1291, allocations: 0 / 486.3 MB, free: 15.38 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001968/0.1293, allocations: 58.41 kB / 486.3 MB, free: 15.32 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007172/0.13, allocations: 449.3 kB / 486.7 MB, free: 14.82 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004189/0.1305, allocations: 123.8 kB / 486.9 MB, free: 14.67 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001131/0.1306, allocations: 42.62 kB / 486.9 MB, free: 14.62 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.763e-05/0.1306, allocations: 8 kB / 486.9 MB, free: 14.61 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.552e-05/0.1307, allocations: 42.48 kB / 487 MB, free: 14.56 MB / 366.1 MB Notification: Performance of pre-optimization done (n=7): time 1.382e-06/0.1307, allocations: 0 / 487 MB, free: 14.56 MB / 366.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004261/0.1311, allocations: 129.4 kB / 487.1 MB, free: 14.43 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.189e-05/0.1312, allocations: 107.1 kB / 487.2 MB, free: 14.3 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001485/0.1313, allocations: 157 kB / 487.3 MB, free: 14.13 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.995e-05/0.1314, allocations: 25.7 kB / 487.4 MB, free: 14.1 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.514e-05/0.1315, allocations: 116 kB / 487.5 MB, free: 13.98 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.644e-05/0.1315, allocations: 27.78 kB / 487.5 MB, free: 13.96 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.454e-05/0.1316, allocations: 17.72 kB / 487.5 MB, free: 13.93 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001251/0.1317, allocations: 322.8 kB / 487.8 MB, free: 13.61 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.009e-05/0.1318, allocations: 27.92 kB / 487.9 MB, free: 13.58 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001102/0.1319, allocations: 65.08 kB / 487.9 MB, free: 13.5 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002042/0.1321, allocations: 83.38 kB / 488 MB, free: 13.41 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.1321, allocations: 0 / 488 MB, free: 13.41 MB / 366.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003783/0.1325, allocations: 138.3 kB / 488.2 MB, free: 13.26 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.722e-05/0.1325, allocations: 8 kB / 488.2 MB, free: 13.25 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.1326, allocations: 0 / 488.2 MB, free: 13.25 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002241/0.1328, allocations: 36.92 kB / 488.2 MB, free: 13.21 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001041/0.1329, allocations: 23.92 kB / 488.2 MB, free: 13.19 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001252/0.1342, allocations: 1.457 MB / 489.7 MB, free: 11.59 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.897e-05/0.1343, allocations: 4 kB / 489.7 MB, free: 11.59 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.763e-05/0.1343, allocations: 11.98 kB / 489.7 MB, free: 11.57 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.0001133/0.1344, allocations: 117.8 kB / 489.8 MB, free: 11.45 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.749e-05/0.1345, allocations: 11.91 kB / 489.8 MB, free: 11.44 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.112e-05/0.1345, allocations: 24.5 kB / 489.8 MB, free: 11.42 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.276e-06/0.1345, allocations: 4 kB / 489.8 MB, free: 11.41 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.786e-06/0.1345, allocations: 4.25 kB / 489.8 MB, free: 11.41 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.749e-06/0.1345, allocations: 3.984 kB / 489.9 MB, free: 11.41 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002339/0.1348, allocations: 209.6 kB / 490.1 MB, free: 11.15 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.1348, allocations: 0 / 490.1 MB, free: 11.15 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001237/0.1349, allocations: 15.98 kB / 490.1 MB, free: 11.14 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.673e-06/0.1349, allocations: 4 kB / 490.1 MB, free: 11.13 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.565e-05/0.1349, allocations: 7.922 kB / 490.1 MB, free: 11.12 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.1349, allocations: 3.938 kB / 490.1 MB, free: 11.12 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.135, allocations: 4 kB / 490.1 MB, free: 11.12 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003602/0.1353, allocations: 229.2 kB / 490.3 MB, free: 10.87 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.688e-05/0.1354, allocations: 85.02 kB / 490.4 MB, free: 10.77 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.796e-05/0.1354, allocations: 7.938 kB / 490.4 MB, free: 10.76 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001072/0.1355, allocations: 12.06 kB / 490.4 MB, free: 10.75 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.178e-05/0.1356, allocations: 7.984 kB / 490.4 MB, free: 10.74 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.104e-06/0.1356, allocations: 0 / 490.4 MB, free: 10.74 MB / 366.1 MB Notification: Performance of sorting global known variables: time 9.047e-05/0.1357, allocations: 119.2 kB / 490.5 MB, free: 10.62 MB / 366.1 MB Notification: Performance of sort global known variables: time 5.01e-07/0.1357, allocations: 0 / 490.5 MB, free: 10.62 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002641/0.136, allocations: 23.94 kB / 490.6 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.0001323/0.1361, allocations: 95.25 kB / 490.7 MB, free: 10.5 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004728/0.1366, allocations: 198.6 kB / 490.9 MB, free: 10.29 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.1366, allocations: 3.938 kB / 490.9 MB, free: 10.29 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001042/0.1367, allocations: 39.91 kB / 490.9 MB, free: 10.25 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003386/0.1371, allocations: 30.55 kB / 490.9 MB, free: 10.22 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00059/0.1377, allocations: 282.8 kB / 491.2 MB, free: 9.91 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002885/0.138, allocations: 0.7041 MB / 491.9 MB, free: 9.18 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.514e-05/0.138, allocations: 15.44 kB / 491.9 MB, free: 9.164 MB / 366.1 MB Notification: Performance of SimCode: time 3.71e-07/0.138, allocations: 0 / 491.9 MB, free: 9.164 MB / 366.1 MB Notification: Performance of Templates: time 0.004108/0.1421, allocations: 1.722 MB / 493.6 MB, free: 7.441 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/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