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.001129/0.001128, allocations: 103.3 kB / 15.98 MB, free: 5.895 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: 190.6 kB / 16.91 MB, free: 5.746 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.8 MB, free: 4.68 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06/0.06, allocations: 14.15 MB / 284.3 MB, free: 7.254 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.001413/0.001413, allocations: 63.91 kB / 345.2 MB, free: 19.73 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08679/0.08821, allocations: 50.13 MB / 395.4 MB, free: 1.559 MB / 286.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDiscontinuousDeadBand): time 0.001962/0.09021, allocations: 0.7557 MB / 396.1 MB, free: 0.8008 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002044/0.09043, allocations: 55.8 kB / 396.2 MB, free: 0.7461 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.1e-05/0.09047, allocations: 0 / 396.2 MB, free: 0.7461 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 3.114e-05/0.09051, allocations: 3.938 kB / 396.2 MB, free: 0.7422 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 7.71e-05/0.0906, allocations: 4 kB / 396.2 MB, free: 0.7383 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001391/0.09075, allocations: 12 kB / 396.2 MB, free: 0.7266 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 8.308e-05/0.09084, allocations: 27.91 kB / 396.2 MB, free: 0.6992 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.702e-05/0.09093, allocations: 4 kB / 396.2 MB, free: 0.6953 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.665e-05/0.09097, allocations: 19.92 kB / 396.2 MB, free: 0.6758 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.538e-05/0.09102, allocations: 11.98 kB / 396.2 MB, free: 0.6641 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.434e-05/0.09104, allocations: 3.938 kB / 396.2 MB, free: 0.6602 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.526e-06/0.09105, allocations: 4 kB / 396.3 MB, free: 0.6562 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 1.445e-05/0.09107, allocations: 3.938 kB / 396.3 MB, free: 0.6523 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 2.294e-05/0.0911, allocations: 4 kB / 396.3 MB, free: 0.6484 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 5.514e-05/0.09116, allocations: 15.97 kB / 396.3 MB, free: 0.6328 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.485e-06/0.09116, allocations: 0 / 396.3 MB, free: 0.6328 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.09117, allocations: 4 kB / 396.3 MB, free: 0.6289 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.919e-06/0.09118, allocations: 0 / 396.3 MB, free: 0.6289 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.0003617/0.09155, allocations: 343.7 kB / 396.6 MB, free: 248 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.118e-05/0.09158, allocations: 11.97 kB / 396.6 MB, free: 236 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.544e-05/0.09161, allocations: 0.9375 kB / 396.6 MB, free: 236 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001468/0.09177, allocations: 172.3 kB / 396.8 MB, free: 24 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.616e-06/0.09178, allocations: 384 / 396.8 MB, free: 24 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.398e-05/0.0918, allocations: 8.375 kB / 396.8 MB, free: 16 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001952/0.092, allocations: 72.86 kB / 396.9 MB, free: 15.93 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.303e-06/0.09202, allocations: 192 / 396.9 MB, free: 15.93 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.218e-05/0.09204, allocations: 7.875 kB / 396.9 MB, free: 15.92 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.998e-06/0.09204, allocations: 0 / 396.9 MB, free: 15.92 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001544/0.0922, allocations: 35.91 kB / 396.9 MB, free: 15.89 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003279/0.09254, allocations: 265.9 kB / 397.2 MB, free: 15.57 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001772/0.09273, allocations: 69.06 kB / 397.2 MB, free: 15.49 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001005/0.09284, allocations: 33.75 kB / 397.3 MB, free: 15.45 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.987e-05/0.09287, allocations: 8 kB / 397.3 MB, free: 15.44 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.968e-05/0.09289, allocations: 30.56 kB / 397.3 MB, free: 15.4 MB / 302.1 MB Notification: Performance of pre-optimization done (n=3): time 1.152e-06/0.0929, allocations: 0 / 397.3 MB, free: 15.4 MB / 302.1 MB Notification: Performance of matching and sorting (n=3): time 0.000342/0.09324, allocations: 93.48 kB / 397.4 MB, free: 15.3 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.595e-05/0.09331, allocations: 107.1 kB / 397.5 MB, free: 15.18 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.492e-05/0.09338, allocations: 97.86 kB / 397.6 MB, free: 15.07 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.794e-05/0.09341, allocations: 29.7 kB / 397.6 MB, free: 15.04 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.665e-05/0.09345, allocations: 84.12 kB / 397.7 MB, free: 14.95 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.9e-05/0.09347, allocations: 7.906 kB / 397.7 MB, free: 14.94 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.107e-05/0.09351, allocations: 13.72 kB / 397.7 MB, free: 14.92 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.055e-05/0.09361, allocations: 310.8 kB / 398 MB, free: 14.61 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.393e-05/0.0937, allocations: 28.84 kB / 398.1 MB, free: 14.58 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.576e-05/0.0938, allocations: 42.67 kB / 398.1 MB, free: 14.53 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000163/0.09397, allocations: 41.69 kB / 398.2 MB, free: 14.48 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.09398, allocations: 4.031 kB / 398.2 MB, free: 14.48 MB / 302.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001908/0.09418, allocations: 77.62 kB / 398.2 MB, free: 14.39 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.323e-05/0.0942, allocations: 4 kB / 398.2 MB, free: 14.39 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.55e-06/0.09421, allocations: 4 kB / 398.2 MB, free: 14.39 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.121e-05/0.09423, allocations: 3.984 kB / 398.2 MB, free: 14.38 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.436e-05/0.09432, allocations: 11.98 kB / 398.3 MB, free: 14.37 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.921e-06/0.09433, allocations: 3.938 kB / 398.3 MB, free: 14.37 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.127e-05/0.09439, allocations: 12 kB / 398.3 MB, free: 14.36 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.274e-06/0.0944, allocations: 4 kB / 398.3 MB, free: 14.35 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 7.546e-05/0.09449, allocations: 92.12 kB / 398.4 MB, free: 14.26 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 4.651e-05/0.09454, allocations: 26.56 kB / 398.4 MB, free: 14.22 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 7.38e-05/0.09462, allocations: 33.69 kB / 398.4 MB, free: 14.18 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.61e-07/0.09463, allocations: 0 / 398.4 MB, free: 14.18 MB / 302.1 MB Notification: Performance of matching and sorting (n=3) (initialization_lambda0): time 0.0001157/0.09475, allocations: 53.53 kB / 398.5 MB, free: 14.12 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.644e-06/0.09476, allocations: 7.984 kB / 398.5 MB, free: 14.12 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.142e-06/0.09477, allocations: 0 / 398.5 MB, free: 14.12 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.866e-06/0.09478, allocations: 4 kB / 398.5 MB, free: 14.11 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.659e-05/0.09483, allocations: 15.94 kB / 398.5 MB, free: 14.1 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.796e-06/0.09483, allocations: 3.984 kB / 398.5 MB, free: 14.09 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.394e-05/0.09488, allocations: 4 kB / 398.5 MB, free: 14.09 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.785e-06/0.0949, allocations: 4.062 kB / 398.5 MB, free: 14.09 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 7.97e-05/0.09498, allocations: 197.2 kB / 398.7 MB, free: 13.89 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.296e-05/0.09501, allocations: 0 / 398.7 MB, free: 13.89 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.692e-05/0.09504, allocations: 11.12 kB / 398.7 MB, free: 13.88 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.09505, allocations: 0 / 398.7 MB, free: 13.88 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.957e-06/0.09506, allocations: 0 / 398.7 MB, free: 13.88 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.775e-06/0.09506, allocations: 0 / 398.7 MB, free: 13.88 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001458/0.09521, allocations: 165.6 kB / 398.9 MB, free: 13.66 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.09522, allocations: 0 / 398.9 MB, free: 13.66 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.657e-05/0.09529, allocations: 12 kB / 398.9 MB, free: 13.65 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.583e-06/0.09529, allocations: 0 / 398.9 MB, free: 13.65 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.203e-06/0.09531, allocations: 0 / 398.9 MB, free: 13.65 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.223e-06/0.09531, allocations: 0 / 398.9 MB, free: 13.65 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.09532, allocations: 0 / 398.9 MB, free: 13.65 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002402/0.09556, allocations: 180.2 kB / 399.1 MB, free: 13.46 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.855e-05/0.09561, allocations: 85 kB / 399.2 MB, free: 13.36 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.379e-05/0.09563, allocations: 4 kB / 399.2 MB, free: 13.35 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.746e-05/0.09572, allocations: 4 kB / 399.2 MB, free: 13.35 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.113e-05/0.09576, allocations: 11.98 kB / 399.2 MB, free: 13.34 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.705e-06/0.09577, allocations: 0 / 399.2 MB, free: 13.34 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.175e-05/0.09581, allocations: 79.28 kB / 399.2 MB, free: 13.26 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.312e-06/0.09581, allocations: 0 / 399.2 MB, free: 13.26 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002663/0.09609, allocations: 7.938 kB / 399.3 MB, free: 13.25 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.443e-05/0.09619, allocations: 107.2 kB / 399.4 MB, free: 13.14 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002542/0.09645, allocations: 55.88 kB / 399.4 MB, free: 13.08 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.09646, allocations: 0 / 399.4 MB, free: 13.08 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.572e-05/0.09655, allocations: 28.23 kB / 399.4 MB, free: 13.05 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002125/0.09677, allocations: 11.94 kB / 399.5 MB, free: 13.04 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003335/0.09711, allocations: 147.6 kB / 399.6 MB, free: 12.86 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000217/0.09734, allocations: 0.6768 MB / 400.3 MB, free: 12.16 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.877e-05/0.09737, allocations: 7.438 kB / 400.3 MB, free: 12.15 MB / 302.1 MB Notification: Performance of SimCode: time 2.1e-07/0.09738, allocations: 0 / 400.3 MB, free: 12.15 MB / 302.1 MB Notification: Performance of Templates: time 0.001716/0.0991, allocations: 0.6175 MB / 400.9 MB, free: 11.53 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