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.0008008/0.0008009, allocations: 91.77 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008775/0.0008776, allocations: 176.2 kB / 16.92 MB, free: 6.652 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.406/1.406, allocations: 205.4 MB / 223.1 MB, free: 5.465 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06137/0.06137, allocations: 14.17 MB / 285.6 MB, free: 7.027 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.0004716/0.0004716, allocations: 20.56 kB / 347.4 MB, free: 19.55 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07774/0.07822, allocations: 51.12 MB / 398.5 MB, free: 392 kB / 286.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDiscontinuousDeadBand): time 0.0008043/0.07906, allocations: 419.1 kB / 398.9 MB, free: 15.97 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001731/0.07925, allocations: 51.81 kB / 399 MB, free: 15.92 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.88e-05/0.07929, allocations: 7.938 kB / 399 MB, free: 15.91 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 1.289e-05/0.07931, allocations: 0 / 399 MB, free: 15.91 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 6.984e-05/0.07939, allocations: 3.984 kB / 399 MB, free: 15.91 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001209/0.07952, allocations: 12 kB / 399 MB, free: 15.9 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 7.368e-05/0.07961, allocations: 27.92 kB / 399 MB, free: 15.87 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.636e-05/0.07969, allocations: 4 kB / 399 MB, free: 15.87 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.84e-05/0.07973, allocations: 15.92 kB / 399.1 MB, free: 15.85 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.472e-05/0.07978, allocations: 3.984 kB / 399.1 MB, free: 15.85 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.736e-05/0.0798, allocations: 4 kB / 399.1 MB, free: 15.84 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.723e-06/0.07981, allocations: 0 / 399.1 MB, free: 15.84 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.67e-05/0.07983, allocations: 7.984 kB / 399.1 MB, free: 15.84 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.159e-05/0.07987, allocations: 29.64 kB / 399.1 MB, free: 15.8 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 4.418e-05/0.07992, allocations: 11.98 kB / 399.1 MB, free: 15.79 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.996e-06/0.07993, allocations: 0 / 399.1 MB, free: 15.79 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.07994, allocations: 4 kB / 399.1 MB, free: 15.79 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.976e-06/0.07995, allocations: 4 kB / 399.1 MB, free: 15.78 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0003691/0.08032, allocations: 331.7 kB / 399.5 MB, free: 15.41 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.281e-05/0.08036, allocations: 8.031 kB / 399.5 MB, free: 15.4 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.016e-05/0.0804, allocations: 4.938 kB / 399.5 MB, free: 15.39 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001357/0.08054, allocations: 176.2 kB / 399.6 MB, free: 15.18 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.947e-05/0.08057, allocations: 4.375 kB / 399.6 MB, free: 15.18 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.516e-06/0.08058, allocations: 384 / 399.6 MB, free: 15.18 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001861/0.08077, allocations: 84.8 kB / 399.7 MB, free: 15.08 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.733e-06/0.08079, allocations: 192 / 399.7 MB, free: 15.08 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.13e-05/0.08081, allocations: 3.938 kB / 399.7 MB, free: 15.08 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.947e-06/0.08082, allocations: 0 / 399.7 MB, free: 15.08 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001833/0.08101, allocations: 55.83 kB / 399.8 MB, free: 15.02 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003548/0.08137, allocations: 265.9 kB / 400 MB, free: 14.71 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000198/0.08158, allocations: 85.06 kB / 400.1 MB, free: 14.61 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001047/0.0817, allocations: 37.77 kB / 400.2 MB, free: 14.57 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.426e-05/0.08172, allocations: 0 / 400.2 MB, free: 14.57 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.617e-05/0.08175, allocations: 38.55 kB / 400.2 MB, free: 14.52 MB / 302.1 MB Notification: Performance of pre-optimization done (n=3): time 9.21e-07/0.08176, allocations: 0 / 400.2 MB, free: 14.52 MB / 302.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003829/0.08215, allocations: 105.5 kB / 400.3 MB, free: 14.41 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.979e-05/0.08222, allocations: 106.8 kB / 400.4 MB, free: 14.28 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.98e-05/0.08229, allocations: 97.84 kB / 400.5 MB, free: 14.18 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.3e-05/0.08231, allocations: 25.7 kB / 400.5 MB, free: 14.14 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.785e-05/0.08236, allocations: 84.39 kB / 400.6 MB, free: 14.06 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.538e-05/0.08238, allocations: 11.91 kB / 400.6 MB, free: 14.05 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.346e-05/0.08241, allocations: 13.7 kB / 400.6 MB, free: 14.03 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001046/0.08252, allocations: 314.8 kB / 400.9 MB, free: 13.71 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.015e-05/0.08261, allocations: 19.98 kB / 401 MB, free: 13.69 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.933e-05/0.08272, allocations: 46.5 kB / 401 MB, free: 13.64 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001706/0.0829, allocations: 53.67 kB / 401.1 MB, free: 13.58 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.08291, allocations: 4.031 kB / 401.1 MB, free: 13.57 MB / 302.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002265/0.08314, allocations: 81.55 kB / 401.1 MB, free: 13.49 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.14e-05/0.08321, allocations: 105.9 kB / 401.2 MB, free: 13.38 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.827e-06/0.08322, allocations: 0 / 401.2 MB, free: 13.38 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.089e-05/0.08323, allocations: 4 kB / 401.3 MB, free: 13.37 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.688e-05/0.08332, allocations: 8 kB / 401.3 MB, free: 13.36 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.147e-06/0.08333, allocations: 0 / 401.3 MB, free: 13.36 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.93e-05/0.0834, allocations: 11.98 kB / 401.3 MB, free: 13.35 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.123e-06/0.08341, allocations: 0 / 401.3 MB, free: 13.35 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.71e-06/0.08343, allocations: 7.938 kB / 401.3 MB, free: 13.34 MB / 302.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 9.701e-05/0.08353, allocations: 35.86 kB / 401.3 MB, free: 13.31 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.263e-06/0.08354, allocations: 0 / 401.3 MB, free: 13.31 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.413e-06/0.08355, allocations: 0 / 401.3 MB, free: 13.31 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.164e-05/0.08359, allocations: 4 kB / 401.3 MB, free: 13.3 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.356e-06/0.0836, allocations: 3.984 kB / 401.3 MB, free: 13.3 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.372e-05/0.08364, allocations: 4 kB / 401.3 MB, free: 13.3 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.4e-06/0.08365, allocations: 4 kB / 401.3 MB, free: 13.29 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 8.757e-05/0.08375, allocations: 197.1 kB / 401.5 MB, free: 13.09 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.877e-05/0.08378, allocations: 11.84 kB / 401.5 MB, free: 13.08 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.77e-05/0.0838, allocations: 3.125 kB / 401.5 MB, free: 13.07 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.793e-06/0.08381, allocations: 0 / 401.5 MB, free: 13.07 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.357e-06/0.08382, allocations: 0 / 401.5 MB, free: 13.07 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.438e-05/0.08384, allocations: 11.98 kB / 401.5 MB, free: 13.06 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001532/0.08399, allocations: 161.6 kB / 401.7 MB, free: 12.86 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.08401, allocations: 3.938 kB / 401.7 MB, free: 12.85 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.36e-05/0.08407, allocations: 15.92 kB / 401.7 MB, free: 12.84 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.08409, allocations: 4 kB / 401.7 MB, free: 12.83 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.152e-06/0.08411, allocations: 4 kB / 401.7 MB, free: 12.83 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.203e-06/0.08411, allocations: 0 / 401.7 MB, free: 12.83 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.08412, allocations: 0 / 401.7 MB, free: 12.83 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002443/0.08437, allocations: 180.7 kB / 401.9 MB, free: 12.63 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.253e-05/0.08442, allocations: 85.08 kB / 402 MB, free: 12.53 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.184e-05/0.08444, allocations: 0 / 402 MB, free: 12.53 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.576e-05/0.08453, allocations: 11.98 kB / 402 MB, free: 12.52 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.506e-05/0.08457, allocations: 11.92 kB / 402 MB, free: 12.51 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.675e-06/0.08458, allocations: 0 / 402 MB, free: 12.51 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.756e-05/0.08462, allocations: 83.28 kB / 402.1 MB, free: 12.43 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.08463, allocations: 4 kB / 402.1 MB, free: 12.42 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002748/0.08491, allocations: 8 kB / 402.1 MB, free: 12.41 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 8.447e-05/0.085, allocations: 95.19 kB / 402.2 MB, free: 12.31 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002905/0.08529, allocations: 68.02 kB / 402.3 MB, free: 12.25 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.08531, allocations: 0 / 402.3 MB, free: 12.25 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.527e-05/0.08541, allocations: 23.98 kB / 402.3 MB, free: 12.22 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002221/0.08564, allocations: 7.938 kB / 402.3 MB, free: 12.21 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003287/0.08597, allocations: 165.4 kB / 402.5 MB, free: 12.02 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002238/0.08621, allocations: 0.6731 MB / 403.1 MB, free: 11.32 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.049e-05/0.08625, allocations: 11.44 kB / 403.1 MB, free: 11.3 MB / 302.1 MB Notification: Performance of SimCode: time 4.31e-07/0.08625, allocations: 3.938 kB / 403.1 MB, free: 11.3 MB / 302.1 MB Notification: Performance of Templates: time 0.001724/0.08798, allocations: 0.6081 MB / 403.8 MB, free: 10.69 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/jenkins1/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