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.001085/0.001085, allocations: 110.7 kB / 16.42 MB, free: 6.512 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.001137/0.001137, allocations: 189.5 kB / 17.35 MB, free: 5.738 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.304/1.304, allocations: 205.1 MB / 223.2 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06232/0.06232, allocations: 14.16 MB / 284.8 MB, free: 13.85 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.001477/0.001477, allocations: 67.95 kB / 397.2 MB, free: 43.91 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07023/0.07172, allocations: 50.13 MB / 447.3 MB, free: 13.66 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDiscontinuousDeadBand): time 0.001915/0.07368, allocations: 0.6793 MB / 448 MB, free: 12.98 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002391/0.07394, allocations: 60.14 kB / 448 MB, free: 12.92 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.659e-05/0.07399, allocations: 0 / 448 MB, free: 12.92 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.48e-05/0.07405, allocations: 3.938 kB / 448 MB, free: 12.92 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.013e-05/0.07412, allocations: 0 / 448 MB, free: 12.92 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001356/0.07427, allocations: 19.86 kB / 448 MB, free: 12.9 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 8.594e-05/0.07436, allocations: 23.98 kB / 448.1 MB, free: 12.88 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.822e-05/0.07447, allocations: 0 / 448.1 MB, free: 12.88 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.948e-05/0.0745, allocations: 11.98 kB / 448.1 MB, free: 12.86 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.945e-05/0.07456, allocations: 15.92 kB / 448.1 MB, free: 12.85 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.65e-05/0.07458, allocations: 8 kB / 448.1 MB, free: 12.84 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.315e-06/0.07459, allocations: 0 / 448.1 MB, free: 12.84 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.821e-05/0.07462, allocations: 7.984 kB / 448.1 MB, free: 12.83 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 2.544e-05/0.07465, allocations: 11.88 kB / 448.1 MB, free: 12.82 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 8.57e-05/0.07474, allocations: 27.91 kB / 448.1 MB, free: 12.79 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.755e-06/0.07475, allocations: 0 / 448.1 MB, free: 12.79 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.07476, allocations: 0 / 448.1 MB, free: 12.79 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.376e-06/0.07477, allocations: 0 / 448.1 MB, free: 12.79 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.0004141/0.07519, allocations: 327.5 kB / 448.5 MB, free: 12.42 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.101e-05/0.07524, allocations: 16.02 kB / 448.5 MB, free: 12.41 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.404e-05/0.07528, allocations: 4.938 kB / 448.5 MB, free: 12.4 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001543/0.07544, allocations: 164.3 kB / 448.7 MB, free: 12.2 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.255e-05/0.07546, allocations: 4.375 kB / 448.7 MB, free: 12.2 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.147e-06/0.07547, allocations: 384 / 448.7 MB, free: 12.2 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001963/0.07568, allocations: 88.66 kB / 448.7 MB, free: 12.1 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.563e-06/0.07569, allocations: 192 / 448.7 MB, free: 12.1 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.115e-05/0.07571, allocations: 7.938 kB / 448.7 MB, free: 12.09 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.158e-06/0.07572, allocations: 0 / 448.7 MB, free: 12.09 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001698/0.07589, allocations: 31.97 kB / 448.8 MB, free: 12.06 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003662/0.07627, allocations: 261.8 kB / 449 MB, free: 11.75 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001725/0.07645, allocations: 77.03 kB / 449.1 MB, free: 11.66 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.692e-05/0.07656, allocations: 33.83 kB / 449.1 MB, free: 11.62 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.066e-05/0.07659, allocations: 0 / 449.1 MB, free: 11.62 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.59e-05/0.07662, allocations: 34.56 kB / 449.2 MB, free: 11.57 MB / 334.1 MB Notification: Performance of pre-optimization done (n=3): time 1.122e-06/0.07662, allocations: 3.938 kB / 449.2 MB, free: 11.57 MB / 334.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003575/0.07699, allocations: 85.64 kB / 449.3 MB, free: 11.48 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.98e-05/0.07705, allocations: 110.8 kB / 449.4 MB, free: 11.35 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.256e-05/0.07712, allocations: 98.11 kB / 449.5 MB, free: 11.24 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.684e-05/0.07715, allocations: 33.69 kB / 449.5 MB, free: 11.2 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.776e-05/0.07719, allocations: 80.14 kB / 449.6 MB, free: 11.12 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.014e-05/0.07722, allocations: 15.73 kB / 449.6 MB, free: 11.11 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.954e-05/0.07727, allocations: 17.72 kB / 449.6 MB, free: 11.08 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.672e-05/0.07737, allocations: 318.8 kB / 449.9 MB, free: 10.76 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.303e-05/0.07747, allocations: 24.83 kB / 449.9 MB, free: 10.73 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.178e-05/0.07757, allocations: 38.56 kB / 450 MB, free: 10.69 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001545/0.07773, allocations: 41.69 kB / 450 MB, free: 10.64 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.07774, allocations: 4 kB / 450 MB, free: 10.64 MB / 334.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002188/0.07797, allocations: 77.56 kB / 450.1 MB, free: 10.55 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.4e-05/0.07799, allocations: 8 kB / 450.1 MB, free: 10.55 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.998e-06/0.078, allocations: 0 / 450.1 MB, free: 10.55 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.184e-05/0.07801, allocations: 0 / 450.1 MB, free: 10.55 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.732e-05/0.07811, allocations: 11.98 kB / 450.1 MB, free: 10.54 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.194e-06/0.07812, allocations: 0 / 450.1 MB, free: 10.54 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.679e-05/0.07818, allocations: 7.984 kB / 450.1 MB, free: 10.53 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.952e-06/0.07819, allocations: 4 kB / 450.1 MB, free: 10.52 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 7.465e-05/0.07828, allocations: 92.2 kB / 450.2 MB, free: 10.43 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 4.976e-05/0.07833, allocations: 30.5 kB / 450.3 MB, free: 10.39 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 8.767e-05/0.07843, allocations: 25.7 kB / 450.3 MB, free: 10.36 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.42e-07/0.07844, allocations: 0 / 450.3 MB, free: 10.36 MB / 334.1 MB Notification: Performance of matching and sorting (n=3) (initialization_lambda0): time 0.0001362/0.07858, allocations: 61.59 kB / 450.3 MB, free: 10.29 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.855e-06/0.07859, allocations: 8 kB / 450.4 MB, free: 10.29 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.383e-06/0.0786, allocations: 0 / 450.4 MB, free: 10.29 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.834e-06/0.07861, allocations: 0 / 450.4 MB, free: 10.29 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.602e-05/0.07865, allocations: 4 kB / 450.4 MB, free: 10.28 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.763e-06/0.07865, allocations: 0 / 450.4 MB, free: 10.28 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.414e-05/0.0787, allocations: 11.98 kB / 450.4 MB, free: 10.27 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.608e-06/0.07871, allocations: 7.938 kB / 450.4 MB, free: 10.26 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 0.0001005/0.07882, allocations: 188.3 kB / 450.6 MB, free: 10.07 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.084e-05/0.07886, allocations: 11.84 kB / 450.6 MB, free: 10.06 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.035e-05/0.07888, allocations: 7.078 kB / 450.6 MB, free: 10.05 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.585e-06/0.07889, allocations: 0 / 450.6 MB, free: 10.05 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.163e-06/0.0789, allocations: 0 / 450.6 MB, free: 10.05 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.206e-05/0.07893, allocations: 81.11 kB / 450.7 MB, free: 9.953 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.494e-05/0.07895, allocations: 4.375 kB / 450.7 MB, free: 9.949 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.266e-05/0.07905, allocations: 7.984 kB / 450.7 MB, free: 9.941 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.865e-05/0.07909, allocations: 15.86 kB / 450.7 MB, free: 9.926 MB / 334.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.000275/0.07937, allocations: 228.2 kB / 450.9 MB, free: 9.695 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0003048/0.07969, allocations: 326.1 kB / 451.2 MB, free: 9.359 MB / 334.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 9.314e-05/0.07979, allocations: 23.91 kB / 451.2 MB, free: 9.336 MB / 334.1 MB Notification: Performance of sorting global known variables: time 3.521e-05/0.07983, allocations: 83.28 kB / 451.3 MB, free: 9.254 MB / 334.1 MB Notification: Performance of Backend: time 4e-07/0.07984, allocations: 0 / 451.3 MB, free: 9.254 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005377/0.08038, allocations: 112.5 kB / 451.4 MB, free: 9.137 MB / 334.1 MB Notification: Performance of SimCode: time 0.0003655/0.08076, allocations: 0.5526 MB / 452 MB, free: 8.535 MB / 334.1 MB Notification: Performance of Templates: time 0.002847/0.08362, allocations: 0.7557 MB / 452.7 MB, free: 7.789 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