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.004121/0.004121, allocations: 96.7 kB / 15.73 MB, free: 6.055 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.00107/0.00107, allocations: 194.4 kB / 16.67 MB, free: 5.977 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.242/1.242, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.1692/0.1692, allocations: 16.78 MB / 307.3 MB, free: 14.7 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001169/0.001169, allocations: 63.12 kB / 428.7 MB, free: 36.13 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08939/0.09058, allocations: 53.57 MB / 482.3 MB, free: 9.098 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLeadLag): time 0.002361/0.09298, allocations: 1.801 MB / 484.1 MB, free: 7.684 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003162/0.09331, allocations: 152.2 kB / 484.2 MB, free: 7.559 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.59e-05/0.09341, allocations: 6.688 kB / 484.2 MB, free: 7.555 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001226/0.09354, allocations: 21.17 kB / 484.2 MB, free: 7.535 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000144/0.0937, allocations: 30.53 kB / 484.3 MB, free: 7.508 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 7.825e-05/0.09378, allocations: 33.47 kB / 484.3 MB, free: 7.48 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001603/0.09395, allocations: 135.7 kB / 484.4 MB, free: 7.395 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001517/0.09411, allocations: 47.33 kB / 484.5 MB, free: 7.363 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.911e-05/0.09418, allocations: 49.72 kB / 484.5 MB, free: 7.332 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001048/0.09429, allocations: 54.64 kB / 484.6 MB, free: 7.289 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.632e-05/0.09432, allocations: 13.56 kB / 484.6 MB, free: 7.285 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.846e-05/0.09434, allocations: 13.62 kB / 484.6 MB, free: 7.281 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.85e-05/0.09438, allocations: 26.66 kB / 484.6 MB, free: 7.258 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.667e-05/0.09443, allocations: 50.67 kB / 484.7 MB, free: 7.219 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001454/0.09458, allocations: 108.2 kB / 484.8 MB, free: 7.137 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.09459, allocations: 5.375 kB / 484.8 MB, free: 7.133 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.022e-06/0.09459, allocations: 0 / 484.8 MB, free: 7.133 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.121e-05/0.09461, allocations: 0 / 484.8 MB, free: 7.133 MB / 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.0004962/0.09511, allocations: 433.4 kB / 485.2 MB, free: 6.699 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.8e-05/0.09516, allocations: 9.625 kB / 485.2 MB, free: 6.699 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.708e-05/0.09521, allocations: 15.72 kB / 485.2 MB, free: 6.691 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002232/0.09544, allocations: 219.3 kB / 485.4 MB, free: 6.457 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.245e-05/0.09546, allocations: 3.125 kB / 485.4 MB, free: 6.457 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.299e-05/0.09549, allocations: 11.25 kB / 485.5 MB, free: 6.453 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002401/0.09574, allocations: 125 kB / 485.6 MB, free: 6.352 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.062e-05/0.09576, allocations: 5.312 kB / 485.6 MB, free: 6.348 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.317e-05/0.09578, allocations: 4 kB / 485.6 MB, free: 6.344 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.009e-06/0.09579, allocations: 2.75 kB / 485.6 MB, free: 6.344 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001776/0.09597, allocations: 56.95 kB / 485.6 MB, free: 6.32 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005145/0.09649, allocations: 449 kB / 486.1 MB, free: 5.883 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003531/0.09685, allocations: 119.5 kB / 486.2 MB, free: 5.781 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001018/0.09697, allocations: 55.08 kB / 486.3 MB, free: 5.734 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.912e-05/0.09699, allocations: 1.344 kB / 486.3 MB, free: 5.734 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.611e-05/0.09701, allocations: 32.34 kB / 486.3 MB, free: 5.695 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.272e-06/0.09702, allocations: 0 / 486.3 MB, free: 5.695 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003668/0.09739, allocations: 127.5 kB / 486.4 MB, free: 5.613 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.289e-05/0.09743, allocations: 113.5 kB / 486.5 MB, free: 5.48 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001079/0.09755, allocations: 153.7 kB / 486.7 MB, free: 5.352 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.146e-05/0.09756, allocations: 26.95 kB / 486.7 MB, free: 5.32 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.561e-05/0.09761, allocations: 113 kB / 486.8 MB, free: 5.211 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.07e-05/0.09764, allocations: 27.53 kB / 486.8 MB, free: 5.188 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.703e-05/0.09768, allocations: 21.19 kB / 486.9 MB, free: 5.168 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.572e-05/0.09773, allocations: 325.3 kB / 487.2 MB, free: 4.844 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.248e-05/0.09782, allocations: 32.83 kB / 487.2 MB, free: 4.824 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.216e-05/0.09792, allocations: 65.97 kB / 487.3 MB, free: 4.758 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001579/0.09808, allocations: 76.77 kB / 487.3 MB, free: 4.699 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.09809, allocations: 2.094 kB / 487.4 MB, free: 4.699 MB / 350.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003222/0.09842, allocations: 143.2 kB / 487.5 MB, free: 4.602 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.553e-05/0.09845, allocations: 13.86 kB / 487.5 MB, free: 4.594 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.448e-06/0.09846, allocations: 4.094 kB / 487.5 MB, free: 4.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001935/0.09865, allocations: 29.53 kB / 487.5 MB, free: 4.574 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.76e-05/0.09876, allocations: 15.27 kB / 487.6 MB, free: 4.57 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008306/0.0996, allocations: 1.46 MB / 489 MB, free: 3.074 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.288e-05/0.09971, allocations: 8.328 kB / 489 MB, free: 3.07 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.085e-05/0.09972, allocations: 6.875 kB / 489 MB, free: 3.066 MB / 350.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 6.804e-05/0.0998, allocations: 123.9 kB / 489.1 MB, free: 2.941 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.467e-05/0.09984, allocations: 18.16 kB / 489.2 MB, free: 2.93 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.475e-05/0.09987, allocations: 22.92 kB / 489.2 MB, free: 2.91 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.534e-06/0.09988, allocations: 1.156 kB / 489.2 MB, free: 2.91 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.863e-06/0.09988, allocations: 1.25 kB / 489.2 MB, free: 2.91 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.887e-06/0.09989, allocations: 1.344 kB / 489.2 MB, free: 2.91 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001597/0.1001, allocations: 208.6 kB / 489.4 MB, free: 2.68 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.824e-06/0.1001, allocations: 1.469 kB / 489.4 MB, free: 2.68 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001123/0.1002, allocations: 20.3 kB / 489.4 MB, free: 2.672 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.525e-06/0.1002, allocations: 1.25 kB / 489.4 MB, free: 2.672 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.939e-06/0.1002, allocations: 9.312 kB / 489.4 MB, free: 2.664 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.013e-06/0.1002, allocations: 1.375 kB / 489.4 MB, free: 2.664 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.1002, allocations: 0 / 489.4 MB, free: 2.664 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002886/0.1005, allocations: 230.5 kB / 489.7 MB, free: 2.469 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.718e-05/0.1005, allocations: 87.75 kB / 489.7 MB, free: 2.367 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.674e-05/0.1006, allocations: 6.75 kB / 489.7 MB, free: 2.363 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001032/0.1007, allocations: 10.17 kB / 489.8 MB, free: 2.355 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.456e-05/0.1007, allocations: 3.812 kB / 489.8 MB, free: 2.355 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.254e-06/0.1007, allocations: 6.578 kB / 489.8 MB, free: 2.352 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.03e-05/0.1008, allocations: 111 kB / 489.9 MB, free: 2.262 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1008, allocations: 1.188 kB / 489.9 MB, free: 2.262 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002497/0.1011, allocations: 24.52 kB / 489.9 MB, free: 2.254 MB / 350.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 7.723e-05/0.1011, allocations: 104 kB / 490 MB, free: 2.156 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004213/0.1016, allocations: 201.6 kB / 490.2 MB, free: 2 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.1016, allocations: 3.938 kB / 490.2 MB, free: 1.996 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.649e-05/0.1017, allocations: 30.8 kB / 490.2 MB, free: 1.984 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000314/0.102, allocations: 35.34 kB / 490.3 MB, free: 1.969 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004587/0.1025, allocations: 262.8 kB / 490.5 MB, free: 1.75 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000128/0.1026, allocations: 0.7053 MB / 491.2 MB, free: 1.039 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.791e-05/0.1027, allocations: 12.86 kB / 491.2 MB, free: 1.027 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.476e-05/0.1027, allocations: 13.03 kB / 491.3 MB, free: 1.023 MB / 350.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1027, allocations: 0 / 491.3 MB, free: 1.023 MB / 350.1 MB Notification: Performance of Templates: time 0.003307/0.106, allocations: 1.272 MB / 492.5 MB, free: 15.8 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=50 -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