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.001187/0.001187, allocations: 104.8 kB / 16.37 MB, free: 6.457 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.001187/0.001187, allocations: 195.8 kB / 17.31 MB, free: 5.812 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.43/1.43, allocations: 205.1 MB / 223.2 MB, free: 12.26 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06636/0.06636, allocations: 14.17 MB / 284.7 MB, free: 13.88 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.001488/0.001488, allocations: 63.95 kB / 346.5 MB, free: 15.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3228/0.3243, allocations: 50.12 MB / 396.6 MB, free: 48.04 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDiscontinuousDeadBand): time 0.003272/0.3277, allocations: 0.685 MB / 397.3 MB, free: 47.52 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003291/0.3281, allocations: 51.09 kB / 397.4 MB, free: 47.48 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.405e-05/0.3281, allocations: 1.406 kB / 397.4 MB, free: 47.48 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 3.959e-05/0.3282, allocations: 0 / 397.4 MB, free: 47.48 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000111/0.3284, allocations: 5.188 kB / 397.4 MB, free: 47.48 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002226/0.3286, allocations: 19.28 kB / 397.4 MB, free: 47.46 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001202/0.3287, allocations: 25.36 kB / 397.4 MB, free: 47.45 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001747/0.3289, allocations: 6.438 kB / 397.4 MB, free: 47.44 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.318e-05/0.329, allocations: 16.2 kB / 397.5 MB, free: 47.43 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.016e-05/0.3291, allocations: 10.42 kB / 397.5 MB, free: 47.42 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.191e-05/0.3291, allocations: 1.938 kB / 397.5 MB, free: 47.42 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.159e-05/0.3291, allocations: 2.531 kB / 397.5 MB, free: 47.42 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.396e-05/0.3291, allocations: 5.125 kB / 397.5 MB, free: 47.42 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.101e-05/0.3292, allocations: 9.25 kB / 397.5 MB, free: 47.41 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001047/0.3293, allocations: 19.86 kB / 397.5 MB, free: 47.39 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.362e-06/0.3293, allocations: 5.25 kB / 397.5 MB, free: 47.39 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.377e-06/0.3293, allocations: 0 / 397.5 MB, free: 47.39 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.957e-06/0.3293, allocations: 0 / 397.5 MB, free: 47.39 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.0004972/0.3298, allocations: 340 kB / 397.8 MB, free: 47.02 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.907e-05/0.3299, allocations: 9.656 kB / 397.8 MB, free: 47.02 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.528e-05/0.3299, allocations: 10.02 kB / 397.9 MB, free: 47.02 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001804/0.3301, allocations: 166.6 kB / 398 MB, free: 46.82 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.748e-05/0.3302, allocations: 1.438 kB / 398 MB, free: 46.82 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.369e-05/0.3302, allocations: 2.719 kB / 398 MB, free: 46.82 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002291/0.3304, allocations: 83.08 kB / 398.1 MB, free: 46.73 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.002e-05/0.3304, allocations: 1.25 kB / 398.1 MB, free: 46.73 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.595e-05/0.3305, allocations: 3.938 kB / 398.1 MB, free: 46.73 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.632e-06/0.3305, allocations: 1.156 kB / 398.1 MB, free: 46.73 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001782/0.3307, allocations: 36.03 kB / 398.1 MB, free: 46.71 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003944/0.3311, allocations: 262.4 kB / 398.4 MB, free: 46.42 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001684/0.3312, allocations: 77.5 kB / 398.5 MB, free: 46.35 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.277e-05/0.3313, allocations: 29.89 kB / 398.5 MB, free: 46.32 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.978e-05/0.3314, allocations: 5.25 kB / 398.5 MB, free: 46.32 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.087e-05/0.3314, allocations: 35.72 kB / 398.5 MB, free: 46.28 MB / 318.1 MB Notification: Performance of pre-optimization done (n=3): time 9.52e-07/0.3314, allocations: 0 / 398.5 MB, free: 46.28 MB / 318.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003954/0.3318, allocations: 90.64 kB / 398.6 MB, free: 46.22 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.314e-05/0.3319, allocations: 107.9 kB / 398.7 MB, free: 46.09 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.683e-05/0.332, allocations: 98.41 kB / 398.8 MB, free: 45.99 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.252e-05/0.332, allocations: 29.7 kB / 398.9 MB, free: 45.95 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.733e-05/0.3321, allocations: 90.06 kB / 399 MB, free: 45.86 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.082e-05/0.3321, allocations: 5.125 kB / 399 MB, free: 45.86 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.603e-05/0.3321, allocations: 17.12 kB / 399 MB, free: 45.84 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.694e-05/0.3322, allocations: 311.8 kB / 399.3 MB, free: 45.53 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.257e-05/0.3323, allocations: 34.89 kB / 399.3 MB, free: 45.5 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.775e-05/0.3324, allocations: 30.69 kB / 399.3 MB, free: 45.47 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001572/0.3326, allocations: 50.97 kB / 399.4 MB, free: 45.44 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.3326, allocations: 0 / 399.4 MB, free: 45.44 MB / 318.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002226/0.3328, allocations: 77.31 kB / 399.5 MB, free: 45.38 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.329e-05/0.3328, allocations: 4.438 kB / 399.5 MB, free: 45.38 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.324e-06/0.3329, allocations: 1.156 kB / 399.5 MB, free: 45.38 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.118e-05/0.3329, allocations: 1.125 kB / 399.5 MB, free: 45.38 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001055/0.333, allocations: 11.08 kB / 399.5 MB, free: 45.38 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.332e-06/0.333, allocations: 5.438 kB / 399.5 MB, free: 45.38 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.346e-05/0.3331, allocations: 12.7 kB / 399.5 MB, free: 45.37 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.01e-05/0.3331, allocations: 6.078 kB / 399.5 MB, free: 45.36 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 6.946e-05/0.3332, allocations: 88.64 kB / 399.6 MB, free: 45.28 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 4.698e-05/0.3332, allocations: 24.03 kB / 399.6 MB, free: 45.25 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 7.791e-05/0.3333, allocations: 36.94 kB / 399.7 MB, free: 45.22 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.502e-06/0.3333, allocations: 3.938 kB / 399.7 MB, free: 45.21 MB / 318.1 MB Notification: Performance of matching and sorting (n=3) (initialization_lambda0): time 0.0001236/0.3334, allocations: 65.33 kB / 399.7 MB, free: 45.16 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.186e-05/0.3335, allocations: 5.25 kB / 399.7 MB, free: 45.16 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.407e-06/0.3335, allocations: 1.281 kB / 399.7 MB, free: 45.16 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.615e-06/0.3335, allocations: 0 / 399.7 MB, free: 45.16 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.639e-05/0.3335, allocations: 5.219 kB / 399.7 MB, free: 45.16 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.9e-06/0.3335, allocations: 1.375 kB / 399.7 MB, free: 45.16 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.564e-05/0.3336, allocations: 12.73 kB / 399.7 MB, free: 45.15 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.23e-06/0.3336, allocations: 2.594 kB / 399.8 MB, free: 45.15 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 0.000114/0.3337, allocations: 189.5 kB / 399.9 MB, free: 44.96 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.784e-05/0.3338, allocations: 2.5 kB / 399.9 MB, free: 44.96 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.049e-05/0.3338, allocations: 7.078 kB / 399.9 MB, free: 44.95 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.028e-06/0.3338, allocations: 1.375 kB / 399.9 MB, free: 44.95 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.804e-06/0.3338, allocations: 1.156 kB / 399.9 MB, free: 44.95 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.999e-06/0.3338, allocations: 0 / 399.9 MB, free: 44.95 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001657/0.334, allocations: 167.4 kB / 400.1 MB, free: 44.75 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.616e-06/0.334, allocations: 5.094 kB / 400.1 MB, free: 44.74 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.293e-05/0.3341, allocations: 11.62 kB / 400.1 MB, free: 44.74 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.955e-06/0.3341, allocations: 0 / 400.1 MB, free: 44.74 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.03e-05/0.3341, allocations: 1.031 kB / 400.1 MB, free: 44.74 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.079e-06/0.3341, allocations: 9.047 kB / 400.1 MB, free: 44.73 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.3341, allocations: 1.062 kB / 400.1 MB, free: 44.73 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002298/0.3344, allocations: 174.4 kB / 400.3 MB, free: 44.57 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.333e-05/0.3344, allocations: 78.17 kB / 400.4 MB, free: 44.47 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.541e-05/0.3344, allocations: 2.188 kB / 400.4 MB, free: 44.47 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.723e-05/0.3345, allocations: 8.328 kB / 400.4 MB, free: 44.47 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.666e-05/0.3346, allocations: 2.906 kB / 400.4 MB, free: 44.47 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.779e-06/0.3346, allocations: 1.219 kB / 400.4 MB, free: 44.47 MB / 318.1 MB Notification: Performance of sorting global known variables: time 3.295e-05/0.3346, allocations: 82.05 kB / 400.5 MB, free: 44.39 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3346, allocations: 4 kB / 400.5 MB, free: 44.39 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002829/0.3349, allocations: 10.38 kB / 400.5 MB, free: 44.38 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 0.0001066/0.335, allocations: 102.3 kB / 400.6 MB, free: 44.29 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003194/0.3353, allocations: 52.8 kB / 400.6 MB, free: 44.27 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.3354, allocations: 0 / 400.6 MB, free: 44.27 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 8.859e-05/0.3354, allocations: 26.02 kB / 400.7 MB, free: 44.26 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002421/0.3357, allocations: 17.64 kB / 400.7 MB, free: 44.25 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000413/0.3361, allocations: 116.9 kB / 400.8 MB, free: 44.12 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001855/0.3363, allocations: 0.677 MB / 401.5 MB, free: 43.43 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 4.391e-05/0.3364, allocations: 10 kB / 401.5 MB, free: 43.42 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.035e-05/0.3364, allocations: 13.78 kB / 401.5 MB, free: 43.41 MB / 318.1 MB Notification: Performance of SimCode: time 9.41e-07/0.3364, allocations: 0 / 401.5 MB, free: 43.41 MB / 318.1 MB Notification: Performance of Templates: time 0.003505/0.3399, allocations: 0.6105 MB / 402.1 MB, free: 43.1 MB / 318.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 -s cvode -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