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: "" <> buildModelFMU(PowerGrids.Controls.Test.TestDiscontinuousDeadBand,fileNamePrefix="PowerGrids_PowerGrids_Controls_Test_TestDiscontinuousDeadBand",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Controls.Test.TestDiscontinuousDeadBand,fileNamePrefix="PowerGrids_PowerGrids_Controls_Test_TestDiscontinuousDeadBand",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008614/0.008614, allocations: 96.47 kB / 15.73 MB, free: 6.051 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.001778/0.001778, allocations: 197.8 kB / 16.67 MB, free: 5.973 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.681/1.681, allocations: 205.1 MB / 222.6 MB, free: 4.523 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06994/0.06994, allocations: 14.17 MB / 284.1 MB, free: 6.988 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.00179/0.00179, allocations: 63.91 kB / 396 MB, free: 0.5273 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2961/0.2979, allocations: 50.14 MB / 446.1 MB, free: 1.922 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDiscontinuousDeadBand): time 0.001933/0.2998, allocations: 0.6766 MB / 446.8 MB, free: 1.418 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002354/0.3001, allocations: 58.31 kB / 446.8 MB, free: 1.371 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.797e-05/0.3002, allocations: 5.188 kB / 446.9 MB, free: 1.367 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 3.595e-05/0.3002, allocations: 3.938 kB / 446.9 MB, free: 1.363 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 9.769e-05/0.3003, allocations: 0 / 446.9 MB, free: 1.363 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000148/0.3005, allocations: 19.83 kB / 446.9 MB, free: 1.348 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 8.848e-05/0.3006, allocations: 17.23 kB / 446.9 MB, free: 1.34 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001093/0.3007, allocations: 11.12 kB / 446.9 MB, free: 1.332 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.279e-05/0.3008, allocations: 12.42 kB / 446.9 MB, free: 1.324 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.394e-05/0.3008, allocations: 18.28 kB / 446.9 MB, free: 1.309 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.798e-05/0.3008, allocations: 2.156 kB / 446.9 MB, free: 1.309 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.789e-06/0.3009, allocations: 2.281 kB / 446.9 MB, free: 1.309 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.894e-05/0.3009, allocations: 5.25 kB / 446.9 MB, free: 1.305 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 2.646e-05/0.3009, allocations: 13.16 kB / 447 MB, free: 1.293 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 9.286e-05/0.301, allocations: 15.83 kB / 447 MB, free: 1.281 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.541e-06/0.301, allocations: 5.016 kB / 447 MB, free: 1.277 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.301, allocations: 0 / 447 MB, free: 1.277 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.759e-06/0.301, allocations: 0 / 447 MB, free: 1.277 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.0003886/0.3014, allocations: 335.6 kB / 447.3 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.458e-05/0.3015, allocations: 9.844 kB / 447.3 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.041e-05/0.3015, allocations: 35.88 kB / 447.3 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.776e-05/0.3016, allocations: 2.031 kB / 447.3 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000132/0.3017, allocations: 175 kB / 447.5 MB, free: 0.668 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.321e-05/0.3017, allocations: 1.5 kB / 447.5 MB, free: 0.668 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.14e-05/0.3017, allocations: 1.469 kB / 447.5 MB, free: 0.668 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001839/0.3019, allocations: 79.08 kB / 447.6 MB, free: 0.5938 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.042e-05/0.3019, allocations: 3.938 kB / 447.6 MB, free: 0.5898 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.067e-05/0.302, allocations: 7.984 kB / 447.6 MB, free: 0.582 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.338e-06/0.302, allocations: 1.312 kB / 447.6 MB, free: 0.582 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001607/0.3021, allocations: 31.94 kB / 447.6 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003116/0.3024, allocations: 269.5 kB / 447.9 MB, free: 276 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001662/0.3026, allocations: 70.56 kB / 448 MB, free: 208 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001016/0.3027, allocations: 37.94 kB / 448 MB, free: 176 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.872e-05/0.3028, allocations: 5.266 kB / 448 MB, free: 172 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.336e-05/0.3028, allocations: 35.59 kB / 448.1 MB, free: 128 kB / 318.1 MB Notification: Performance of pre-optimization done (n=3): time 1.173e-06/0.3028, allocations: 0 / 448.1 MB, free: 128 kB / 318.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003694/0.3032, allocations: 95.03 kB / 448.1 MB, free: 64 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.18e-05/0.3033, allocations: 108 kB / 448.3 MB, free: 15.93 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.539e-05/0.3034, allocations: 93.17 kB / 448.3 MB, free: 15.84 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.703e-05/0.3034, allocations: 30.73 kB / 448.4 MB, free: 15.8 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.072e-05/0.3035, allocations: 89.31 kB / 448.5 MB, free: 15.71 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.969e-05/0.3035, allocations: 9.266 kB / 448.5 MB, free: 15.7 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.612e-05/0.3035, allocations: 13.16 kB / 448.5 MB, free: 15.69 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001177/0.3037, allocations: 315.9 kB / 448.8 MB, free: 15.37 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001017/0.3038, allocations: 25.88 kB / 448.8 MB, free: 15.36 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.171e-05/0.3039, allocations: 37.17 kB / 448.9 MB, free: 15.32 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001532/0.304, allocations: 51.22 kB / 448.9 MB, free: 15.29 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.998e-06/0.304, allocations: 3.938 kB / 448.9 MB, free: 15.28 MB / 334.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002133/0.3043, allocations: 76.62 kB / 449 MB, free: 15.23 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.554e-05/0.3043, allocations: 7.031 kB / 449 MB, free: 15.23 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.3043, allocations: 0 / 449 MB, free: 15.23 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.3e-05/0.3043, allocations: 0 / 449 MB, free: 15.23 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.119e-05/0.3044, allocations: 10.8 kB / 449 MB, free: 15.22 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.212e-06/0.3044, allocations: 4.062 kB / 449 MB, free: 15.22 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.619e-05/0.3045, allocations: 14.48 kB / 449 MB, free: 15.21 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.205e-06/0.3045, allocations: 3.625 kB / 449 MB, free: 15.21 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 7.672e-05/0.3046, allocations: 86.94 kB / 449.1 MB, free: 15.12 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 6.26e-05/0.3047, allocations: 28.22 kB / 449.1 MB, free: 15.09 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 8.299e-05/0.3047, allocations: 33.12 kB / 449.2 MB, free: 15.07 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.62e-07/0.3048, allocations: 0 / 449.2 MB, free: 15.07 MB / 334.1 MB Notification: Performance of matching and sorting (n=3) (initialization_lambda0): time 0.0001257/0.3049, allocations: 53.06 kB / 449.2 MB, free: 15.02 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.067e-05/0.3049, allocations: 9.172 kB / 449.2 MB, free: 15.02 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.094e-06/0.3049, allocations: 1.312 kB / 449.2 MB, free: 15.02 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.415e-06/0.3049, allocations: 0 / 449.2 MB, free: 15.02 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.563e-05/0.305, allocations: 5.438 kB / 449.2 MB, free: 15.02 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.559e-06/0.305, allocations: 5.25 kB / 449.2 MB, free: 15.02 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.838e-05/0.305, allocations: 7.438 kB / 449.2 MB, free: 15.01 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.527e-06/0.305, allocations: 1.375 kB / 449.2 MB, free: 15.01 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.0001226/0.3052, allocations: 185.7 kB / 449.4 MB, free: 14.82 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.049e-05/0.3052, allocations: 6.562 kB / 449.4 MB, free: 14.82 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.639e-05/0.3052, allocations: 4.469 kB / 449.4 MB, free: 14.82 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.946e-06/0.3052, allocations: 0 / 449.4 MB, free: 14.82 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.202e-06/0.3052, allocations: 1.344 kB / 449.4 MB, free: 14.82 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.247e-06/0.3053, allocations: 0 / 449.4 MB, free: 14.82 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001897/0.3054, allocations: 175.6 kB / 449.6 MB, free: 14.6 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.3055, allocations: 4 kB / 449.6 MB, free: 14.6 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.709e-05/0.3055, allocations: 8.156 kB / 449.6 MB, free: 14.6 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.3055, allocations: 1.125 kB / 449.6 MB, free: 14.6 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.985e-06/0.3055, allocations: 0.875 kB / 449.6 MB, free: 14.6 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.313e-06/0.3056, allocations: 0 / 449.6 MB, free: 14.6 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.3056, allocations: 1.188 kB / 449.6 MB, free: 14.6 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000262/0.3058, allocations: 183 kB / 449.8 MB, free: 14.43 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.482e-05/0.3059, allocations: 82.94 kB / 449.9 MB, free: 14.33 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.666e-05/0.3059, allocations: 9.75 kB / 449.9 MB, free: 14.32 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.655e-05/0.306, allocations: 3.469 kB / 449.9 MB, free: 14.32 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.649e-05/0.306, allocations: 7.141 kB / 449.9 MB, free: 14.32 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.797e-06/0.3061, allocations: 1.938 kB / 449.9 MB, free: 14.32 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.398e-05/0.3061, allocations: 77.19 kB / 450 MB, free: 14.24 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3061, allocations: 4 kB / 450 MB, free: 14.24 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002743/0.3064, allocations: 11.78 kB / 450 MB, free: 14.23 MB / 334.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.0005994/0.307, allocations: 0.7091 MB / 450.7 MB, free: 13.53 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002917/0.3073, allocations: 56.89 kB / 450.8 MB, free: 13.51 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.3073, allocations: 0 / 450.8 MB, free: 13.51 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.209e-05/0.3074, allocations: 18.77 kB / 450.8 MB, free: 13.5 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002376/0.3077, allocations: 6.219 kB / 450.8 MB, free: 13.5 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001656/0.3093, allocations: 1.267 MB / 452.1 MB, free: 12.24 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003194/0.3097, allocations: 0.6764 MB / 452.7 MB, free: 11.54 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.29e-05/0.3097, allocations: 2.031 kB / 452.7 MB, free: 11.54 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.536e-05/0.3098, allocations: 14.97 kB / 452.7 MB, free: 11.53 MB / 334.1 MB Notification: Performance of SimCode: time 1.062e-06/0.3098, allocations: 0 / 452.7 MB, free: 11.53 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02247/0.3323, allocations: 1.449 MB / 454.2 MB, free: 10.64 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.118/8.451, allocations: 1.812 kB / 454.2 MB, free: 10.64 MB / 334.1 MB (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 & python3 -m fmpy simulate --output-file PowerGrids_PowerGrids.Controls.Test.TestDiscontinuousDeadBand_res.csv --start-time 0 --stop-time 4 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.05 PowerGrids_PowerGrids_Controls_Test_TestDiscontinuousDeadBand.fmu > PowerGrids_PowerGrids.Controls.Test.TestDiscontinuousDeadBand.pipe 2>&1) diffSimulationResults("PowerGrids_PowerGrids.Controls.Test.TestDiscontinuousDeadBand_res.csv","/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