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.001417/0.001417, allocations: 97.72 kB / 15.36 MB, free: 0.7344 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.01102/0.01102, allocations: 169.9 kB / 16.27 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.592/1.592, allocations: 205.4 MB / 222.4 MB, free: 5.566 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06411/0.06411, allocations: 14.16 MB / 284.9 MB, free: 7.035 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.0005944/0.0005942, allocations: 20 kB / 346.8 MB, free: 19.54 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1048/0.1054, allocations: 51.12 MB / 397.9 MB, free: 380 kB / 286.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDiscontinuousDeadBand): time 0.001097/0.1065, allocations: 414.4 kB / 398.3 MB, free: 15.96 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002348/0.1068, allocations: 55.75 kB / 398.3 MB, free: 15.91 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.506e-05/0.1069, allocations: 0 / 398.3 MB, free: 15.91 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 1.552e-05/0.1069, allocations: 0 / 398.3 MB, free: 15.91 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 9.366e-05/0.107, allocations: 0 / 398.3 MB, free: 15.91 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001818/0.1072, allocations: 23.91 kB / 398.4 MB, free: 15.89 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 8.281e-05/0.1073, allocations: 16 kB / 398.4 MB, free: 15.87 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.66e-05/0.1074, allocations: 11.98 kB / 398.4 MB, free: 15.86 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.088e-05/0.1074, allocations: 11.94 kB / 398.4 MB, free: 15.85 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.142e-05/0.1075, allocations: 7.984 kB / 398.4 MB, free: 15.84 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.971e-05/0.1075, allocations: 0 / 398.4 MB, free: 15.84 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.254e-06/0.1075, allocations: 0 / 398.4 MB, free: 15.84 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.984e-05/0.1076, allocations: 8 kB / 398.4 MB, free: 15.83 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.457e-05/0.1076, allocations: 29.64 kB / 398.4 MB, free: 15.8 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 6.864e-05/0.1077, allocations: 27.83 kB / 398.5 MB, free: 15.77 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.1077, allocations: 0 / 398.5 MB, free: 15.77 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.1077, allocations: 0 / 398.5 MB, free: 15.77 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.228e-06/0.1077, allocations: 4 kB / 398.5 MB, free: 15.77 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.0004759/0.1082, allocations: 335.7 kB / 398.8 MB, free: 15.39 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.86e-05/0.1082, allocations: 12.03 kB / 398.8 MB, free: 15.38 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.006e-05/0.1083, allocations: 4.938 kB / 398.8 MB, free: 15.37 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001825/0.1085, allocations: 164.4 kB / 399 MB, free: 15.17 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.49e-05/0.1085, allocations: 384 / 399 MB, free: 15.17 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.265e-05/0.1085, allocations: 4.375 kB / 399 MB, free: 15.17 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002174/0.1087, allocations: 84.73 kB / 399.1 MB, free: 15.07 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.939e-06/0.1088, allocations: 192 / 399.1 MB, free: 15.07 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.562e-05/0.1088, allocations: 11.88 kB / 399.1 MB, free: 15.06 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.548e-06/0.1088, allocations: 0 / 399.1 MB, free: 15.06 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001847/0.109, allocations: 43.97 kB / 399.1 MB, free: 15.02 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004087/0.1094, allocations: 273.8 kB / 399.4 MB, free: 14.7 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002019/0.1096, allocations: 85.05 kB / 399.5 MB, free: 14.59 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001114/0.1097, allocations: 37.77 kB / 399.5 MB, free: 14.55 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.036e-05/0.1098, allocations: 0 / 399.5 MB, free: 14.55 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.56e-05/0.1098, allocations: 30.56 kB / 399.5 MB, free: 14.51 MB / 302.1 MB Notification: Performance of pre-optimization done (n=3): time 9.62e-07/0.1098, allocations: 3.938 kB / 399.5 MB, free: 14.51 MB / 302.1 MB Notification: Performance of matching and sorting (n=3): time 0.0004253/0.1102, allocations: 109.5 kB / 399.6 MB, free: 14.39 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.508e-05/0.1103, allocations: 106.8 kB / 399.8 MB, free: 14.27 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001234/0.1104, allocations: 97.84 kB / 399.8 MB, free: 14.16 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.955e-05/0.1105, allocations: 29.7 kB / 399.9 MB, free: 14.12 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.378e-05/0.1105, allocations: 80.14 kB / 400 MB, free: 14.04 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.835e-05/0.1105, allocations: 12.09 kB / 400 MB, free: 14.03 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.649e-05/0.1106, allocations: 13.72 kB / 400 MB, free: 14.01 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001256/0.1107, allocations: 314.8 kB / 400.3 MB, free: 13.7 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.398e-05/0.1108, allocations: 19.97 kB / 400.3 MB, free: 13.68 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001012/0.1109, allocations: 42.56 kB / 400.3 MB, free: 13.62 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001998/0.1111, allocations: 53.69 kB / 400.4 MB, free: 13.57 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.794e-06/0.1111, allocations: 0 / 400.4 MB, free: 13.57 MB / 302.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002284/0.1114, allocations: 85.56 kB / 400.5 MB, free: 13.48 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.202e-05/0.1115, allocations: 101.9 kB / 400.6 MB, free: 13.37 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.24e-06/0.1115, allocations: 4.062 kB / 400.6 MB, free: 13.36 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.384e-05/0.1115, allocations: 0 / 400.6 MB, free: 13.36 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001023/0.1116, allocations: 15.98 kB / 400.6 MB, free: 13.35 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.27e-06/0.1116, allocations: 0 / 400.6 MB, free: 13.35 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.557e-05/0.1117, allocations: 11.98 kB / 400.6 MB, free: 13.34 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.991e-06/0.1117, allocations: 0 / 400.6 MB, free: 13.34 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.736e-06/0.1117, allocations: 4 kB / 400.6 MB, free: 13.33 MB / 302.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0001013/0.1118, allocations: 31.86 kB / 400.7 MB, free: 13.3 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.994e-06/0.1118, allocations: 0 / 400.7 MB, free: 13.3 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.979e-06/0.1118, allocations: 4 kB / 400.7 MB, free: 13.3 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.511e-05/0.1119, allocations: 4 kB / 400.7 MB, free: 13.29 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.533e-06/0.1119, allocations: 0 / 400.7 MB, free: 13.29 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.499e-05/0.1119, allocations: 4 kB / 400.7 MB, free: 13.29 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.695e-06/0.112, allocations: 0 / 400.7 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 0.0001137/0.1121, allocations: 205 kB / 400.9 MB, free: 13.08 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.897e-05/0.1121, allocations: 11.91 kB / 400.9 MB, free: 13.07 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.651e-05/0.1121, allocations: 7.125 kB / 400.9 MB, free: 13.06 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.785e-06/0.1122, allocations: 3.938 kB / 400.9 MB, free: 13.05 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.1122, allocations: 0 / 400.9 MB, free: 13.05 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.526e-06/0.1122, allocations: 0 / 400.9 MB, free: 13.05 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001868/0.1124, allocations: 169.6 kB / 401.1 MB, free: 12.84 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.1124, allocations: 4 kB / 401.1 MB, free: 12.84 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.589e-05/0.1124, allocations: 15.94 kB / 401.1 MB, free: 12.82 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.835e-06/0.1125, allocations: 0 / 401.1 MB, free: 12.82 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.474e-06/0.1125, allocations: 0 / 401.1 MB, free: 12.82 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.1125, allocations: 8 kB / 401.1 MB, free: 12.81 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.1125, allocations: 3.984 kB / 401.1 MB, free: 12.81 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002873/0.1128, allocations: 180.3 kB / 401.3 MB, free: 12.61 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.127e-05/0.1128, allocations: 85.05 kB / 401.3 MB, free: 12.51 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.335e-05/0.1129, allocations: 0 / 401.3 MB, free: 12.51 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.75e-05/0.113, allocations: 11.98 kB / 401.4 MB, free: 12.5 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.807e-05/0.113, allocations: 0 / 401.4 MB, free: 12.5 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.437e-06/0.113, allocations: 4 kB / 401.4 MB, free: 12.5 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.851e-05/0.1131, allocations: 83.61 kB / 401.4 MB, free: 12.41 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1131, allocations: 0 / 401.4 MB, free: 12.41 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002798/0.1133, allocations: 8 kB / 401.4 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 0.0001124/0.1135, allocations: 103.2 kB / 401.5 MB, free: 12.3 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002993/0.1138, allocations: 64.22 kB / 401.6 MB, free: 12.23 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.1138, allocations: 4.062 kB / 401.6 MB, free: 12.23 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.878e-05/0.1139, allocations: 23.98 kB / 401.6 MB, free: 12.21 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002281/0.1141, allocations: 11.73 kB / 401.6 MB, free: 12.2 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000357/0.1145, allocations: 135.5 kB / 401.8 MB, free: 12.04 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002432/0.1147, allocations: 0.6809 MB / 402.5 MB, free: 11.33 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.665e-05/0.1148, allocations: 0 / 402.5 MB, free: 11.33 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001512/0.115, allocations: 7.438 kB / 402.5 MB, free: 11.32 MB / 302.1 MB Notification: Performance of SimCode: time 2.705e-06/0.115, allocations: 8 kB / 402.5 MB, free: 11.31 MB / 302.1 MB Notification: Performance of Templates: time 0.00286/0.1178, allocations: 0.5106 MB / 403 MB, free: 10.8 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