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.001323/0.001323, allocations: 100.1 kB / 15.88 MB, free: 8 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001603/0.001604, allocations: 198.7 kB / 16.79 MB, free: 6.828 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.322/1.322, allocations: 205.1 MB / 222.6 MB, free: 5.035 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06117/0.06117, allocations: 14.16 MB / 284.1 MB, free: 7.59 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.00135/0.00135, allocations: 71.91 kB / 345 MB, free: 19.91 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07838/0.07974, allocations: 50.14 MB / 395.2 MB, free: 1.734 MB / 286.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDiscontinuousDeadBand): time 0.001898/0.08167, allocations: 0.7478 MB / 395.9 MB, free: 0.9844 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.000184/0.08187, allocations: 59.8 kB / 396 MB, free: 0.9258 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.978e-05/0.08191, allocations: 0 / 396 MB, free: 0.9258 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 3.022e-05/0.08195, allocations: 0 / 396 MB, free: 0.9258 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 6.948e-05/0.08203, allocations: 7.922 kB / 396 MB, free: 0.918 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001339/0.08217, allocations: 16 kB / 396 MB, free: 0.9023 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 6.849e-05/0.08224, allocations: 15.98 kB / 396 MB, free: 0.8867 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.266e-05/0.08233, allocations: 8 kB / 396 MB, free: 0.8789 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.774e-05/0.08237, allocations: 15.86 kB / 396 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.034e-05/0.08243, allocations: 23.91 kB / 396.1 MB, free: 0.8398 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.555e-05/0.08245, allocations: 0 / 396.1 MB, free: 0.8398 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.646e-06/0.08247, allocations: 0 / 396.1 MB, free: 0.8398 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 1.605e-05/0.08249, allocations: 3.938 kB / 396.1 MB, free: 0.8359 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 2.147e-05/0.08251, allocations: 8 kB / 396.1 MB, free: 0.8281 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 5.134e-05/0.08257, allocations: 11.98 kB / 396.1 MB, free: 0.8164 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.08258, allocations: 0 / 396.1 MB, free: 0.8164 MB / 286.1 MB Notification: Performance of FrontEnd: time 7.41e-07/0.08258, allocations: 0 / 396.1 MB, free: 0.8164 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.186e-06/0.08259, allocations: 0 / 396.1 MB, free: 0.8164 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.000377/0.08297, allocations: 339.7 kB / 396.4 MB, free: 444 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.09e-05/0.08301, allocations: 15.97 kB / 396.4 MB, free: 428 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.899e-05/0.08305, allocations: 4.938 kB / 396.4 MB, free: 424 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001446/0.0832, allocations: 168.4 kB / 396.6 MB, free: 216 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.056e-05/0.08321, allocations: 4.375 kB / 396.6 MB, free: 212 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.021e-05/0.08323, allocations: 384 / 396.6 MB, free: 212 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001864/0.08342, allocations: 76.75 kB / 396.7 MB, free: 120 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.863e-06/0.08344, allocations: 192 / 396.7 MB, free: 120 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.134e-05/0.08346, allocations: 7.938 kB / 396.7 MB, free: 112 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.997e-06/0.08346, allocations: 0 / 396.7 MB, free: 112 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000157/0.08363, allocations: 35.95 kB / 396.7 MB, free: 76 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003504/0.08399, allocations: 265.8 kB / 397 MB, free: 15.76 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000174/0.08417, allocations: 73.12 kB / 397.1 MB, free: 15.67 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.312e-05/0.08428, allocations: 29.77 kB / 397.1 MB, free: 15.64 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.987e-05/0.0843, allocations: 3.984 kB / 397.1 MB, free: 15.63 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.607e-05/0.08433, allocations: 38.5 kB / 397.1 MB, free: 15.59 MB / 302.1 MB Notification: Performance of pre-optimization done (n=3): time 1.152e-06/0.08434, allocations: 0 / 397.1 MB, free: 15.59 MB / 302.1 MB Notification: Performance of matching and sorting (n=3): time 0.000334/0.08468, allocations: 89.5 kB / 397.2 MB, free: 15.49 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.387e-05/0.08475, allocations: 110.8 kB / 397.3 MB, free: 15.36 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.254e-05/0.08482, allocations: 102.1 kB / 397.4 MB, free: 15.25 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.069e-05/0.08485, allocations: 25.7 kB / 397.4 MB, free: 15.22 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.738e-05/0.08489, allocations: 80.14 kB / 397.5 MB, free: 15.14 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.882e-05/0.08491, allocations: 11.89 kB / 397.5 MB, free: 15.12 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.384e-05/0.08495, allocations: 17.7 kB / 397.6 MB, free: 15.1 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.94e-05/0.08506, allocations: 314.8 kB / 397.9 MB, free: 14.79 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.512e-05/0.08515, allocations: 20.84 kB / 397.9 MB, free: 14.76 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.18e-05/0.08525, allocations: 42.55 kB / 397.9 MB, free: 14.71 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001442/0.0854, allocations: 49.62 kB / 398 MB, free: 14.66 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.08541, allocations: 0 / 398 MB, free: 14.66 MB / 302.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002001/0.08562, allocations: 77.62 kB / 398 MB, free: 14.57 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.144e-05/0.08564, allocations: 4 kB / 398.1 MB, free: 14.57 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.747e-06/0.08565, allocations: 0 / 398.1 MB, free: 14.57 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.098e-05/0.08566, allocations: 3.938 kB / 398.1 MB, free: 14.57 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.382e-05/0.08575, allocations: 11.94 kB / 398.1 MB, free: 14.55 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.583e-06/0.08577, allocations: 0 / 398.1 MB, free: 14.55 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.347e-05/0.08582, allocations: 15.92 kB / 398.1 MB, free: 14.54 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.971e-06/0.08584, allocations: 4.062 kB / 398.1 MB, free: 14.54 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 7.944e-05/0.08592, allocations: 92.12 kB / 398.2 MB, free: 14.44 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 4.549e-05/0.08598, allocations: 22.58 kB / 398.2 MB, free: 14.41 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 7.271e-05/0.08605, allocations: 25.7 kB / 398.2 MB, free: 14.38 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.61e-07/0.08606, allocations: 0 / 398.2 MB, free: 14.38 MB / 302.1 MB Notification: Performance of matching and sorting (n=3) (initialization_lambda0): time 0.0001215/0.08619, allocations: 65.5 kB / 398.3 MB, free: 14.31 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.364e-06/0.08621, allocations: 8 kB / 398.3 MB, free: 14.3 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.242e-06/0.08621, allocations: 0 / 398.3 MB, free: 14.3 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.453e-06/0.08622, allocations: 0 / 398.3 MB, free: 14.3 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.59e-05/0.08626, allocations: 8.359 kB / 398.3 MB, free: 14.29 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.126e-06/0.08627, allocations: 4 kB / 398.3 MB, free: 14.29 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.486e-05/0.08631, allocations: 0 / 398.3 MB, free: 14.29 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.633e-06/0.08632, allocations: 8 kB / 398.3 MB, free: 14.28 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.889e-05/0.08641, allocations: 193.3 kB / 398.5 MB, free: 14.09 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.634e-05/0.08645, allocations: 7.938 kB / 398.5 MB, free: 14.08 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.994e-05/0.08647, allocations: 11.09 kB / 398.5 MB, free: 14.07 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-06/0.08648, allocations: 0 / 398.5 MB, free: 14.07 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.618e-06/0.08648, allocations: 4 kB / 398.5 MB, free: 14.06 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.08649, allocations: 4 kB / 398.5 MB, free: 14.06 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001648/0.08666, allocations: 161.6 kB / 398.7 MB, free: 13.85 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.08667, allocations: 0 / 398.7 MB, free: 13.85 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.007e-05/0.08673, allocations: 11.98 kB / 398.7 MB, free: 13.84 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.986e-06/0.08674, allocations: 4 kB / 398.7 MB, free: 13.84 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.951e-06/0.08675, allocations: 0 / 398.7 MB, free: 13.84 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.183e-06/0.08676, allocations: 4 kB / 398.7 MB, free: 13.83 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.08677, allocations: 0 / 398.7 MB, free: 13.83 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002294/0.087, allocations: 172.3 kB / 398.9 MB, free: 13.64 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.279e-05/0.08705, allocations: 85.02 kB / 399 MB, free: 13.54 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.406e-05/0.08707, allocations: 7.922 kB / 399 MB, free: 13.54 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.782e-05/0.08716, allocations: 4 kB / 399 MB, free: 13.53 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.663e-05/0.0872, allocations: 7.984 kB / 399 MB, free: 13.52 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.055e-06/0.08721, allocations: 0 / 399 MB, free: 13.52 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.262e-05/0.08725, allocations: 83.28 kB / 399.1 MB, free: 13.44 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.593e-06/0.08725, allocations: 0 / 399.1 MB, free: 13.44 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002662/0.08752, allocations: 11.94 kB / 399.1 MB, free: 13.43 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 8.687e-05/0.08762, allocations: 99.19 kB / 399.2 MB, free: 13.32 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002475/0.08787, allocations: 55.89 kB / 399.2 MB, free: 13.27 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.08788, allocations: 0 / 399.2 MB, free: 13.27 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.206e-05/0.08797, allocations: 27.91 kB / 399.3 MB, free: 13.24 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002169/0.0882, allocations: 12.31 kB / 399.3 MB, free: 13.23 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003199/0.08852, allocations: 153.2 kB / 399.4 MB, free: 13.04 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002249/0.08876, allocations: 0.677 MB / 400.1 MB, free: 12.34 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.851e-05/0.08879, allocations: 11.44 kB / 400.1 MB, free: 12.33 MB / 302.1 MB Notification: Performance of SimCode: time 3.01e-07/0.0888, allocations: 0 / 400.1 MB, free: 12.33 MB / 302.1 MB Notification: Performance of Templates: time 0.00172/0.09052, allocations: 0.6118 MB / 400.7 MB, free: 11.71 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/jenkins1/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