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.001729/0.001729, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.002326/0.002325, allocations: 199.3 kB / 16.14 MB, free: 6.66 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.533/1.533, allocations: 205.1 MB / 222 MB, free: 4.984 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06487/0.06487, allocations: 14.16 MB / 283.5 MB, free: 7.52 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.001395/0.001395, allocations: 68.42 kB / 346.4 MB, free: 17.83 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09107/0.09248, allocations: 50.13 MB / 396.6 MB, free: 15.66 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLeadLag): time 0.003203/0.09572, allocations: 1.857 MB / 398.4 MB, free: 13.79 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003302/0.09607, allocations: 155.4 kB / 398.6 MB, free: 13.64 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.725e-05/0.09618, allocations: 4 kB / 398.6 MB, free: 13.64 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001414/0.09636, allocations: 11.86 kB / 398.6 MB, free: 13.62 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001652/0.09653, allocations: 23.86 kB / 398.6 MB, free: 13.6 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 9.303e-05/0.09663, allocations: 27.98 kB / 398.6 MB, free: 13.57 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001815/0.09682, allocations: 131.6 kB / 398.8 MB, free: 13.45 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001403/0.09697, allocations: 49.27 kB / 398.8 MB, free: 13.4 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.661e-05/0.09704, allocations: 47.72 kB / 398.9 MB, free: 13.35 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.436e-05/0.09715, allocations: 43.77 kB / 398.9 MB, free: 13.31 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.517e-05/0.09718, allocations: 4 kB / 398.9 MB, free: 13.3 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.886e-05/0.0972, allocations: 8 kB / 398.9 MB, free: 13.3 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.99e-05/0.09724, allocations: 19.92 kB / 398.9 MB, free: 13.28 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.453e-05/0.0973, allocations: 51.66 kB / 399 MB, free: 13.23 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001563/0.09746, allocations: 99.67 kB / 399.1 MB, free: 13.13 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.09747, allocations: 0 / 399.1 MB, free: 13.13 MB / 302.1 MB Notification: Performance of FrontEnd: time 7.32e-07/0.09748, allocations: 7.938 kB / 399.1 MB, free: 13.12 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.727e-06/0.09749, allocations: 0 / 399.1 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.000619/0.09812, allocations: 423 kB / 399.5 MB, free: 12.66 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.765e-05/0.09816, allocations: 8.031 kB / 399.5 MB, free: 12.65 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.181e-05/0.09822, allocations: 16.75 kB / 399.5 MB, free: 12.63 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002968/0.09853, allocations: 212.6 kB / 399.7 MB, free: 12.39 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.854e-05/0.09855, allocations: 16.25 kB / 399.8 MB, free: 12.37 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.495e-05/0.0986, allocations: 12.38 kB / 399.8 MB, free: 12.36 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002412/0.09884, allocations: 116.3 kB / 399.9 MB, free: 12.23 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.669e-06/0.09886, allocations: 8 kB / 399.9 MB, free: 12.22 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.426e-05/0.09888, allocations: 4 kB / 399.9 MB, free: 12.22 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.423e-05/0.0989, allocations: 4 kB / 399.9 MB, free: 12.21 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001985/0.09911, allocations: 63.89 kB / 400 MB, free: 12.15 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006664/0.09978, allocations: 453.2 kB / 400.4 MB, free: 11.64 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003917/0.1002, allocations: 119.8 kB / 400.5 MB, free: 11.5 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000112/0.1003, allocations: 46.61 kB / 400.6 MB, free: 11.45 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.805e-05/0.1003, allocations: 4 kB / 400.6 MB, free: 11.44 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.452e-05/0.1004, allocations: 38.5 kB / 400.6 MB, free: 11.39 MB / 302.1 MB Notification: Performance of pre-optimization done (n=7): time 1.472e-06/0.1004, allocations: 0 / 400.6 MB, free: 11.39 MB / 302.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004039/0.1008, allocations: 121.6 kB / 400.7 MB, free: 11.27 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.947e-05/0.1008, allocations: 106.8 kB / 400.8 MB, free: 11.14 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001414/0.101, allocations: 150.4 kB / 401 MB, free: 10.98 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.912e-05/0.101, allocations: 29.7 kB / 401 MB, free: 10.95 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.624e-05/0.1011, allocations: 119.9 kB / 401.1 MB, free: 10.82 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.731e-05/0.1011, allocations: 19.64 kB / 401.1 MB, free: 10.8 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.798e-05/0.1012, allocations: 29.97 kB / 401.2 MB, free: 10.77 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001079/0.1013, allocations: 322.8 kB / 401.5 MB, free: 10.45 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.333e-05/0.1014, allocations: 19.98 kB / 401.5 MB, free: 10.43 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001222/0.1015, allocations: 65.06 kB / 401.6 MB, free: 10.34 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001837/0.1017, allocations: 83.39 kB / 401.7 MB, free: 10.25 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.1017, allocations: 0 / 401.7 MB, free: 10.25 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003886/0.1021, allocations: 138.2 kB / 401.8 MB, free: 10.11 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.92e-05/0.1022, allocations: 8 kB / 401.8 MB, free: 10.1 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.514e-06/0.1022, allocations: 3.984 kB / 401.8 MB, free: 10.09 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002355/0.1024, allocations: 36.78 kB / 401.8 MB, free: 10.05 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001094/0.1025, allocations: 15.98 kB / 401.8 MB, free: 10.04 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001182/0.1037, allocations: 1.363 MB / 403.2 MB, free: 8.543 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001102/0.1038, allocations: 7.969 kB / 403.2 MB, free: 8.535 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.414e-05/0.1039, allocations: 11.92 kB / 403.2 MB, free: 8.523 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 0.0001307/0.104, allocations: 129.9 kB / 403.4 MB, free: 8.387 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.183e-05/0.1041, allocations: 11.91 kB / 403.4 MB, free: 8.375 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.876e-05/0.1041, allocations: 12.25 kB / 403.4 MB, free: 8.359 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.827e-06/0.1041, allocations: 4 kB / 403.4 MB, free: 8.355 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.773e-06/0.1041, allocations: 0 / 403.4 MB, free: 8.355 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.619e-06/0.1041, allocations: 3.938 kB / 403.4 MB, free: 8.352 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002365/0.1044, allocations: 217.5 kB / 403.6 MB, free: 8.09 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.1044, allocations: 0 / 403.6 MB, free: 8.09 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000126/0.1045, allocations: 15.98 kB / 403.6 MB, free: 8.074 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.551e-06/0.1045, allocations: 4 kB / 403.6 MB, free: 8.07 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.341e-05/0.1045, allocations: 11.92 kB / 403.6 MB, free: 8.059 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.344e-06/0.1045, allocations: 0 / 403.6 MB, free: 8.059 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.518e-06/0.1046, allocations: 4 kB / 403.6 MB, free: 8.055 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000368/0.1049, allocations: 221.1 kB / 403.9 MB, free: 7.816 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.176e-05/0.105, allocations: 101 kB / 404 MB, free: 7.699 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.733e-05/0.105, allocations: 0 / 404 MB, free: 7.699 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001134/0.1051, allocations: 4 kB / 404 MB, free: 7.695 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.086e-05/0.1052, allocations: 11.92 kB / 404 MB, free: 7.684 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.582e-06/0.1052, allocations: 3.938 kB / 404 MB, free: 7.68 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.047e-05/0.1053, allocations: 120 kB / 404.1 MB, free: 7.562 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1053, allocations: 0 / 404.1 MB, free: 7.562 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002665/0.1056, allocations: 16 kB / 404.1 MB, free: 7.547 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 0.0001228/0.1057, allocations: 107.2 kB / 404.2 MB, free: 7.43 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004804/0.1062, allocations: 190.5 kB / 404.4 MB, free: 7.23 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.1062, allocations: 0 / 404.4 MB, free: 7.23 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001319/0.1064, allocations: 39.91 kB / 404.4 MB, free: 7.191 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000429/0.1068, allocations: 24.86 kB / 404.5 MB, free: 7.168 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005831/0.1074, allocations: 287.8 kB / 404.7 MB, free: 6.855 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000316/0.1077, allocations: 0.7082 MB / 405.4 MB, free: 6.121 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.577e-05/0.1078, allocations: 12.56 kB / 405.5 MB, free: 6.109 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.751e-05/0.1079, allocations: 15.42 kB / 405.5 MB, free: 6.094 MB / 302.1 MB Notification: Performance of SimCode: time 3.81e-07/0.1079, allocations: 0 / 405.5 MB, free: 6.094 MB / 302.1 MB Notification: Performance of Templates: time 0.003695/0.1116, allocations: 1.166 MB / 406.6 MB, free: 4.934 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/jenkins/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