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.006437/0.006436, allocations: 99.41 kB / 15.73 MB, free: 5.551 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.002109/0.002109, allocations: 196.7 kB / 16.68 MB, free: 5.48 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.648/1.648, allocations: 205.1 MB / 222.6 MB, free: 4.484 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06631/0.06632, allocations: 14.17 MB / 284.1 MB, free: 6.98 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.002093/0.002093, allocations: 67.89 kB / 396 MB, free: 0.5117 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2916/0.2937, allocations: 50.14 MB / 446.1 MB, free: 1.918 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDiscontinuousDeadBand): time 0.001961/0.2957, allocations: 0.6763 MB / 446.8 MB, free: 1.414 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.000246/0.296, allocations: 55.61 kB / 446.8 MB, free: 1.371 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.268e-05/0.296, allocations: 7.875 kB / 446.9 MB, free: 1.363 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 3.285e-05/0.2961, allocations: 5.156 kB / 446.9 MB, free: 1.359 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.108e-05/0.2961, allocations: 0 / 446.9 MB, free: 1.359 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001637/0.2963, allocations: 19.97 kB / 446.9 MB, free: 1.344 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 9.831e-05/0.2964, allocations: 20.98 kB / 446.9 MB, free: 1.332 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001111/0.2965, allocations: 7.25 kB / 446.9 MB, free: 1.328 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.274e-05/0.2966, allocations: 11.17 kB / 446.9 MB, free: 1.32 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.738e-05/0.2966, allocations: 15.23 kB / 446.9 MB, free: 1.309 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.852e-05/0.2967, allocations: 1.938 kB / 446.9 MB, free: 1.309 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.718e-06/0.2967, allocations: 2.688 kB / 446.9 MB, free: 1.309 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.144e-05/0.2967, allocations: 4 kB / 446.9 MB, free: 1.305 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 2.799e-05/0.2967, allocations: 18.66 kB / 447 MB, free: 1.289 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 8.716e-05/0.2968, allocations: 19.88 kB / 447 MB, free: 1.273 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.202e-06/0.2968, allocations: 3.984 kB / 447 MB, free: 1.27 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.2968, allocations: 0 / 447 MB, free: 1.27 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.241e-06/0.2969, allocations: 1.406 kB / 447 MB, free: 1.27 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.0004042/0.2973, allocations: 335 kB / 447.3 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.369e-05/0.2973, allocations: 8.938 kB / 447.3 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.382e-05/0.2974, allocations: 31.88 kB / 447.3 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.06e-05/0.2974, allocations: 3.531 kB / 447.4 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001421/0.2975, allocations: 169.3 kB / 447.5 MB, free: 0.668 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.427e-05/0.2976, allocations: 4.375 kB / 447.5 MB, free: 0.6641 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.999e-06/0.2976, allocations: 4.188 kB / 447.5 MB, free: 0.6641 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001868/0.2978, allocations: 77.42 kB / 447.6 MB, free: 0.5898 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.101e-05/0.2978, allocations: 3.938 kB / 447.6 MB, free: 0.5859 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.27e-05/0.2978, allocations: 7.969 kB / 447.6 MB, free: 0.5781 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.152e-06/0.2978, allocations: 0 / 447.6 MB, free: 0.5781 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001469/0.298, allocations: 31.88 kB / 447.6 MB, free: 0.5664 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003343/0.2983, allocations: 277.4 kB / 447.9 MB, free: 268 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001547/0.2985, allocations: 65.97 kB / 448 MB, free: 204 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.786e-05/0.2986, allocations: 37.09 kB / 448 MB, free: 172 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.18e-05/0.2986, allocations: 1.375 kB / 448 MB, free: 172 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.64e-05/0.2986, allocations: 39.88 kB / 448.1 MB, free: 124 kB / 318.1 MB Notification: Performance of pre-optimization done (n=3): time 1.012e-06/0.2986, allocations: 0 / 448.1 MB, free: 124 kB / 318.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003567/0.299, allocations: 90.59 kB / 448.1 MB, free: 64 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.985e-05/0.2991, allocations: 108.3 kB / 448.2 MB, free: 15.93 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000102/0.2992, allocations: 98.23 kB / 448.3 MB, free: 15.83 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.118e-05/0.2992, allocations: 29.64 kB / 448.4 MB, free: 15.8 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.279e-05/0.2993, allocations: 85.53 kB / 448.5 MB, free: 15.71 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.251e-05/0.2993, allocations: 9.266 kB / 448.5 MB, free: 15.7 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.672e-05/0.2994, allocations: 13.94 kB / 448.5 MB, free: 15.69 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001744/0.2996, allocations: 314.8 kB / 448.8 MB, free: 15.37 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.152e-05/0.2997, allocations: 27.56 kB / 448.8 MB, free: 15.35 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.114e-05/0.2998, allocations: 38.98 kB / 448.9 MB, free: 15.32 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001524/0.2999, allocations: 50.75 kB / 448.9 MB, free: 15.28 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.591e-06/0.2999, 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.0002015/0.3001, allocations: 68.78 kB / 449 MB, free: 15.23 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.443e-05/0.3002, allocations: 5.406 kB / 449 MB, free: 15.23 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.438e-06/0.3002, allocations: 0 / 449 MB, free: 15.23 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.568e-05/0.3002, allocations: 1.062 kB / 449 MB, free: 15.23 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.267e-05/0.3003, allocations: 11.77 kB / 449 MB, free: 15.23 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.182e-06/0.3003, allocations: 9.188 kB / 449 MB, free: 15.22 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.423e-05/0.3004, allocations: 13.42 kB / 449 MB, free: 15.21 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.602e-06/0.3004, allocations: 1.344 kB / 449 MB, free: 15.21 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 8.567e-05/0.3005, allocations: 88.12 kB / 449.1 MB, free: 15.12 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 5.281e-05/0.3005, allocations: 29.19 kB / 449.1 MB, free: 15.09 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 8.229e-05/0.3006, allocations: 28.56 kB / 449.2 MB, free: 15.07 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.52e-07/0.3006, allocations: 0 / 449.2 MB, free: 15.07 MB / 334.1 MB Notification: Performance of matching and sorting (n=3) (initialization_lambda0): time 0.0001289/0.3008, allocations: 56.97 kB / 449.2 MB, free: 15.02 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.08e-05/0.3008, allocations: 10.61 kB / 449.2 MB, free: 15.02 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.072e-06/0.3008, allocations: 0 / 449.2 MB, free: 15.02 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.445e-06/0.3008, allocations: 1.438 kB / 449.2 MB, free: 15.02 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.378e-05/0.3008, allocations: 4 kB / 449.2 MB, free: 15.02 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.172e-06/0.3008, allocations: 1.5 kB / 449.2 MB, free: 15.02 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.786e-05/0.3009, allocations: 10.97 kB / 449.2 MB, free: 15.01 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.274e-06/0.3009, allocations: 1.5 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.0001148/0.301, allocations: 187.2 kB / 449.4 MB, free: 14.82 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.615e-05/0.3011, allocations: 1.406 kB / 449.4 MB, free: 14.82 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.223e-05/0.3011, allocations: 12.69 kB / 449.4 MB, free: 14.81 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.843e-06/0.3011, allocations: 0 / 449.4 MB, free: 14.81 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.65e-06/0.3011, allocations: 1.375 kB / 449.4 MB, free: 14.81 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.016e-06/0.3011, allocations: 0 / 449.4 MB, free: 14.81 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001913/0.3013, allocations: 170.8 kB / 449.6 MB, free: 14.6 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.487e-06/0.3013, allocations: 9.328 kB / 449.6 MB, free: 14.59 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.458e-05/0.3014, allocations: 8.531 kB / 449.6 MB, free: 14.59 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.543e-06/0.3014, allocations: 0 / 449.6 MB, free: 14.59 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.115e-06/0.3014, allocations: 1.719 kB / 449.6 MB, free: 14.59 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.293e-06/0.3014, allocations: 0 / 449.6 MB, free: 14.59 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.3014, allocations: 0 / 449.6 MB, free: 14.59 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002466/0.3017, allocations: 179.8 kB / 449.8 MB, free: 14.43 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.551e-05/0.3017, allocations: 86.91 kB / 449.9 MB, free: 14.32 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.533e-05/0.3017, allocations: 1.781 kB / 449.9 MB, free: 14.32 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.253e-05/0.3018, allocations: 7.469 kB / 449.9 MB, free: 14.32 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.435e-05/0.3019, allocations: 11.58 kB / 449.9 MB, free: 14.31 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.766e-06/0.3019, allocations: 3.938 kB / 449.9 MB, free: 14.31 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.943e-05/0.3019, allocations: 78.84 kB / 450 MB, free: 14.23 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3019, allocations: 4 kB / 450 MB, free: 14.23 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002646/0.3022, allocations: 11.19 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.0005897/0.3028, allocations: 0.7021 MB / 450.7 MB, free: 13.53 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002633/0.3031, allocations: 56.48 kB / 450.8 MB, free: 13.51 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.3031, allocations: 0 / 450.8 MB, free: 13.51 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.27e-05/0.3032, allocations: 26.64 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.0002193/0.3034, allocations: 2.969 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.001487/0.3049, allocations: 1.265 MB / 452.1 MB, free: 12.24 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003235/0.3052, allocations: 0.6817 MB / 452.7 MB, free: 11.54 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.775e-05/0.3053, allocations: 1.406 kB / 452.7 MB, free: 11.54 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.356e-05/0.3053, allocations: 13.81 kB / 452.8 MB, free: 11.52 MB / 334.1 MB Notification: Performance of SimCode: time 5.41e-07/0.3053, allocations: 0 / 452.8 MB, free: 11.52 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02373/0.3291, allocations: 1.458 MB / 454.2 MB, free: 10.63 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.756/8.086, allocations: 5.812 kB / 454.2 MB, free: 10.63 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