Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_PowerGrids.Controls.Test.TestDiscontinuousDeadBand.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.TestDiscontinuousDeadBand,tolerance=1e-06,outputFormat="mat",numberOfIntervals=160,variableFilter="discontinuousDeadBand.smoothed|discontinuousDeadBand.u|discontinuousDeadBand.uMax|discontinuousDeadBand.uMin|discontinuousDeadBand.y|discontinuousDeadBandAnalyticSolution.y|inputSignal.y|time",fileNamePrefix="PowerGrids_PowerGrids.Controls.Test.TestDiscontinuousDeadBand") translateModel(PowerGrids.Controls.Test.TestDiscontinuousDeadBand,tolerance=1e-06,outputFormat="mat",numberOfIntervals=160,variableFilter="discontinuousDeadBand.smoothed|discontinuousDeadBand.u|discontinuousDeadBand.uMax|discontinuousDeadBand.uMin|discontinuousDeadBand.y|discontinuousDeadBandAnalyticSolution.y|inputSignal.y|time",fileNamePrefix="PowerGrids_PowerGrids.Controls.Test.TestDiscontinuousDeadBand") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001541/0.001541, allocations: 111.3 kB / 15.23 MB, free: 0.6367 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.001786/0.001786, allocations: 200.2 kB / 16.14 MB, free: 6.801 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.522/1.522, allocations: 205.1 MB / 222 MB, free: 4.762 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06652/0.06652, allocations: 14.15 MB / 283.5 MB, free: 7.305 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.00143/0.00143, allocations: 67.89 kB / 344.4 MB, free: 19.85 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09015/0.09159, allocations: 50.14 MB / 394.5 MB, free: 1.672 MB / 286.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDiscontinuousDeadBand): time 0.00197/0.09361, allocations: 0.7391 MB / 395.3 MB, free: 0.9297 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001909/0.09382, allocations: 55.8 kB / 395.3 MB, free: 0.875 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.919e-05/0.09387, allocations: 4 kB / 395.3 MB, free: 0.8711 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 3.128e-05/0.09393, allocations: 0 / 395.3 MB, free: 0.8711 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 7.34e-05/0.09401, allocations: 7.938 kB / 395.3 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001354/0.09415, allocations: 11.98 kB / 395.3 MB, free: 0.8516 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 7.689e-05/0.09423, allocations: 27.92 kB / 395.4 MB, free: 0.8242 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.057e-05/0.09432, allocations: 11.98 kB / 395.4 MB, free: 0.8125 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.595e-05/0.09435, allocations: 11.92 kB / 395.4 MB, free: 0.8008 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.76e-05/0.09441, allocations: 4 kB / 395.4 MB, free: 0.7969 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.893e-05/0.09443, allocations: 4 kB / 395.4 MB, free: 0.793 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.608e-06/0.09445, allocations: 4 kB / 395.4 MB, free: 0.7891 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.025e-05/0.09447, allocations: 7.984 kB / 395.4 MB, free: 0.7812 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 2.227e-05/0.0945, allocations: 7.938 kB / 395.4 MB, free: 0.7734 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 6.536e-05/0.09457, allocations: 11.92 kB / 395.4 MB, free: 0.7617 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.156e-06/0.09458, allocations: 4 kB / 395.4 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of FrontEnd: time 6.61e-07/0.09458, allocations: 0 / 395.4 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.066e-06/0.09459, allocations: 3.938 kB / 395.4 MB, free: 0.7539 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0003995/0.095, allocations: 343.7 kB / 395.8 MB, free: 376 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.371e-05/0.09504, allocations: 8.031 kB / 395.8 MB, free: 368 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.574e-05/0.09508, allocations: 8.938 kB / 395.8 MB, free: 360 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001649/0.09525, allocations: 168.4 kB / 396 MB, free: 152 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.046e-05/0.09527, allocations: 384 / 396 MB, free: 152 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.338e-06/0.09529, allocations: 4.375 kB / 396 MB, free: 148 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001914/0.09549, allocations: 76.75 kB / 396 MB, free: 56 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.483e-06/0.09551, allocations: 192 / 396 MB, free: 56 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.339e-05/0.09553, allocations: 3.938 kB / 396 MB, free: 52 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.628e-06/0.09554, allocations: 4 kB / 396 MB, free: 48 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000167/0.09571, allocations: 39.94 kB / 396.1 MB, free: 8 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003925/0.09611, allocations: 261.8 kB / 396.3 MB, free: 15.7 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001888/0.09631, allocations: 73.12 kB / 396.4 MB, free: 15.61 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001012/0.09643, allocations: 33.7 kB / 396.4 MB, free: 15.57 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.66e-05/0.09646, allocations: 4 kB / 396.4 MB, free: 15.57 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.942e-05/0.0965, allocations: 38.55 kB / 396.5 MB, free: 15.52 MB / 302.1 MB Notification: Performance of pre-optimization done (n=3): time 1.463e-06/0.0965, allocations: 3.938 kB / 396.5 MB, free: 15.52 MB / 302.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003884/0.0969, allocations: 89.5 kB / 396.6 MB, free: 15.42 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.912e-05/0.09699, allocations: 106.8 kB / 396.7 MB, free: 15.29 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000114/0.09711, allocations: 97.86 kB / 396.8 MB, free: 15.19 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.861e-05/0.09714, allocations: 29.95 kB / 396.8 MB, free: 15.15 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.219e-05/0.09719, allocations: 84.14 kB / 396.9 MB, free: 15.07 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.798e-05/0.09721, allocations: 3.906 kB / 396.9 MB, free: 15.06 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.757e-05/0.09726, allocations: 21.7 kB / 396.9 MB, free: 15.04 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001203/0.09738, allocations: 310.8 kB / 397.2 MB, free: 14.72 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001261/0.09751, allocations: 24.84 kB / 397.2 MB, free: 14.7 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.51e-05/0.09762, allocations: 38.55 kB / 397.3 MB, free: 14.65 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001567/0.09779, allocations: 49.62 kB / 397.3 MB, free: 14.59 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.0978, allocations: 0 / 397.3 MB, free: 14.59 MB / 302.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002055/0.09801, allocations: 73.64 kB / 397.4 MB, free: 14.52 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.916e-05/0.09805, allocations: 15.92 kB / 397.4 MB, free: 14.5 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.799e-06/0.09806, allocations: 0 / 397.4 MB, free: 14.5 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.291e-05/0.09808, allocations: 0 / 397.4 MB, free: 14.5 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001044/0.09819, allocations: 8 kB / 397.4 MB, free: 14.49 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.222e-06/0.0982, allocations: 0 / 397.4 MB, free: 14.49 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.348e-05/0.09826, allocations: 7.984 kB / 397.4 MB, free: 14.48 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.115e-05/0.09828, allocations: 7.984 kB / 397.4 MB, free: 14.48 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 8.117e-05/0.09837, allocations: 96.19 kB / 397.5 MB, free: 14.38 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 4.792e-05/0.09842, allocations: 18.58 kB / 397.5 MB, free: 14.35 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 8.08e-05/0.09851, allocations: 33.7 kB / 397.6 MB, free: 14.31 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.41e-07/0.09852, allocations: 3.938 kB / 397.6 MB, free: 14.31 MB / 302.1 MB Notification: Performance of matching and sorting (n=3) (initialization_lambda0): time 0.00014/0.09866, allocations: 65.53 kB / 397.6 MB, free: 14.24 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.674e-06/0.09868, allocations: 4 kB / 397.6 MB, free: 14.23 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.925e-06/0.09869, allocations: 4 kB / 397.7 MB, free: 14.23 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.482e-06/0.0987, allocations: 0 / 397.7 MB, free: 14.23 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.641e-05/0.09874, allocations: 7.984 kB / 397.7 MB, free: 14.22 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.206e-06/0.09875, allocations: 0 / 397.7 MB, free: 14.22 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.864e-05/0.09879, allocations: 7.938 kB / 397.7 MB, free: 14.21 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.474e-06/0.0988, allocations: 0 / 397.7 MB, free: 14.21 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (3): * Single equations (assignments): 3 * 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 prepare postOptimizeDAE: time 0.0001243/0.09893, allocations: 197.2 kB / 397.9 MB, free: 14.02 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.569e-05/0.09896, allocations: 4.031 kB / 397.9 MB, free: 14.01 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.281e-05/0.09899, allocations: 11.11 kB / 397.9 MB, free: 14 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-06/0.099, allocations: 3.938 kB / 397.9 MB, free: 14 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.09901, allocations: 0 / 397.9 MB, free: 14 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.014e-06/0.09902, allocations: 0 / 397.9 MB, free: 14 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001709/0.09919, allocations: 161.6 kB / 398 MB, free: 13.79 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.0992, allocations: 0 / 398 MB, free: 13.79 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.997e-05/0.09927, allocations: 15.98 kB / 398.1 MB, free: 13.77 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.523e-06/0.09928, allocations: 0 / 398.1 MB, free: 13.77 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.061e-06/0.09929, allocations: 0 / 398.1 MB, free: 13.77 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.303e-06/0.09929, allocations: 4 kB / 398.1 MB, free: 13.77 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.0993, allocations: 4 kB / 398.1 MB, free: 13.77 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002205/0.09953, allocations: 172.6 kB / 398.2 MB, free: 13.58 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.96e-05/0.09958, allocations: 85.02 kB / 398.3 MB, free: 13.48 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.343e-05/0.0996, allocations: 0 / 398.3 MB, free: 13.48 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.9e-05/0.09968, allocations: 11.98 kB / 398.3 MB, free: 13.46 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.408e-05/0.09973, allocations: 12.02 kB / 398.3 MB, free: 13.45 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.086e-06/0.09974, allocations: 0 / 398.3 MB, free: 13.45 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.65e-05/0.09978, allocations: 83.28 kB / 398.4 MB, free: 13.37 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.09979, allocations: 0 / 398.4 MB, free: 13.37 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002704/0.1001, allocations: 4 kB / 398.4 MB, free: 13.37 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 simulation (3): * Single equations (assignments): 3 * 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.291e-05/0.1002, allocations: 99.19 kB / 398.5 MB, free: 13.26 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002511/0.1004, allocations: 59.89 kB / 398.6 MB, free: 13.2 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.1004, allocations: 0 / 398.6 MB, free: 13.2 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.47e-05/0.1005, allocations: 19.98 kB / 398.6 MB, free: 13.18 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002233/0.1008, allocations: 14.11 kB / 398.6 MB, free: 13.17 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003389/0.1011, allocations: 131.8 kB / 398.7 MB, free: 13.01 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002434/0.1014, allocations: 0.6731 MB / 399.4 MB, free: 12.31 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.022e-05/0.1014, allocations: 7.984 kB / 399.4 MB, free: 12.3 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.564e-05/0.1015, allocations: 11.44 kB / 399.4 MB, free: 12.29 MB / 302.1 MB Notification: Performance of SimCode: time 3.41e-07/0.1015, allocations: 0 / 399.4 MB, free: 12.29 MB / 302.1 MB Notification: Performance of Templates: time 0.002788/0.1043, allocations: 0.5123 MB / 399.9 MB, free: 11.78 MB / 302.1 MB make -j1 -f PowerGrids_PowerGrids.Controls.Test.TestDiscontinuousDeadBand.makefile (rm -f PowerGrids_PowerGrids.Controls.Test.TestDiscontinuousDeadBand.pipe ; mkfifo PowerGrids_PowerGrids.Controls.Test.TestDiscontinuousDeadBand.pipe ; head -c 1048576 < PowerGrids_PowerGrids.Controls.Test.TestDiscontinuousDeadBand.pipe >> ../files/PowerGrids_PowerGrids.Controls.Test.TestDiscontinuousDeadBand.sim & ./PowerGrids_PowerGrids.Controls.Test.TestDiscontinuousDeadBand -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerGrids_PowerGrids.Controls.Test.TestDiscontinuousDeadBand.pipe 2>&1) diffSimulationResults("PowerGrids_PowerGrids.Controls.Test.TestDiscontinuousDeadBand_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Controls.Test.TestDiscontinuousDeadBand_res.mat","../files/PowerGrids_PowerGrids.Controls.Test.TestDiscontinuousDeadBand.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches