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.001701/0.001701, allocations: 114 kB / 16.65 MB, free: 6.812 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.001896/0.001896, allocations: 186 kB / 17.57 MB, free: 5.922 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.299/1.299, allocations: 205.1 MB / 223.4 MB, free: 12.45 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06098/0.06098, allocations: 14.15 MB / 284.9 MB, free: 14.11 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.001379/0.001379, allocations: 75.81 kB / 345.9 MB, free: 1.023 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1955/0.1969, allocations: 50.1 MB / 396 MB, free: 47.88 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDiscontinuousDeadBand): time 0.001866/0.1988, allocations: 0.7566 MB / 396.7 MB, free: 47.38 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001952/0.199, allocations: 53.64 kB / 396.8 MB, free: 47.33 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.382e-05/0.199, allocations: 3.938 kB / 396.8 MB, free: 47.33 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 3.095e-05/0.1991, allocations: 0 / 396.8 MB, free: 47.33 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 6.686e-05/0.1991, allocations: 0 / 396.8 MB, free: 47.33 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001214/0.1993, allocations: 19.3 kB / 396.8 MB, free: 47.32 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 7.373e-05/0.1993, allocations: 29.28 kB / 396.9 MB, free: 47.3 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.128e-05/0.1994, allocations: 3.531 kB / 396.9 MB, free: 47.3 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.313e-05/0.1995, allocations: 11.44 kB / 396.9 MB, free: 47.29 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.014e-05/0.1995, allocations: 11.55 kB / 396.9 MB, free: 47.28 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.357e-05/0.1995, allocations: 0 / 396.9 MB, free: 47.28 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.245e-06/0.1995, allocations: 3.5 kB / 396.9 MB, free: 47.28 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.438e-05/0.1996, allocations: 11.86 kB / 396.9 MB, free: 47.27 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 2.05e-05/0.1996, allocations: 7.594 kB / 396.9 MB, free: 47.27 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 4.832e-05/0.1996, allocations: 15.67 kB / 396.9 MB, free: 47.25 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.346e-06/0.1996, allocations: 0 / 396.9 MB, free: 47.25 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.1996, allocations: 4 kB / 396.9 MB, free: 47.25 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.138e-06/0.1997, allocations: 0 / 396.9 MB, free: 47.25 MB / 318.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.000298/0.2, allocations: 331.9 kB / 397.2 MB, free: 46.89 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.149e-05/0.2, allocations: 9.656 kB / 397.3 MB, free: 46.89 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.16e-05/0.2, allocations: 7.5 kB / 397.3 MB, free: 46.88 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001002/0.2001, allocations: 175.5 kB / 397.4 MB, free: 46.68 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.171e-05/0.2002, allocations: 384 / 397.4 MB, free: 46.68 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.097e-06/0.2002, allocations: 4.312 kB / 397.4 MB, free: 46.68 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001645/0.2003, allocations: 73.75 kB / 397.5 MB, free: 46.6 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.275e-06/0.2004, allocations: 192 / 397.5 MB, free: 46.6 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.638e-06/0.2004, allocations: 3.938 kB / 397.5 MB, free: 46.6 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.669e-06/0.2004, allocations: 1.5 kB / 397.5 MB, free: 46.6 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001501/0.2005, allocations: 35.06 kB / 397.5 MB, free: 46.59 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002622/0.2008, allocations: 266.6 kB / 397.8 MB, free: 46.29 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001468/0.201, allocations: 73.89 kB / 397.9 MB, free: 46.21 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.606e-05/0.2011, allocations: 33.98 kB / 397.9 MB, free: 46.19 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.058e-05/0.2011, allocations: 1.219 kB / 397.9 MB, free: 46.19 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.746e-05/0.2011, allocations: 35.91 kB / 398 MB, free: 46.14 MB / 318.1 MB Notification: Performance of pre-optimization done (n=3): time 1.854e-06/0.2011, allocations: 3.938 kB / 398 MB, free: 46.14 MB / 318.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003139/0.2014, allocations: 90.95 kB / 398 MB, free: 46.08 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.713e-05/0.2015, allocations: 108.5 kB / 398.1 MB, free: 45.95 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.926e-05/0.2015, allocations: 101.4 kB / 398.2 MB, free: 45.85 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.395e-06/0.2016, allocations: 25.7 kB / 398.3 MB, free: 45.82 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.486e-05/0.2016, allocations: 89.77 kB / 398.4 MB, free: 45.73 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.584e-05/0.2016, allocations: 9.688 kB / 398.4 MB, free: 45.72 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.803e-05/0.2016, allocations: 13.31 kB / 398.4 MB, free: 45.7 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.118e-05/0.2017, allocations: 322.9 kB / 398.7 MB, free: 45.38 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.158e-05/0.2018, allocations: 19.81 kB / 398.7 MB, free: 45.37 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.845e-05/0.2019, allocations: 33.59 kB / 398.8 MB, free: 45.34 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001428/0.202, allocations: 51.11 kB / 398.8 MB, free: 45.3 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.202, allocations: 1.25 kB / 398.8 MB, free: 45.3 MB / 318.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001792/0.2022, allocations: 79.83 kB / 398.9 MB, free: 45.24 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.291e-05/0.2022, allocations: 9.688 kB / 398.9 MB, free: 45.24 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.837e-06/0.2022, allocations: 0 / 398.9 MB, free: 45.24 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.217e-05/0.2022, allocations: 1.312 kB / 398.9 MB, free: 45.24 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.105e-05/0.2023, allocations: 15.61 kB / 398.9 MB, free: 45.23 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.819e-06/0.2023, allocations: 1.094 kB / 398.9 MB, free: 45.23 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.151e-05/0.2024, allocations: 8.484 kB / 398.9 MB, free: 45.23 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.251e-06/0.2024, allocations: 2.125 kB / 398.9 MB, free: 45.23 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 5.378e-05/0.2025, allocations: 88.52 kB / 399 MB, free: 45.14 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 4.068e-05/0.2025, allocations: 28.12 kB / 399 MB, free: 45.11 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 6.891e-05/0.2026, allocations: 32.89 kB / 399.1 MB, free: 45.08 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.31e-07/0.2026, allocations: 0 / 399.1 MB, free: 45.08 MB / 318.1 MB Notification: Performance of matching and sorting (n=3) (initialization_lambda0): time 0.0001072/0.2027, allocations: 61.97 kB / 399.1 MB, free: 45.03 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.533e-06/0.2027, allocations: 4.312 kB / 399.1 MB, free: 45.03 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.072e-06/0.2027, allocations: 1.375 kB / 399.1 MB, free: 45.03 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.954e-06/0.2027, allocations: 1.438 kB / 399.1 MB, free: 45.03 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.193e-05/0.2028, allocations: 4.156 kB / 399.1 MB, free: 45.03 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.763e-06/0.2028, allocations: 5.375 kB / 399.1 MB, free: 45.03 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.658e-05/0.2028, allocations: 6.641 kB / 399.1 MB, free: 45.02 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.245e-06/0.2028, allocations: 1.469 kB / 399.1 MB, free: 45.02 MB / 318.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 4.694e-05/0.2029, allocations: 190.7 kB / 399.3 MB, free: 44.83 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.399e-05/0.2029, allocations: 1.375 kB / 399.3 MB, free: 44.83 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.841e-05/0.2029, allocations: 12.33 kB / 399.3 MB, free: 44.82 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.954e-06/0.2029, allocations: 1.219 kB / 399.3 MB, free: 44.82 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.203, allocations: 1.25 kB / 399.3 MB, free: 44.82 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.034e-06/0.203, allocations: 4 kB / 399.4 MB, free: 44.82 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001101/0.2031, allocations: 163.2 kB / 399.5 MB, free: 44.61 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.2031, allocations: 1.094 kB / 399.5 MB, free: 44.61 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.66e-05/0.2031, allocations: 15.48 kB / 399.5 MB, free: 44.61 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.2032, allocations: 3.938 kB / 399.5 MB, free: 44.6 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.753e-06/0.2032, allocations: 1.281 kB / 399.5 MB, free: 44.6 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.2032, allocations: 1.25 kB / 399.5 MB, free: 44.6 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.2032, allocations: 0 / 399.5 MB, free: 44.6 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003871/0.2036, allocations: 0.9605 MB / 400.5 MB, free: 43.62 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.935e-05/0.2036, allocations: 82.52 kB / 400.6 MB, free: 43.52 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.404e-05/0.2036, allocations: 5.766 kB / 400.6 MB, free: 43.52 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.111e-05/0.2037, allocations: 20.55 kB / 400.6 MB, free: 43.5 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.318e-05/0.2037, allocations: 3.25 kB / 400.6 MB, free: 43.5 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.338e-06/0.2038, allocations: 6.062 kB / 400.6 MB, free: 43.5 MB / 318.1 MB Notification: Performance of sorting global known variables: time 2.018e-05/0.2038, allocations: 84.53 kB / 400.7 MB, free: 43.41 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2038, allocations: 0 / 400.7 MB, free: 43.41 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005125/0.2043, allocations: 11.47 kB / 400.7 MB, free: 43.41 MB / 318.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 6.802e-05/0.2044, allocations: 96.91 kB / 400.8 MB, free: 43.32 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002516/0.2046, allocations: 52.67 kB / 400.9 MB, free: 43.3 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.2046, allocations: 4 kB / 400.9 MB, free: 43.3 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 8.119e-05/0.2047, allocations: 22.42 kB / 400.9 MB, free: 43.29 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002163/0.205, allocations: 18.42 kB / 400.9 MB, free: 43.28 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003127/0.2053, allocations: 258.4 kB / 401.1 MB, free: 43 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.407e-05/0.2054, allocations: 0.6785 MB / 401.8 MB, free: 42.3 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.628e-05/0.2054, allocations: 8.812 kB / 401.8 MB, free: 42.3 MB / 318.1 MB Notification: Performance of SimCode: time 2.81e-07/0.2054, allocations: 1.219 kB / 401.8 MB, free: 42.3 MB / 318.1 MB Notification: Performance of Templates: time 0.00167/0.2071, allocations: 0.6247 MB / 402.5 MB, free: 41.98 MB / 318.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=480 -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