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.001806/0.001806, allocations: 108 kB / 15.61 MB, free: 152 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.001867/0.001867, allocations: 194.6 kB / 16.53 MB, free: 6.664 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.504/1.504, allocations: 205.1 MB / 222.4 MB, free: 4.617 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06502/0.06502, allocations: 14.16 MB / 283.9 MB, free: 7.078 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.001639/0.001639, allocations: 71.84 kB / 345.2 MB, free: 19.3 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09203/0.09368, allocations: 50.12 MB / 395.3 MB, free: 1.148 MB / 286.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDiscontinuousDeadBand): time 0.001986/0.09572, allocations: 0.6844 MB / 396 MB, free: 468 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002297/0.09596, allocations: 58.14 kB / 396 MB, free: 412 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.835e-05/0.09601, allocations: 0 / 396 MB, free: 412 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 2.362e-05/0.09605, allocations: 0 / 396 MB, free: 412 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 7.275e-05/0.09612, allocations: 3.938 kB / 396 MB, free: 408 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001362/0.09627, allocations: 19.97 kB / 396.1 MB, free: 388 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 8.133e-05/0.09636, allocations: 23.92 kB / 396.1 MB, free: 364 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.095e-05/0.09645, allocations: 4 kB / 396.1 MB, free: 360 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.854e-05/0.09649, allocations: 11.94 kB / 396.1 MB, free: 348 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.398e-05/0.09655, allocations: 15.92 kB / 396.1 MB, free: 332 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.392e-05/0.09657, allocations: 0 / 396.1 MB, free: 332 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.092e-05/0.09659, allocations: 4 kB / 396.1 MB, free: 328 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.625e-05/0.09662, allocations: 7.922 kB / 396.1 MB, free: 320 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 2.834e-05/0.09665, allocations: 7.984 kB / 396.1 MB, free: 312 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 7.367e-05/0.09673, allocations: 15.92 kB / 396.2 MB, free: 296 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.09674, allocations: 4 kB / 396.2 MB, free: 292 kB / 286.1 MB Notification: Performance of FrontEnd: time 3.105e-06/0.09675, allocations: 4 kB / 396.2 MB, free: 288 kB / 286.1 MB Notification: Performance of Transformations before backend: time 4.819e-06/0.09676, allocations: 3.938 kB / 396.2 MB, free: 284 kB / 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.0004185/0.09718, allocations: 339.7 kB / 396.5 MB, free: 15.89 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.261e-05/0.09723, allocations: 8.031 kB / 396.5 MB, free: 15.89 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.14e-05/0.09728, allocations: 34.75 kB / 396.5 MB, free: 15.84 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.736e-05/0.09731, allocations: 4.938 kB / 396.5 MB, free: 15.84 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001607/0.09748, allocations: 164.4 kB / 396.7 MB, free: 15.64 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.949e-05/0.0975, allocations: 8.375 kB / 396.7 MB, free: 15.63 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.996e-06/0.09752, allocations: 384 / 396.7 MB, free: 15.63 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002076/0.09773, allocations: 76.8 kB / 396.8 MB, free: 15.54 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.328e-05/0.09776, allocations: 7.875 kB / 396.8 MB, free: 15.54 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.889e-06/0.09778, allocations: 0 / 396.8 MB, free: 15.54 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.428e-06/0.09779, allocations: 0 / 396.8 MB, free: 15.54 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001706/0.09796, allocations: 39.95 kB / 396.8 MB, free: 15.5 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003431/0.09831, allocations: 261.9 kB / 397.1 MB, free: 15.19 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001765/0.0985, allocations: 76.94 kB / 397.2 MB, free: 15.09 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.271e-05/0.0986, allocations: 33.83 kB / 397.2 MB, free: 15.05 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.245e-05/0.09863, allocations: 3.984 kB / 397.2 MB, free: 15.05 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.303e-05/0.09866, allocations: 30.56 kB / 397.2 MB, free: 15.01 MB / 302.1 MB Notification: Performance of pre-optimization done (n=3): time 1.523e-06/0.09867, allocations: 0 / 397.2 MB, free: 15.01 MB / 302.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003483/0.09902, allocations: 93.5 kB / 397.3 MB, free: 14.91 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.032e-05/0.0991, allocations: 110.8 kB / 397.4 MB, free: 14.78 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.391e-05/0.09917, allocations: 97.86 kB / 397.5 MB, free: 14.68 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.17e-05/0.0992, allocations: 25.7 kB / 397.6 MB, free: 14.64 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.751e-05/0.09924, allocations: 84.08 kB / 397.6 MB, free: 14.56 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.894e-05/0.09926, allocations: 8.156 kB / 397.6 MB, free: 14.55 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.403e-05/0.0993, allocations: 21.7 kB / 397.7 MB, free: 14.52 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001026/0.09941, allocations: 314.8 kB / 398 MB, free: 14.21 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.614e-05/0.09951, allocations: 20.84 kB / 398 MB, free: 14.18 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.821e-05/0.09961, allocations: 38.55 kB / 398 MB, free: 14.14 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001544/0.09977, allocations: 49.72 kB / 398.1 MB, free: 14.08 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.606e-06/0.09978, allocations: 3.938 kB / 398.1 MB, free: 14.08 MB / 302.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001986/0.09999, allocations: 69.59 kB / 398.1 MB, free: 14 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.422e-05/0.1, allocations: 8.062 kB / 398.2 MB, free: 14 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.669e-06/0.1, allocations: 4 kB / 398.2 MB, free: 13.99 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.404e-05/0.1, allocations: 7.938 kB / 398.2 MB, free: 13.98 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.765e-05/0.1001, allocations: 8 kB / 398.2 MB, free: 13.98 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.312e-06/0.1001, allocations: 0 / 398.2 MB, free: 13.98 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.433e-05/0.1002, allocations: 15.89 kB / 398.2 MB, free: 13.96 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.8e-06/0.1002, allocations: 0 / 398.2 MB, free: 13.96 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 8.67e-05/0.1003, allocations: 93.22 kB / 398.3 MB, free: 13.87 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 5.011e-05/0.1004, allocations: 30.52 kB / 398.3 MB, free: 13.83 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 7.51e-05/0.1005, allocations: 25.7 kB / 398.3 MB, free: 13.8 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.91e-07/0.1005, allocations: 0 / 398.3 MB, free: 13.8 MB / 302.1 MB Notification: Performance of matching and sorting (n=3) (initialization_lambda0): time 0.000122/0.1006, allocations: 61.55 kB / 398.4 MB, free: 13.73 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.054e-06/0.1006, allocations: 8 kB / 398.4 MB, free: 13.72 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.162e-06/0.1006, allocations: 96 / 398.4 MB, free: 13.72 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.413e-06/0.1006, allocations: 4 kB / 398.4 MB, free: 13.72 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.573e-05/0.1007, allocations: 7.984 kB / 398.4 MB, free: 13.71 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.283e-06/0.1007, allocations: 0 / 398.4 MB, free: 13.71 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.137e-05/0.1007, allocations: 11.94 kB / 398.4 MB, free: 13.7 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.897e-06/0.1007, allocations: 7.938 kB / 398.4 MB, free: 13.69 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.174e-05/0.1008, allocations: 180.2 kB / 398.6 MB, free: 13.51 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.614e-05/0.1008, allocations: 4 kB / 398.6 MB, free: 13.5 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.056e-05/0.1009, allocations: 7.109 kB / 398.6 MB, free: 13.5 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.1009, allocations: 4.375 kB / 398.6 MB, free: 13.49 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.1009, allocations: 0 / 398.6 MB, free: 13.49 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.028e-06/0.1009, allocations: 4 kB / 398.6 MB, free: 13.49 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001811/0.1011, allocations: 165.6 kB / 398.8 MB, free: 13.28 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.113e-06/0.1011, allocations: 0 / 398.8 MB, free: 13.28 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.971e-05/0.1012, allocations: 15.92 kB / 398.8 MB, free: 13.26 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.827e-06/0.1012, allocations: 3.984 kB / 398.8 MB, free: 13.26 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.114e-06/0.1012, allocations: 0 / 398.8 MB, free: 13.26 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.325e-05/0.1012, allocations: 4 kB / 398.8 MB, free: 13.25 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.1012, allocations: 0 / 398.8 MB, free: 13.25 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002262/0.1014, allocations: 172.3 kB / 399 MB, free: 13.07 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.36e-05/0.1015, allocations: 85.02 kB / 399.1 MB, free: 12.96 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.53e-05/0.1015, allocations: 3.984 kB / 399.1 MB, free: 12.96 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.567e-05/0.1016, allocations: 4 kB / 399.1 MB, free: 12.96 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.479e-05/0.1016, allocations: 15.98 kB / 399.1 MB, free: 12.94 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.746e-06/0.1017, allocations: 0 / 399.1 MB, free: 12.94 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.629e-05/0.1017, allocations: 79.28 kB / 399.2 MB, free: 12.86 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1017, allocations: 0 / 399.2 MB, free: 12.86 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002927/0.102, allocations: 8 kB / 399.2 MB, free: 12.86 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 0.0005317/0.1025, allocations: 0.7092 MB / 399.9 MB, free: 12.12 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002585/0.1028, allocations: 55.83 kB / 399.9 MB, free: 12.06 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.1028, allocations: 0 / 399.9 MB, free: 12.06 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001028/0.1029, allocations: 32.22 kB / 400 MB, free: 12.03 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002171/0.1031, allocations: 7.875 kB / 400 MB, free: 12.02 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001366/0.1045, allocations: 1.264 MB / 401.2 MB, free: 10.67 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002604/0.1048, allocations: 0.6768 MB / 401.9 MB, free: 9.965 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.634e-05/0.1048, allocations: 8 kB / 401.9 MB, free: 9.957 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.175e-05/0.1049, allocations: 11.42 kB / 401.9 MB, free: 9.945 MB / 302.1 MB Notification: Performance of SimCode: time 4.21e-07/0.1049, allocations: 0 / 401.9 MB, free: 9.945 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01821/0.1231, allocations: 1.417 MB / 403.4 MB, free: 8.547 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.654/7.777, allocations: 4.688 kB / 403.4 MB, free: 8.543 MB / 302.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