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.001366/0.001366, allocations: 119.3 kB / 16.39 MB, free: 5.953 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.001505/0.001505, allocations: 187.7 kB / 17.31 MB, free: 5.586 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.266/1.266, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06182/0.06182, allocations: 14.17 MB / 284.7 MB, free: 13.86 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.001392/0.001392, allocations: 70.06 kB / 397.1 MB, free: 43.84 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06384/0.06525, allocations: 50.14 MB / 447.2 MB, free: 13.7 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDiscontinuousDeadBand): time 0.001801/0.06708, allocations: 0.6669 MB / 447.9 MB, free: 13.04 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.000219/0.06732, allocations: 68 kB / 448 MB, free: 12.97 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.178e-05/0.06736, allocations: 0 / 448 MB, free: 12.97 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.068e-05/0.06739, allocations: 0 / 448 MB, free: 12.97 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.728e-05/0.06748, allocations: 7.938 kB / 448 MB, free: 12.96 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001295/0.06762, allocations: 11.98 kB / 448 MB, free: 12.95 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 7.71e-05/0.0677, allocations: 27.92 kB / 448 MB, free: 12.92 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.326e-05/0.06779, allocations: 0 / 448 MB, free: 12.92 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.457e-05/0.06783, allocations: 15.98 kB / 448 MB, free: 12.91 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.53e-05/0.06788, allocations: 15.92 kB / 448 MB, free: 12.89 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.46e-05/0.0679, allocations: 4 kB / 448.1 MB, free: 12.89 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.893e-06/0.06791, allocations: 0 / 448.1 MB, free: 12.89 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.572e-05/0.06793, allocations: 3.984 kB / 448.1 MB, free: 12.88 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 2.225e-05/0.06796, allocations: 11.94 kB / 448.1 MB, free: 12.87 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 6.831e-05/0.06803, allocations: 23.91 kB / 448.1 MB, free: 12.85 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.06804, allocations: 0 / 448.1 MB, free: 12.85 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.06805, allocations: 0 / 448.1 MB, free: 12.85 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.388e-06/0.06805, allocations: 0 / 448.1 MB, free: 12.85 MB / 334.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.0003599/0.06842, allocations: 335.5 kB / 448.4 MB, free: 12.47 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.316e-05/0.06846, allocations: 12.03 kB / 448.4 MB, free: 12.46 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.932e-05/0.06849, allocations: 0.9375 kB / 448.4 MB, free: 12.46 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000141/0.06864, allocations: 180.2 kB / 448.6 MB, free: 12.24 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.898e-06/0.06866, allocations: 384 / 448.6 MB, free: 12.24 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.246e-06/0.06867, allocations: 4.312 kB / 448.6 MB, free: 12.24 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001756/0.06885, allocations: 72.81 kB / 448.7 MB, free: 12.15 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.556e-05/0.06888, allocations: 192 / 448.7 MB, free: 12.15 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.245e-05/0.0689, allocations: 7.938 kB / 448.7 MB, free: 12.14 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.671e-06/0.06891, allocations: 4 kB / 448.7 MB, free: 12.14 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001649/0.06908, allocations: 39.89 kB / 448.7 MB, free: 12.1 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003279/0.06942, allocations: 269.8 kB / 449 MB, free: 11.79 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001641/0.06959, allocations: 73.06 kB / 449.1 MB, free: 11.7 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.257e-05/0.06969, allocations: 25.77 kB / 449.1 MB, free: 11.66 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.617e-05/0.06972, allocations: 0 / 449.1 MB, free: 11.66 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.347e-05/0.06975, allocations: 42.55 kB / 449.1 MB, free: 11.61 MB / 334.1 MB Notification: Performance of pre-optimization done (n=3): time 8.62e-07/0.06976, allocations: 0 / 449.1 MB, free: 11.61 MB / 334.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003404/0.0701, allocations: 89.59 kB / 449.2 MB, free: 11.52 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.064e-05/0.07016, allocations: 103.1 kB / 449.3 MB, free: 11.39 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.037e-05/0.07024, allocations: 105.8 kB / 449.4 MB, free: 11.28 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.229e-05/0.07026, allocations: 25.7 kB / 449.5 MB, free: 11.25 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.546e-05/0.0703, allocations: 84.14 kB / 449.5 MB, free: 11.16 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.883e-05/0.07032, allocations: 15.75 kB / 449.5 MB, free: 11.15 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.246e-05/0.07036, allocations: 17.7 kB / 449.6 MB, free: 11.12 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.765e-05/0.07047, allocations: 314.8 kB / 449.9 MB, free: 10.81 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.649e-05/0.07056, allocations: 20.84 kB / 449.9 MB, free: 10.79 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.009e-05/0.07065, allocations: 42.67 kB / 449.9 MB, free: 10.73 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001515/0.07081, allocations: 45.69 kB / 450 MB, free: 10.68 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.07082, allocations: 0 / 450 MB, free: 10.68 MB / 334.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002048/0.07104, allocations: 81.58 kB / 450.1 MB, free: 10.6 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.063e-05/0.07106, allocations: 4 kB / 450.1 MB, free: 10.59 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.799e-06/0.07107, allocations: 4.078 kB / 450.1 MB, free: 10.59 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.206e-05/0.07108, allocations: 3.984 kB / 450.1 MB, free: 10.59 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.937e-05/0.07117, allocations: 8 kB / 450.1 MB, free: 10.58 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.739e-06/0.07118, allocations: 0 / 450.1 MB, free: 10.58 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.384e-05/0.07124, allocations: 16.05 kB / 450.1 MB, free: 10.56 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.919e-06/0.07125, allocations: 0 / 450.1 MB, free: 10.56 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 6.967e-05/0.07133, allocations: 88.12 kB / 450.2 MB, free: 10.47 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 4.912e-05/0.07138, allocations: 26.58 kB / 450.2 MB, free: 10.44 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 8.266e-05/0.07147, allocations: 29.64 kB / 450.2 MB, free: 10.4 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.41e-07/0.07148, allocations: 4.031 kB / 450.2 MB, free: 10.4 MB / 334.1 MB Notification: Performance of matching and sorting (n=3) (initialization_lambda0): time 0.0001174/0.07161, allocations: 57.62 kB / 450.3 MB, free: 10.34 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.063e-06/0.07162, allocations: 4 kB / 450.3 MB, free: 10.33 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.142e-06/0.07163, allocations: 0 / 450.3 MB, free: 10.33 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.086e-06/0.07164, allocations: 0 / 450.3 MB, free: 10.33 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.771e-05/0.07168, allocations: 15.92 kB / 450.3 MB, free: 10.32 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.473e-06/0.07169, allocations: 0 / 450.3 MB, free: 10.32 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.762e-05/0.07173, allocations: 7.938 kB / 450.3 MB, free: 10.31 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.334e-06/0.07174, allocations: 0 / 450.3 MB, free: 10.31 MB / 334.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 7.799e-05/0.07182, allocations: 188.2 kB / 450.5 MB, free: 10.12 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.835e-05/0.07186, allocations: 11.91 kB / 450.5 MB, free: 10.11 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.751e-05/0.07188, allocations: 7.078 kB / 450.5 MB, free: 10.1 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.925e-06/0.07189, allocations: 3.984 kB / 450.5 MB, free: 10.09 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.94e-06/0.0719, allocations: 4 kB / 450.5 MB, free: 10.09 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.046e-06/0.0719, allocations: 0 / 450.5 MB, free: 10.09 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000148/0.07205, allocations: 161.5 kB / 450.7 MB, free: 9.883 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.07206, allocations: 0 / 450.7 MB, free: 9.883 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.905e-05/0.07213, allocations: 11.98 kB / 450.7 MB, free: 9.871 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.834e-06/0.07214, allocations: 4 kB / 450.7 MB, free: 9.867 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.465e-06/0.07215, allocations: 8 kB / 450.7 MB, free: 9.859 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.203e-06/0.07216, allocations: 0 / 450.7 MB, free: 9.859 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.07216, allocations: 0 / 450.7 MB, free: 9.859 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002308/0.0724, allocations: 176.2 kB / 450.9 MB, free: 9.668 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.033e-05/0.07244, allocations: 81.11 kB / 451 MB, free: 9.57 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.335e-05/0.07246, allocations: 4 kB / 451 MB, free: 9.566 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.034e-05/0.07254, allocations: 11.98 kB / 451 MB, free: 9.555 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.204e-05/0.07258, allocations: 3.984 kB / 451 MB, free: 9.551 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.699e-06/0.07259, allocations: 4 kB / 451 MB, free: 9.547 MB / 334.1 MB Notification: Performance of sorting global known variables: time 3.204e-05/0.07263, allocations: 79.28 kB / 451.1 MB, free: 9.469 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.07263, allocations: 0 / 451.1 MB, free: 9.469 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002914/0.07293, allocations: 8 kB / 451.1 MB, free: 9.461 MB / 334.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 7.504e-05/0.07301, allocations: 95.25 kB / 451.2 MB, free: 9.355 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002602/0.07328, allocations: 59.89 kB / 451.2 MB, free: 9.297 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.07329, allocations: 0 / 451.2 MB, free: 9.297 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.48e-05/0.07338, allocations: 19.92 kB / 451.2 MB, free: 9.277 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002149/0.0736, allocations: 17.7 kB / 451.3 MB, free: 9.262 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003095/0.07392, allocations: 147.4 kB / 451.4 MB, free: 9.082 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002091/0.07414, allocations: 0.6768 MB / 452.1 MB, free: 8.379 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.729e-05/0.07417, allocations: 11.44 kB / 452.1 MB, free: 8.367 MB / 334.1 MB Notification: Performance of SimCode: time 2.51e-07/0.07418, allocations: 0 / 452.1 MB, free: 8.367 MB / 334.1 MB Notification: Performance of Templates: time 0.0017/0.07588, allocations: 0.6188 MB / 452.7 MB, free: 7.75 MB / 334.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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerGrids_PowerGrids.Controls.Test.TestDiscontinuousDeadBand.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches