Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_symb_jac_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_symb_jac_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_symb_jac_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.001283/0.001283, allocations: 101 kB / 15.99 MB, free: 6.363 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.001263/0.001263, allocations: 198.4 kB / 16.92 MB, free: 6.199 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.594/1.594, allocations: 205.1 MB / 222.8 MB, free: 4.703 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06417/0.06417, allocations: 14.15 MB / 284.3 MB, free: 7.262 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.001316/0.001316, allocations: 76.11 kB / 345.2 MB, free: 19.73 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08127/0.0826, allocations: 50.13 MB / 395.4 MB, free: 1.562 MB / 286.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDiscontinuousDeadBand): time 0.001945/0.08458, allocations: 0.7403 MB / 396.1 MB, free: 0.8164 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002254/0.08483, allocations: 59.8 kB / 396.2 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.285e-05/0.08487, allocations: 0 / 396.2 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 3.763e-05/0.08493, allocations: 3.984 kB / 396.2 MB, free: 0.7539 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 9.58e-05/0.08503, allocations: 3.938 kB / 396.2 MB, free: 0.75 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001433/0.08518, allocations: 16 kB / 396.2 MB, free: 0.7344 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 8.204e-05/0.08527, allocations: 23.98 kB / 396.2 MB, free: 0.7109 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001016/0.08538, allocations: 11.97 kB / 396.2 MB, free: 0.6992 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.126e-05/0.08541, allocations: 23.8 kB / 396.2 MB, free: 0.6758 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.016e-05/0.08547, allocations: 7.984 kB / 396.3 MB, free: 0.668 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.69e-05/0.08549, allocations: 0 / 396.3 MB, free: 0.668 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.418e-06/0.08551, allocations: 4 kB / 396.3 MB, free: 0.6641 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 1.776e-05/0.08553, allocations: 7.938 kB / 396.3 MB, free: 0.6562 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 2.31e-05/0.08556, allocations: 4 kB / 396.3 MB, free: 0.6523 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 6.951e-05/0.08563, allocations: 19.91 kB / 396.3 MB, free: 0.6328 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/0.08564, allocations: 4 kB / 396.3 MB, free: 0.6289 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.512e-06/0.08565, allocations: 0 / 396.3 MB, free: 0.6289 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.43e-06/0.08566, allocations: 4 kB / 396.3 MB, free: 0.625 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.0003928/0.08606, allocations: 339.7 kB / 396.6 MB, free: 248 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.201e-05/0.0861, allocations: 8.031 kB / 396.6 MB, free: 240 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.823e-05/0.08613, allocations: 0.9375 kB / 396.6 MB, free: 240 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001481/0.08628, allocations: 172.4 kB / 396.8 MB, free: 28 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.18e-05/0.0863, allocations: 384 / 396.8 MB, free: 28 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.213e-05/0.08632, allocations: 4.375 kB / 396.8 MB, free: 24 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002007/0.08653, allocations: 76.8 kB / 396.9 MB, free: 15.93 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.258e-06/0.08655, allocations: 4.125 kB / 396.9 MB, free: 15.93 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.11e-05/0.08656, allocations: 3.938 kB / 396.9 MB, free: 15.93 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.235e-06/0.08658, allocations: 0 / 396.9 MB, free: 15.93 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001647/0.08674, allocations: 31.97 kB / 396.9 MB, free: 15.89 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003371/0.08709, allocations: 269.8 kB / 397.2 MB, free: 15.58 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001639/0.08726, allocations: 65.12 kB / 397.2 MB, free: 15.5 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.37e-05/0.08737, allocations: 37.75 kB / 397.3 MB, free: 15.45 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.289e-05/0.0874, allocations: 4 kB / 397.3 MB, free: 15.45 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.106e-05/0.08743, allocations: 42.44 kB / 397.3 MB, free: 15.4 MB / 302.1 MB Notification: Performance of pre-optimization done (n=3): time 1.062e-06/0.08744, allocations: 0 / 397.3 MB, free: 15.4 MB / 302.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003263/0.08777, allocations: 93.67 kB / 397.4 MB, free: 15.3 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.807e-05/0.08784, allocations: 102.8 kB / 397.5 MB, free: 15.18 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.181e-05/0.08791, allocations: 101.9 kB / 397.6 MB, free: 15.07 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.502e-05/0.08793, allocations: 25.7 kB / 397.6 MB, free: 15.04 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.328e-05/0.08798, allocations: 84.12 kB / 397.7 MB, free: 14.95 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.838e-05/0.088, allocations: 7.906 kB / 397.7 MB, free: 14.94 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.117e-05/0.08804, allocations: 13.72 kB / 397.7 MB, free: 14.92 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.765e-05/0.08814, allocations: 314.9 kB / 398.1 MB, free: 14.61 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.432e-05/0.08823, allocations: 24.84 kB / 398.1 MB, free: 14.58 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.43e-05/0.08832, allocations: 38.55 kB / 398.1 MB, free: 14.53 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001584/0.08849, allocations: 49.66 kB / 398.2 MB, free: 14.48 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.0885, allocations: 0 / 398.2 MB, free: 14.48 MB / 302.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001892/0.08869, allocations: 77.59 kB / 398.2 MB, free: 14.39 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.16e-05/0.08871, allocations: 4 kB / 398.2 MB, free: 14.39 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.138e-06/0.08872, allocations: 4 kB / 398.3 MB, free: 14.39 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.859e-06/0.08874, allocations: 3.938 kB / 398.3 MB, free: 14.38 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.682e-05/0.08883, allocations: 23.98 kB / 398.3 MB, free: 14.36 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.278e-06/0.08884, allocations: 0 / 398.3 MB, free: 14.36 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.865e-05/0.0889, allocations: 4 kB / 398.3 MB, free: 14.36 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.754e-06/0.08891, allocations: 4 kB / 398.3 MB, free: 14.35 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 8.143e-05/0.089, allocations: 88.12 kB / 398.4 MB, free: 14.26 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 5.342e-05/0.08906, allocations: 26.84 kB / 398.4 MB, free: 14.23 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 7.122e-05/0.08914, allocations: 29.75 kB / 398.4 MB, free: 14.19 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.51e-07/0.08914, allocations: 0 / 398.4 MB, free: 14.19 MB / 302.1 MB Notification: Performance of matching and sorting (n=3) (initialization_lambda0): time 0.0001158/0.08927, allocations: 65.45 kB / 398.5 MB, free: 14.12 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.102e-06/0.08928, allocations: 4 kB / 398.5 MB, free: 14.12 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.525e-06/0.08929, allocations: 4 kB / 398.5 MB, free: 14.11 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.502e-06/0.08929, allocations: 0 / 398.5 MB, free: 14.11 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.303e-05/0.08933, allocations: 4.094 kB / 398.5 MB, free: 14.11 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.553e-06/0.08934, allocations: 4.062 kB / 398.5 MB, free: 14.11 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.721e-05/0.08938, allocations: 4 kB / 398.5 MB, free: 14.1 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.977e-06/0.08939, allocations: 3.984 kB / 398.5 MB, free: 14.1 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.681e-05/0.08948, allocations: 201.1 kB / 398.7 MB, free: 13.89 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.443e-05/0.08951, allocations: 0 / 398.7 MB, free: 13.89 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.226e-05/0.08954, allocations: 15.06 kB / 398.7 MB, free: 13.88 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.914e-06/0.08955, allocations: 0 / 398.7 MB, free: 13.88 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.08955, allocations: 0 / 398.7 MB, free: 13.88 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.385e-06/0.08956, allocations: 0 / 398.7 MB, free: 13.88 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001606/0.08973, allocations: 169.6 kB / 398.9 MB, free: 13.66 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.08974, allocations: 0 / 398.9 MB, free: 13.66 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.52e-05/0.0898, allocations: 8 kB / 398.9 MB, free: 13.66 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.0898, allocations: 0 / 398.9 MB, free: 13.66 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.522e-06/0.08982, allocations: 0 / 398.9 MB, free: 13.66 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.243e-06/0.08982, allocations: 0 / 398.9 MB, free: 13.66 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.876e-06/0.08983, allocations: 4 kB / 398.9 MB, free: 13.65 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006256/0.09046, allocations: 0.9617 MB / 399.9 MB, free: 12.62 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.062e-05/0.09051, allocations: 85.09 kB / 399.9 MB, free: 12.52 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.432e-05/0.09053, allocations: 0 / 399.9 MB, free: 12.52 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.207e-05/0.09062, allocations: 15.94 kB / 400 MB, free: 12.51 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.984e-05/0.09066, allocations: 7.984 kB / 400 MB, free: 12.5 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.348e-06/0.09067, allocations: 4 kB / 400 MB, free: 12.5 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.272e-05/0.09071, allocations: 79.28 kB / 400.1 MB, free: 12.42 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.412e-06/0.09072, allocations: 0 / 400.1 MB, free: 12.42 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005024/0.09123, allocations: 11.94 kB / 400.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 9.5e-05/0.09133, allocations: 99.19 kB / 400.2 MB, free: 12.3 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002487/0.09158, allocations: 59.88 kB / 400.2 MB, free: 12.24 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.09159, allocations: 0 / 400.2 MB, free: 12.24 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.411e-05/0.09168, allocations: 27.92 kB / 400.2 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.0002117/0.0919, allocations: 3.516 kB / 400.3 MB, free: 12.21 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003591/0.09227, allocations: 228.9 kB / 400.5 MB, free: 11.95 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002239/0.09251, allocations: 0.6768 MB / 401.2 MB, free: 11.25 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.439e-05/0.09256, allocations: 11.98 kB / 401.2 MB, free: 11.23 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.437e-05/0.09259, allocations: 7.438 kB / 401.2 MB, free: 11.23 MB / 302.1 MB Notification: Performance of SimCode: time 2.41e-07/0.09259, allocations: 0 / 401.2 MB, free: 11.23 MB / 302.1 MB Notification: Performance of Templates: time 0.00258/0.09518, allocations: 0.5459 MB / 401.7 MB, free: 10.68 MB / 302.1 MB make -j1 -f PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDiscontinuousDeadBand.makefile (rm -f PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDiscontinuousDeadBand.pipe ; mkfifo PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDiscontinuousDeadBand.pipe ; head -c 1048576 < PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDiscontinuousDeadBand.pipe >> ../files/PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDiscontinuousDeadBand.sim & ./PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDiscontinuousDeadBand -abortSlowSimulation -alarm=50 -emit_protected -lv LOG_STATS > PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDiscontinuousDeadBand.pipe 2>&1) diffSimulationResults("PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDiscontinuousDeadBand_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Controls.Test.TestDiscontinuousDeadBand_res.mat","../files/PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDiscontinuousDeadBand.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches